/* Stitch Viewer — premium login (dark, embroidered-patch card over a live 3D hoop) */
.lux {
  --ink: #eef1ff;
  --muted: #9aa3c7;
  --soft: #c9d0f5;
  --gold: #f2b705;
  --blue: #5b72ff;
  --blue-2: #2a43c4;
  --line: rgba(255, 255, 255, .1);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font: 15px/1.5 var(--body);
  color-scheme: dark;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 760px at 26% 46%, #1b2670 0%, rgba(27, 38, 112, 0) 62%),
    radial-gradient(900px 600px at 92% 4%, #2c1850 0%, rgba(44, 24, 80, 0) 58%),
    radial-gradient(700px 500px at 80% 100%, #0e2a4a 0%, rgba(14, 42, 74, 0) 60%),
    #070a18;
}
.lux * { box-sizing: border-box; }

#stitch-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lux-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lux-wrap {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100dvh;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 440px);
  gap: 56px; align-items: center;
}

/* ---------- Left: hoop + copy ---------- */
.lux-hero { display: grid; gap: 22px; align-content: center; min-width: 0; }
.hoop-anchor { width: min(100%, 540px); aspect-ratio: 1 / .8; justify-self: center; }
.lux-copy { max-width: 32rem; justify-self: center; text-align: left; animation: lux-rise .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 .74rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 30px; border-top: 2px dashed currentColor; }
.lux-headline {
  margin: 0 0 14px; font: 700 clamp(2rem, 3.4vw, 3.05rem)/1.04 var(--display); letter-spacing: -.025em; text-wrap: balance;
}
.lux-headline em {
  font-style: normal;
  background: linear-gradient(92deg, #ffe08a 0%, #f2b705 45%, #ff9a6b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lux-sub { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 30rem; }
.lux-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lux-badge {
  font: 500 .74rem/1 var(--mono); letter-spacing: .04em; color: var(--soft);
  padding: 7px 11px; border-radius: 999px; border: 1px dashed rgba(201, 208, 245, .28); background: rgba(255, 255, 255, .03);
}

/* ---------- Right: the embroidered-patch card ---------- */
.lux-card {
  position: relative; width: 100%;
  padding: 36px 32px 28px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(34, 42, 88, .74) 0%, rgba(14, 18, 40, .82) 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  animation: lux-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
.lux-card::after { /* stitched border, like an embroidered patch */
  content: ""; position: absolute; inset: 10px; border-radius: 19px; pointer-events: none;
  border: 1.5px dashed rgba(242, 183, 5, .32);
}
.lux-card::before { /* gold thread highlight on the top edge */
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f2b705 30%, #8d9cff 70%, transparent); opacity: .85;
}

.card-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.card-brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 8px 24px -6px rgba(42, 67, 196, .8); }
.card-brand strong { display: block; font: 700 1.08rem/1.15 var(--display); letter-spacing: -.01em; }
.card-brand span { display: block; font-size: .8rem; color: var(--muted); }
.card-brand .pill {
  margin-left: auto; font: 600 .68rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); padding: 6px 9px; border-radius: 999px; background: rgba(242, 183, 5, .1); border: 1px solid rgba(242, 183, 5, .25);
}

.lux-card h1 { margin: 0 0 6px; font: 700 1.95rem/1.1 var(--display); letter-spacing: -.02em; }
.card-lead { margin: 0 0 24px; color: var(--muted); }

.lx-field { display: grid; gap: 8px; margin-bottom: 16px; }
.lx-field > span { font-size: .8rem; font-weight: 600; color: var(--soft); letter-spacing: .02em; }
.lx-input { position: relative; display: block; }
.lx-input > svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #7f88b5; pointer-events: none; transition: color .2s;
}
.lx-input input {
  width: 100%; height: 54px; padding: 0 16px 0 46px;
  font: 500 1rem var(--body); color: var(--ink);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .11); border-radius: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.lx-input input::placeholder { color: #6c75a3; }
.lx-input input:hover { border-color: rgba(255, 255, 255, .2); }
.lx-input input:focus { border-color: rgba(242, 183, 5, .75); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(242, 183, 5, .14); }
.lx-input:focus-within > svg { color: var(--gold); }
.lx-input input:-webkit-autofill,
.lx-input input:-webkit-autofill:hover,
.lx-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px #1b2246 inset; transition: background-color 9999s;
}
.lx-input.has-toggle input { padding-right: 72px; }
.lx-input .pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 38px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--soft); font: 600 .82rem var(--body);
}
.lx-input .pw-toggle:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.lx-btn {
  position: relative; overflow: hidden; width: 100%; height: 56px; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 15px; cursor: pointer;
  font: 700 1.02rem var(--body); letter-spacing: .01em; color: #fff;
  background: linear-gradient(135deg, #6a7fff 0%, #4258e8 45%, #2a43c4 100%);
  box-shadow: 0 16px 36px -12px rgba(91, 114, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .15);
  transition: transform .15s, box-shadow .25s, filter .2s;
}
.lx-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.lx-btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 20px 44px -12px rgba(91, 114, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lx-btn:hover svg { transform: translateX(3px); }
.lx-btn:active { transform: translateY(1px); }
.lx-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-20deg); animation: lux-sheen 5s ease-in-out 1.8s infinite;
}
.lx-btn:focus-visible, .lx-wa:focus-visible, .pw-toggle:focus-visible { outline: 3px solid rgba(242, 183, 5, .6); outline-offset: 3px; }

