/* ───────────────────────────────────────────────────────────────
   LOTUS — Premium PCILeech firmware & DMA community
   editorial · ethereal · rose-pink palette · soft motion
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg:          #08070b;
  --bg-2:        #0d0b10;
  --surface:     #14111a;
  --hover:       #1a1620;
  --rule:        #1f1a26;
  --rule-2:      #2d2434;
  --rule-3:      #443650;

  --ink:         #f8f3f5;
  --ink-2:       #b8a8b0;
  --ink-3:       #7a6c78;
  --ink-4:       #4e4450;

  /* Lotus rose palette */
  --rose:        #f5b8d8;
  --rose-2:      #f0a5be;
  --rose-soft:   #fde4ee;
  --rose-deep:   #d97299;
  --rose-wash:   rgba(245, 184, 216, 0.07);
  --rose-glow:   rgba(245, 184, 216, 0.28);

  --ok:          #7adfa8;

  --serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --display: 'Italiana', var(--serif);
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --gutter: 2rem;
  --nav-h:  76px;
  --max-w:  1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}
/* Isolate the film-grain + ambient wash into their own compositor layers so
   the browser can cache them once instead of repainting them each scroll. */
body::before,
body::after { will-change: transform; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────────
   LOTUS VEIL  —  page transition overlay
   Shows briefly between page navigations: dark rose-tinted scrim
   with the lotus mark centred, halo glow, and water ripples.
   ─────────────────────────────────────────────────────────────── */
.veil {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245,184,216,0.05), transparent 60%),
    radial-gradient(ellipse at center, #14111a 0%, #08070b 70%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 420ms;
}
.veil.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.veil-stage {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}
.veil-stage::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(circle, rgba(245, 184, 216, 0.45), transparent 60%);
  filter: blur(22px);
  opacity: 0.65;
  animation: veil-halo 3.2s ease-in-out infinite;
}
@keyframes veil-halo {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%      { opacity: 0.9;  transform: scale(1.1); }
}

.veil-ripple {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 184, 216, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: veil-ripple 3.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.veil-ripple:nth-child(2) { animation-delay: 1.1s; }
.veil-ripple:nth-child(3) { animation-delay: 2.2s; }
@keyframes veil-ripple {
  0%   { opacity: 0;   transform: scale(0.5); }
  20%  { opacity: 0.55; }
  100% { opacity: 0;   transform: scale(1.85); }
}

.veil-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(0 4px 24px rgba(245, 184, 216, 0.3))
    drop-shadow(0 0 60px rgba(245, 184, 216, 0.15));
  animation: veil-breathe 4s ease-in-out infinite;
}
@keyframes veil-breathe {
  0%, 100% { transform: scale(1)    translateY(0); }
  50%      { transform: scale(1.03) translateY(-3px); }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
table { border-collapse: collapse; }

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.03;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* ambient rose light wash */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(245, 184, 216, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(217, 114, 153, 0.04), transparent 50%);
}

/* ───────────────────────────────────────────────────────────────
   FLOATING PETALS  (background)
   ─────────────────────────────────────────────────────────────── */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  /* force a dedicated compositor layer so scrolling never has to repaint
     the petal container alongside the page content */
  transform: translateZ(0);
  contain: layout style paint;
}
.petal {
  position: absolute;
  width: 18px;
  height: 28px;
  color: var(--rose);
  opacity: 0;
  animation: drift 22s linear infinite;
  will-change: transform, opacity;
}
.petal svg { width: 100%; height: 100%; }

.petal:nth-child(1) { left:  8%; top: 110%; animation-delay:  0s; animation-duration: 28s; opacity: 0.25; }
.petal:nth-child(2) { left: 22%; top: 110%; animation-delay:  4s; animation-duration: 22s; opacity: 0.18; transform: scale(0.7); }
.petal:nth-child(3) { left: 38%; top: 110%; animation-delay:  9s; animation-duration: 30s; opacity: 0.22; transform: scale(1.1); }
.petal:nth-child(4) { left: 54%; top: 110%; animation-delay: 14s; animation-duration: 26s; opacity: 0.16; transform: scale(0.85); }
.petal:nth-child(5) { left: 70%; top: 110%; animation-delay:  2s; animation-duration: 32s; opacity: 0.20; transform: scale(0.95); }
.petal:nth-child(6) { left: 84%; top: 110%; animation-delay:  7s; animation-duration: 24s; opacity: 0.24; transform: scale(0.75); }
.petal:nth-child(7) { left: 15%; top: 110%; animation-delay: 18s; animation-duration: 34s; opacity: 0.14; transform: scale(1.05); }
.petal:nth-child(8) { left: 62%; top: 110%; animation-delay: 21s; animation-duration: 28s; opacity: 0.19; transform: scale(0.8); }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg);    opacity: 0; }
  10%  { opacity: var(--p, 0.2); }
  50%  { transform: translate(40px, -55vh) rotate(180deg); }
  90%  { opacity: var(--p, 0.2); }
  100% { transform: translate(-30px, -120vh) rotate(360deg); opacity: 0; }
}

/* ───────────────────────────────────────────────────────────────
   NAV
   ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  /* Higher opacity + very light blur = same visual, dramatically cheaper
     to composite on every scroll frame. Saturate() combined with blur() was
     the main cause of scroll jank. */
  background: rgba(8, 7, 11, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
  transition: opacity 220ms ease;
}
.brand:hover { opacity: 0.85; }
.brand:hover .brand-mark img { transform: scale(1.62) translateY(11%) rotate(6deg); }

.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-glow), transparent 60%);
  opacity: 0.6;
  filter: blur(8px);
  z-index: -1;
  animation: brand-glow 4s ease-in-out infinite;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  clip-path: inset(0 0 32% 0);
  transform: scale(1.55) translateY(11%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes brand-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.08); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  padding: 0.25rem 0;
  transition: color 200ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 1px;
  background: var(--rose);
  transition: right 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover,
.nav-links a.on { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.on::after { right: 0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── mobile hamburger toggle (desktop: hidden) ── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.nav-toggle:hover { background: var(--surface); border-color: var(--rule-3); }
.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
}
/* animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-inner { padding: 0 1.25rem; }
  .brand { font-size: 1.15rem; gap: 0.5rem; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-right { gap: 0.5rem; }
  .nav-right .btn { padding: 0.5rem 0.85rem; font-size: 0.65rem; }

  /* Show hamburger on mobile */
  .nav-toggle { display: flex; }

  /* Nav links become a slide-down overlay */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.1rem 1.25rem 1.4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    z-index: 99;
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform  340ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity    240ms ease,
      visibility 0s linear 340ms;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform  340ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity    240ms ease,
      visibility 0s linear 0s;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }  /* remove desktop hover underline on mobile */
}

/* ───────────────────────────────────────────────────────────────
   PRIMITIVES
   ─────────────────────────────────────────────────────────────── */
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rose-soft);
}

.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.btn {
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-2);
  position: relative;
  overflow: hidden;
  transition: all 240ms ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; transition: color 280ms ease 60ms; }
.btn:hover::before { transform: translateX(0); }
.btn:hover { border-color: var(--ink); }
.btn:hover > * { color: var(--bg); }
.btn-arrow { font-size: 0.95em; transform: translateY(1px); }

.btn-solid {
  background: var(--rose);
  color: var(--bg);
  border-color: var(--rose);
}
.btn-solid::before { background: var(--ink); }
.btn-solid:hover { border-color: var(--ink); }
.btn-solid > * { color: var(--bg); }
.btn-solid:hover > * { color: var(--bg); }

/* ───────────────────────────────────────────────────────────────
   HERO — animated lotus stage
   ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 5rem) var(--gutter) 5rem;
  text-align: center;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  align-items: center;
}
.hero-meta .sep { color: var(--rule-3); }
.hero-meta .live { display: inline-flex; align-items: center; gap: 0.55em; }
.hero-meta .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(122, 223, 168, 0.6);
  animation: pulse 2.5s ease-in-out infinite;
}

/* lotus stage — image + ripples + glow */
.lotus-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 3.5rem;
  display: grid;
  place-items: center;
}
@media (max-width: 640px) {
  .lotus-stage { width: 220px; height: 220px; }
}