.lx-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted); font-size: .82rem; }
.lx-divider::before, .lx-divider::after { content: ""; flex: 1; border-top: 1px dashed rgba(255, 255, 255, .16); }

.lx-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px;
  border-radius: 15px; text-decoration: none; font: 600 .98rem var(--body); color: #dcffe9;
  background: linear-gradient(135deg, rgba(37, 211, 102, .16), rgba(37, 211, 102, .06));
  border: 1px solid rgba(37, 211, 102, .38);
  transition: background .2s, border-color .2s, transform .15s;
}
.lx-wa svg { width: 20px; height: 20px; color: #25d366; }
.lx-wa:hover { background: linear-gradient(135deg, rgba(37, 211, 102, .26), rgba(37, 211, 102, .1)); border-color: rgba(37, 211, 102, .6); transform: translateY(-1px); }

.lx-fine { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: .78rem; color: #8189b3; text-align: center; }
.lx-fine svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* format badges inside the card: phones only (desktop shows them beside the hoop) */
.lux-badges-mobile { display: none; justify-content: center; margin-top: 16px; }

/* alerts on dark */
.lux .alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 13px; font-size: .9rem; border: 1px solid; }
.lux .alert-error, .lux .alert-locked { background: rgba(255, 99, 99, .1); border-color: rgba(255, 120, 120, .35); color: #ffc2c2; }
.lux .alert-warning, .lux .alert-expired { background: rgba(242, 183, 5, .1); border-color: rgba(242, 183, 5, .35); color: #ffe39a; }
.lux .alert-info, .lux .alert-ok { background: rgba(141, 156, 255, .1); border-color: rgba(141, 156, 255, .3); color: #d6dcff; }
.lux .alert-link { display: block; margin-top: 6px; font-weight: 700; color: inherit; }

@keyframes lux-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lux-sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }

/* ---------- Tablet / phone ---------- */
@media (max-width: 920px) {
  .lux-wrap { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px 28px; align-content: start; max-width: 480px; }
  .hoop-anchor { width: 100%; aspect-ratio: auto; height: clamp(190px, 29vh, 270px); }
  .lux-copy { display: none; }
  .lux-badges-mobile { display: flex; }
  .lux-card { padding: 30px 22px 24px; border-radius: 24px; }
  .lux-card::after { inset: 8px; border-radius: 17px; }
  .lux-card h1 { font-size: 1.7rem; }
  .card-brand { margin-bottom: 20px; }
}
@media (max-width: 360px) {
  .card-brand .pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lux-card, .lux-copy { animation: none; }
  .lx-btn::after { animation: none; display: none; }
}