.lotus-stage::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, var(--rose-glow), transparent 55%);
  filter: blur(20px);
  z-index: 0;
  animation: halo 6s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%      { opacity: 0.9; transform: scale(1.08); }
}

.ripples {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ripple {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid var(--rose);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: ripple 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.ripple:nth-child(2) { animation-delay: 1.6s; }
.ripple:nth-child(3) { animation-delay: 3.2s; }

@keyframes ripple {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.4); }
  20%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.85); }
}

.lotus-img {
  position: relative;
  z-index: 2;
  width: 86%;
  height: 86%;
  object-fit: contain;
  animation: breathe 5s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(245, 184, 216, 0.25))
          drop-shadow(0 0 60px rgba(245, 184, 216, 0.12));
}

@keyframes breathe {
  0%, 100% { transform: scale(1)     translateY(0); }
  50%      { transform: scale(1.025) translateY(-4px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-head {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-head .serif {
  font-size: 1.1em;
  letter-spacing: -0.015em;
  color: var(--rose-soft);
}

.hero-lede {
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.hero-lede a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-3);
  transition: border-color 200ms ease, color 200ms ease;
}
.hero-lede a:hover { border-color: var(--rose); color: var(--rose-soft); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ───────────────────────────────────────────────────────────────
   SECTIONS
   ─────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--gutter);
  border-top: 1px solid var(--rule);
}

.sec-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; gap: 1rem; }
}
.sec-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.5rem;
  position: relative;
}
.sec-num::before {
  content: "❋";
  display: inline-block;
  color: var(--rose);
  margin-right: 0.6em;
  font-size: 1em;
  opacity: 0.7;
}
.sec-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.sec-title .serif { font-size: 1.05em; letter-spacing: -0.015em; }
.sec-sub {
  font-size: 0.97rem;
  color: var(--ink-2);
  max-width: 54ch;
}

/* ───────────────────────────────────────────────────────────────
   PRODUCT COMPARISON TABLE
   ─────────────────────────────────────────────────────────────── */
.compare-wrap { position: relative; }
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.compare th,
.compare td {
  padding: 1.15rem 1.3rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.compare th:last-child,
.compare td:last-child { border-right: 0; }
.compare thead th {
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  background: var(--bg-2);
}
.compare .col-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.compare .col-head .tier {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare .col-head .name {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.compare .col-head .price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--rose-soft);
  line-height: 1;
  margin-top: 0.4rem;
}
.compare .col-head .price small {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-style: normal;
  color: var(--ink-3);
  margin-left: 0.4em;
  vertical-align: super;
}

.compare .row-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 200px;
  background: var(--bg-2);
  white-space: nowrap;
}
.compare td .cell-strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}
.compare td .cell-dim {
  color: var(--ink-2);
  font-size: 0.88rem;
}
.compare td ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.compare td ul li {
  padding: 0.2rem 0 0.2rem 1.1em;
  position: relative;
}
.compare td ul li::before {
  content: "❋";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 0.6em;
  top: 0.6em;
  opacity: 0.75;
}
.compare .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  margin: 0 0.25rem 0.25rem 0;
}
.compare .tag.ok {
  color: var(--ok);
  border-color: rgba(122, 223, 168, 0.3);
}

.compare tbody tr:hover td:not(.row-label) {
  background: var(--rose-wash);
}

.compare tfoot td {
  border-bottom: 0;
  padding-top: 1.5rem;
}
.compare .buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-2);
  padding: 0.3rem 0 0.4rem;
  transition: all 220ms ease;
}
.compare .buy:hover {
  color: var(--rose-soft);
  border-color: var(--rose);
}
.compare .buy .arr { transition: transform 220ms ease; }
.compare .buy:hover .arr { transform: translateX(5px); }

@media (max-width: 1024px) {
  .compare-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .compare { min-width: 960px; }
}

/* ───────────────────────────────────────────────────────────────
   CAPABILITIES
   ─────────────────────────────────────────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}
@media (max-width: 720px) {
  .caps { grid-template-columns: 1fr; gap: 2.25rem; }
}
.cap {
  border-top: 1px solid var(--rule-2);
  padding-top: 1.4rem;
  position: relative;
}
.cap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--rose);
}
.cap-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--rose-deep);
  margin-bottom: 0.9rem;
}
.cap h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.cap h3 .serif { font-size: 1.05em; }
.cap p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 44ch;
}

/* ───────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem var(--gutter) 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.foot-brand .foot-mark {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
}
.foot-brand .foot-mark::before {
  content: "❋ ";
  color: var(--rose);
  font-size: 0.8em;
}
.foot-brand p {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  max-width: 30ch;
  line-height: 1.6;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.6rem; }
.foot-col a {
  font-size: 0.88rem;
  color: var(--ink-2);
  transition: color 200ms ease;
}
.foot-col a:hover { color: var(--rose-soft); }

.foot-base {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.4rem var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ───────────────────────────────────────────────────────────────
   SUB PAGES
   ─────────────────────────────────────────────────────────────── */
.pagehead {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4.5rem) var(--gutter) 3rem;
  text-align: center;
}
.crumb {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.crumb a { color: var(--ink-3); transition: color 200ms ease; }
.crumb a:hover { color: var(--ink); }
.crumb .at { color: var(--rose-soft); }

.pagehead h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.pagehead h1 .serif {
  font-size: 1.08em;
  letter-spacing: -0.015em;
}
.pagehead .pagesub {
  margin: 1.5rem auto 0;
  max-width: 52ch;
  font-size: 1rem;
  color: var(--ink-2);
}

/* ───────────────────────────────────────────────────────────────
   STORE — Quick-select tier bar
   ─────────────────────────────────────────────────────────────── */
.store-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--gutter) 4rem;
}

.quick-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 920px) {
  .quick-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .quick-bar { grid-template-columns: 1fr; gap: 0.6rem; }
}

.quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.quick::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.quick:hover {
  border-color: var(--rule-2);
  background: var(--hover);
}
.quick.on {
  border-color: var(--rule-3);
  background: var(--hover);
}
.quick.on::after { width: 100%; }
.quick .qt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.quick.on .qt { color: var(--rose); }
.quick .qn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-top: 0.15rem;
}
.quick .qp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose-soft);
  line-height: 1;
  margin-top: 0.35rem;
}
.quick .qp small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-left: 0.3em;
  vertical-align: super;
}

/* ───────────────────────────────────────────────────────────────
   CAROUSEL
   ─────────────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: stretch;
  gap: 1rem;
  border: 1px solid var(--rule-2);
  background: var(--bg-2);
  border-radius: 0;
  overflow: hidden;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}
.carousel-arrow:hover {
  color: var(--ink);
  background: var(--hover);
}
.carousel-arrow svg { width: 22px; height: 22px; }

.carousel-viewport {
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0;
  opacity: 0.55;
  transform: scale(0.985);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* progress bar */
.carousel-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rule);
  overflow: hidden;
  z-index: 4;
}
.carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--rose);
  transform-origin: left;
  transform: scaleX(0);
}
.carousel.playing .carousel-progress span {
  /* `infinite` lets the bar loop entirely on the CSS compositor — JS only
     listens for `animationiteration` to advance the slide. This eliminates the
     JS-induced gap at the iteration boundary that caused the visible freeze. */
  animation: prog var(--carousel-period, 7000ms) linear infinite;
}
.carousel.paused .carousel-progress span {
  animation-play-state: paused;
}
@keyframes prog {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .carousel { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }
}

/* ── product card inside slide ── */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 2.25rem;
  min-height: 520px;
}
@media (max-width: 720px) {
  .product-card { padding: 1.5rem 1.25rem; min-height: 0; }
}

.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pc-tier {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.pc-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.pc-title h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.pc-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--rose-soft);
  line-height: 1;
  flex-shrink: 0;
}
.pc-price small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-left: 0.4em;
  vertical-align: super;
}

.pc-overview {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
}

.pc-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 0.5rem;
}
@media (max-width: 760px) {
  .pc-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pc-col h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.pc-col ul {
  list-style: none;
}
.pc-col ul li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1em;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.pc-col ul li::before {
  content: "❋";
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--rose);
  font-size: 0.62em;
  opacity: 0.75;
}

.pc-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 540px) {
  .pc-foot { justify-content: stretch; }
  .pc-foot .btn { width: 100%; justify-content: center; }
}

/* ── carousel foot: dots + counter ── */
.carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 0 0.25rem;
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: var(--rule-3);
  cursor: pointer;
  padding: 0;
  transition: all 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dot:hover { background: var(--ink-3); }
.dot.on {
  width: 32px;
  background: var(--rose);
}

.carousel-counter {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.carousel-counter .cc-now { color: var(--rose-soft); }
.carousel-counter .cc-sep { color: var(--rule-3); margin: 0 0.2em; }

/* ───────────────────────────────────────────────────────────────
   CHECKOUT MODAL
   ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 0s linear 280ms;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 280ms ease;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 7, 0.85);
  /* lighter blur than before — backdrop-filter is the #1 cause of modal lag */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ── performance: kill all decorative animations while the checkout
   modal is open. The user can't see them — no reason to keep them
   running on the compositor while the panel is on screen. ── */
body.modal-open .petals          { display: none; }
body.modal-open::before,
body.modal-open::after           { display: none; }
body.modal-open .nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.modal-open .brand-mark::before { animation: none; }
body.modal-open .lotus-stage::before,
body.modal-open .ripple,
body.modal-open .lotus-img       { animation: none; }
body.modal-open .carousel,
body.modal-open .quick-bar       { will-change: auto; }

/* GPU-promote the modal panel + its transitions */
.modal-panel,
.modal-step,
.carousel-track,
.carousel-slide,
.lotus-img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.985);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(245, 184, 216, 0.04);
}
.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}
.modal-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  opacity: 0.85;
  z-index: 1;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.modal-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.modal-title .mt-mark { color: var(--rose); }

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 200ms ease;
}
.modal-close:hover {
  color: var(--ink);
  border-color: var(--rule-2);
  background: var(--hover);
}

.modal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 184, 216, 0.025);
  flex-shrink: 0;
}
.ms-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ms-tier {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}
.ms-name {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 400;
}
.ms-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--rose-soft);
  line-height: 1;
  flex-shrink: 0;
}
.ms-price small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-left: 0.3em;
  vertical-align: super;
}

/* ── steps ── */
.modal-step {
  display: none;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-step.on { display: block; animation: stepIn 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.modal-step.modal-step-center.on {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem 2rem;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 200ms ease;
}
.step-back:hover {
  color: var(--ink);
  border-color: var(--rule-2);
  background: var(--hover);
}

.step-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.step-sub {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 1.4rem;
  max-width: 50ch;
}

/* ── method cards ── */
.method {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  cursor: pointer;
  text-align: left;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.method:hover:not(.method-soon) {
  border-color: var(--rule-3);
  background: var(--hover);
  transform: translateY(-1px);
}
.method-soon { cursor: not-allowed; opacity: 0.7; }
.method-soon:hover {
  border-color: var(--rule);
  background: var(--bg);
}

.m-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.m-ico-crypto { color: #f7931a; }
.m-ico-card   { color: #b8a8b0; }
.m-ico-paypal { color: #0070ba; }
.m-ico-gift   { color: var(--rose-deep); }

.m-text { min-width: 0; }
.m-title {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.m-sub {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.m-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: var(--rose-wash);
  border: 1px solid rgba(245, 184, 216, 0.25);
  color: var(--rose);
}
.m-badge.soon {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--rule);
  color: var(--ink-3);
}

.m-arr {
  color: var(--ink-3);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transition: transform 220ms ease, color 220ms ease;
}
.method:hover .m-arr {
  color: var(--rose);
  transform: translateX(3px);
}

.modal-foot-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  line-height: 1.5;
  text-transform: none;
}
.modal-foot-note a {
  color: var(--rose-soft);
  border-bottom: 1px solid var(--rule-3);
  transition: border-color 200ms ease;
}
.modal-foot-note a:hover { border-color: var(--rose); }

/* ── coin grid ── */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 520px) {
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
}

.coin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.coin:hover {
  border-color: var(--rule-3);
  background: var(--hover);
  transform: translateY(-2px);
}
.coin-other {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-style: dashed;
  opacity: 0.92;
}
.coin-other:hover { border-color: var(--rose); }
.coin-other .c-info { flex-direction: row; gap: 0.6rem; align-items: baseline; }

/* real PNG/SVG crypto logos (cryptocurrency-icons via jsDelivr) */
.c-sym-logo {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.c-sym {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.c-sym-other {
  background: transparent;
  color: var(--rose);
  border: 1px dashed var(--rule-3);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.4rem;
}

.coin-foot-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.coin-foot-note a {
  color: var(--rose-soft);
  border-bottom: 1px solid var(--rule-3);
  transition: border-color 200ms ease;
}
.coin-foot-note a:hover { border-color: var(--rose); }
.c-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
}
.c-name {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 400;
}
.c-tick {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── pay screen ── */
.pay-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 540px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-qr { margin: 0 auto; }
}

.pay-qr {
  position: relative;
  width: 180px;
  height: 180px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
}
.pay-qr img {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(0.93) hue-rotate(180deg) saturate(0.6);
}
.pay-qr-coin {
  position: absolute;
  bottom: 4px; right: 4px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--rose);
  padding: 0.2rem 0.45rem;
}

.pay-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pay-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pay-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pay-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
}
.pay-val .pay-unit {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--rose);
  margin-left: 0.4em;
  vertical-align: middle;
}
.pay-conv {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.pay-addr-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.pay-addr {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-all;
  overflow-wrap: anywhere;
  background: transparent;
  line-height: 1.4;
}
.pay-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 0;
  border-left: 1px solid var(--rule);
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}
.pay-copy:hover { color: var(--rose); background: var(--hover); }
.pay-copy.copied {
  color: var(--ok);
  background: rgba(122, 223, 168, 0.06);
}

.pay-row-meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.85rem 1.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
}
.pay-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.pay-meta-wide {
  grid-column: 1 / -1;
}
.pay-meta-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pay-meta-v {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
}
.pay-order-id {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  background: var(--surface);
  border: 1px dashed var(--rule-2);
  color: var(--rose-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  word-break: break-all;
}
.pay-timer { color: var(--rose); }
.pay-timer.warn { color: var(--warn, #f59e0b); animation: timerPulse 1s ease-in-out infinite; }
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.pay-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pay-actions.center {
  justify-content: center;
}
.pay-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

/* small inline spinner inside the confirm button while checking */
.pc-spin {
  display: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-checking .pc-spin { display: inline-block; }
.btn.is-checking .pc-arrow { display: none; }

/* status panel below confirm button */
.pay-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-3);
  color: var(--ink-2);
}
.pay-status.info    { border-left-color: var(--rose); color: var(--ink); }
.pay-status.pending { border-left-color: var(--rose); color: var(--ink); background: rgba(245, 184, 216, 0.04); }
.pay-status.warn    { border-left-color: #f5b86a; color: var(--ink); background: rgba(245, 184, 106, 0.04); }
.pay-status.error   { border-left-color: #ef6b6b; color: var(--ink); background: rgba(239, 107, 107, 0.04); }
.pay-status.success { border-left-color: var(--ok); color: var(--ink); background: rgba(122, 223, 168, 0.04); }

.ps-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5em;
  background: var(--ink-3);
}
.pay-status.info .ps-dot,
.pay-status.pending .ps-dot {
  background: var(--rose);
  animation: pulse 1.4s ease-in-out infinite;
}
.pay-status.warn .ps-dot    { background: #f5b86a; }
.pay-status.error .ps-dot   { background: #ef6b6b; }
.pay-status.success .ps-dot { background: var(--ok); }

.ps-msg { flex: 1; }
.ps-msg .ps-tx {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink-3);
  vertical-align: middle;
}
.ps-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  border-bottom: 1px solid var(--rule-3);
  flex-shrink: 0;
  align-self: center;
}
.ps-link:hover { border-color: var(--rose); }

/* ── spinner / check / info icons ── */
.spinner {
  width: 56px;
  height: 56px;
  margin: 0.5rem 0 1.5rem;
  border: 2px solid var(--rule);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.check-mark {
  margin: 0.5rem 0 1.25rem;
  color: var(--ok);
  animation: pop 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── success screen — order id presentation ── */
.success-order {
  width: 100%;
  margin: 1.5rem 0 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-top: 1px solid rgba(122, 223, 168, 0.4);
  text-align: center;
}
.so-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.65rem;
}
.so-id-wrap {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.so-id {
  padding: 0.7rem 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--rose-soft);
  background: transparent;
}
.so-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 0;
  border-left: 1px solid var(--rule);
  cursor: pointer;
  transition: all 200ms ease;
}
.so-copy:hover { color: var(--rose); background: var(--hover); }
.so-copy.copied { color: var(--ok); background: rgba(122, 223, 168, 0.06); }

.so-meta {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}
.so-meta-tx {
  font-size: 0.66rem;
  color: var(--ink-3);
  padding: 0.18rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

/* numbered next-steps list */
.success-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: 360px;
}
.success-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--rule);
}
.success-steps .ss-n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--rose);
  background: var(--rose-wash);
  border: 1px solid rgba(245, 184, 216, 0.25);
  border-radius: 50%;
}
.info-icon {
  margin: 0.5rem 0 1.25rem;
  color: var(--rose);
  opacity: 0.85;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.confirm-meta {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.cm-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cm-v {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--rose-soft);
}
.cm-v::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  margin-left: 0.6em;
  animation: pulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}

@media (max-width: 540px) {
  .modal-summary { padding: 1rem 1.25rem; }
  .modal-step { padding: 1.25rem; }
  .ms-price { font-size: 1.4rem; }
  .pay-actions .btn { flex: 1 1 100%; }
}

/* ───────────────────────────────────────────────────────────────
   STATUS PAGE
   ─────────────────────────────────────────────────────────────── */
.status-wrap {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

/* top-level summary card */
.status-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  margin-bottom: 3rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ok);
  position: relative;
  overflow: hidden;
}
.status-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 0% 50%, rgba(122, 223, 168, 0.06), transparent 70%);
  pointer-events: none;
}
.ss-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(122, 223, 168, 0.08);
  border: 1px solid rgba(122, 223, 168, 0.3);
}
.ss-icon-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow:
    0 0 12px rgba(122, 223, 168, 0.7),
    0 0 24px rgba(122, 223, 168, 0.3);
  animation: pulse 2.4s ease-in-out infinite;
}
.ss-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.ss-text h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.ss-text p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.ss-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}
.ss-meta-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}
.ss-meta-value {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .status-summary {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }
  .ss-meta { align-items: center; text-align: center; }
}

/* section grouping */
.status-section { margin-bottom: 2.5rem; }
.status-section-h {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.status-section-h::first-letter { color: var(--rose); }

.status-list { list-style: none; padding: 0; margin: 0; }

/* individual status row */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ok);
  margin-bottom: 0.55rem;
  transition: border-color 220ms ease, transform 220ms ease;
}
.status-row:hover {
  border-color: var(--rule-2);
  border-left-color: var(--ok);
  transform: translateX(2px);
}

.sr-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}
.sr-main {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.sr-sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  background: rgba(122, 223, 168, 0.06);
  border: 1px solid rgba(122, 223, 168, 0.22);
  flex-shrink: 0;
}
.sr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(122, 223, 168, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.sr-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}

/* empty incident state */
.status-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px dashed var(--rule);
}

.status-foot-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.82rem;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}
.status-foot-note a {
  color: var(--rose-soft);
  border-bottom: 1px solid var(--rule-3);
  transition: border-color 200ms ease;
}
.status-foot-note a:hover { border-color: var(--rose); }

/* ───────────────────────────────────────────────────────────────
   DEV-TOOLS WARNING OVERLAY  (cosmetic — not real security)
   ─────────────────────────────────────────────────────────────── */
.dt-warn {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  background: rgba(8, 7, 11, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: dtFade 200ms ease both;
}
.dt-warn[hidden] { display: none; }
.dt-warn-inner { max-width: 460px; }
.dt-warn-icon {
  font-size: 3.5rem;
  color: var(--rose);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 24px var(--rose-glow));
}
.dt-warn-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.dt-warn-msg {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.dt-warn-sub {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
@keyframes dtFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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