*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #07070f;
  --surface: rgba(12, 12, 20, 0.7);
  --surface2: rgba(20, 20, 32, 0.85);
  --border: rgba(255, 255, 255, 0.07);
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.1);
  --text: #f0f0f5;
  --muted: #6b6b85;
  --warn: #f59e0b;
  --error: #ef4444;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 100px;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.25s var(--ease-smooth);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,229,160,0.18); border-radius: 3px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 64px;
  position: relative;
  overflow-x: hidden;
}

/* ── Animated top bar ── */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #00e5a0 30%, #00b4d8 70%, transparent);
  background-size: 200% 100%;
  animation: top-bar-slide 3s linear infinite;
  z-index: 200; pointer-events: none;
}
@keyframes top-bar-slide {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Dot grid overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,229,160,0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Background orbs ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.bg-orb-1 {
  width: 900px; height: 900px;
  top: -350px; right: -280px;
  background: rgba(0, 229, 160, 0.35);
  filter: blur(90px);
  animation: orb1 14s ease-in-out infinite;
}
.bg-orb-2 {
  width: 650px; height: 650px;
  bottom: -150px; left: -200px;
  background: rgba(0, 160, 229, 0.28);
  filter: blur(90px);
  animation: orb2 18s ease-in-out infinite;
}
.bg-orb-3 {
  width: 500px; height: 500px;
  bottom: -80px; right: 10%;
  background: rgba(255, 170, 0, 0.11);
  filter: blur(100px);
  animation: orb3 22s ease-in-out infinite;
}

@keyframes orb1 {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(-40px, 25px); }
  66%  { transform: translate(25px, -20px); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(30px, -25px); }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(-15px, -30px); }
}

/* ── Grain overlay ── */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Container ── */
.container { position: relative; z-index: 2; width: 100%; max-width: 1000px; }

/* ── Header ── */
header {
  text-align: center; margin-bottom: 52px;
  animation: fadeDown 0.7s var(--ease-spring) both;
  position: relative; overflow: hidden;
}
/* Ambient glow platform behind h1 */
header::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 320px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0,229,160,0.07) 0%,
    rgba(0,180,255,0.04) 45%,
    transparent 70%);
  pointer-events: none; z-index: 0;
  animation: header-glow-pulse 6s ease-in-out infinite;
}
@keyframes header-glow-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* Giant ghost "QR" watermark behind heading */
header::before {
  content: 'QR';
  position: absolute; left: 50%; top: -40px;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', 'Syne', sans-serif;
  font-size: clamp(14rem, 32vw, 28rem);
  font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,229,160,0.10);
  letter-spacing: -12px;
  pointer-events: none; user-select: none;
  z-index: 0; white-space: nowrap;
  animation: watermark-breathe 8s ease-in-out infinite;
}
@keyframes watermark-breathe {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.55; transform: translateX(-50%) scale(1.04); }
}

/* ── Logo ── */
.logo-wrap {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  padding: 10px 22px 10px 10px;
  border-radius: 22px;
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  background: rgba(8, 8, 18, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all var(--t);
}
.logo-wrap:hover {
  border-color: rgba(0,229,160,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 28px rgba(0,229,160,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.logo-wrap { animation: logo-wrap-glow 4s ease-in-out infinite; }
@keyframes logo-wrap-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08); }
  50%       { box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 22px rgba(0,229,160,0.12), inset 0 1px 0 rgba(255,255,255,0.08); }
}

.logo-svg { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(0,229,160,0.38)); }

.logo-text-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  line-height: 1; letter-spacing: -1px;
  background: linear-gradient(90deg, #ffffff 0%, #b8ffe0 20%, #00e5a0 40%, #00d4ff 60%, #b8ffe0 80%, #ffffff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-sweep 4s linear infinite;
}
.logo-name span { -webkit-text-fill-color: transparent; }
@keyframes logo-sweep {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

.logo-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 2.5px;
  color: var(--muted); text-transform: uppercase;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 4px 20px rgba(0,0,0,0.25), 0 0 20px rgba(0,229,160,0.06);
  border-radius: var(--r-pill);
  padding: 5px 14px 5px 9px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  position: relative; z-index: 1; overflow: hidden;
}
.eyebrow::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,160,0.2), transparent);
  transform: translateX(-100%);
  animation: eyebrow-shine 3.5s ease-in-out 1.5s infinite;
}
@keyframes eyebrow-shine {
  0%        { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.45; transform: scale(0.7); }
}

h1 {
  font-family: 'Space Grotesk', 'Syne', sans-serif;
  font-size: clamp(3.6rem, 9vw, 8rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -3px;
  text-wrap: balance;
  position: relative; z-index: 1;
}

/* "Generate" — gradient on the whole span, word-rise entrance */
.hw-outline {
  background: linear-gradient(
    90deg,
    #00e5a0 0%,
    #00d4ff 30%,
    #c084fc 60%,
    #00e5a0 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes generate-flow {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* "instantly & free" — warm lavender tint */
.hw-sub {
  font-size: 0.56em;
  letter-spacing: -1px;
  -webkit-text-fill-color: rgba(200, 185, 255, 0.6);
  display: block;
  margin-top: 4px;
}

/* "QR Codes" underline + ambient glow behind it */
.accent-word {
  position: relative;
}
.accent-word::before {
  content: '';
  position: absolute; inset: -16px -32px;
  background: radial-gradient(ellipse 80% 70% at 50% 50%,
    rgba(0,229,160,0.13) 0%, rgba(0,180,255,0.08) 40%, transparent 70%);
  pointer-events: none; z-index: -1;
  animation: accent-glow-breathe 4s ease-in-out infinite;
}
@keyframes accent-glow-breathe {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
.accent-word::after {
  content: '';
  position: absolute; left: 4px; right: 4px; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, #00e5a0, #00d4ff, #a0ffdc, #00e5a0);
  background-size: 250% 100%;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0,229,160,0.5), 0 0 24px rgba(0,212,255,0.2);
  animation: accent-flow 3s linear infinite;
}

.subtitle {
  margin-top: 20px;
  font-size: 1.05rem; line-height: 1.7;
  font-family: 'Outfit', sans-serif; font-weight: 500;
  max-width: 52ch; margin-left: auto; margin-right: auto;
  text-wrap: pretty; position: relative; z-index: 1;
}
/* Colored subtitle segments */
.sub-chunk {
  color: var(--c, var(--text));
  opacity: 0;
  animation: sub-in 0.55s var(--ease-spring) calc(1.0s + var(--ci, 0) * 0.38s) forwards;
}
.sub-sep {
  color: rgba(107, 107, 133, 0.6);
  opacity: 0;
  animation: sub-in 0.35s var(--ease-spring) calc(1.24s + var(--ci, 0) * 0.38s) forwards;
}
@keyframes sub-in {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

.subtitle-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.subtitle-badge {
  display: inline-flex; align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
  padding: 5px 13px;
  font-size: 11px; font-weight: 600; font-family: 'Outfit', sans-serif;
  color: var(--muted); letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
  animation: badge-in 0.45s var(--ease-spring) calc(2.4s + var(--d, 0) * 0.1s) forwards;
}
/* Tinted colors per badge */
.subtitle-badges .subtitle-badge:nth-child(1) {
  border-color: rgba(0,229,160,0.28); color: rgba(0,229,160,0.9);
}
.subtitle-badges .subtitle-badge:nth-child(2) {
  border-color: rgba(0,212,255,0.25); color: rgba(0,212,255,0.85);
}
.subtitle-badges .subtitle-badge:nth-child(3) {
  border-color: rgba(120,255,210,0.22); color: rgba(120,255,210,0.82);
}
.subtitle-badges .subtitle-badge:nth-child(4) {
  border-color: rgba(255,185,60,0.22); color: rgba(255,185,60,0.8);
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Card shell — gradient border ── */
.card-shell {
  background: linear-gradient(
    135deg,
    rgba(0,229,160,0.6) 0%,
    rgba(0,160,229,0.35) 50%,
    rgba(0,229,160,0.2) 100%
  );
  padding: 1.5px;
  border-radius: calc(var(--r-xl) + 4px);
  animation: fadeUp 0.8s var(--ease-spring) 0.1s both;
  box-shadow:
    0 0 60px rgba(0,229,160,0.15),
    0 40px 100px rgba(0,0,0,0.6);
}

/* ── Card inner ── */
.card {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(600px circle at var(--mx, -500px) var(--my, -500px),
      rgba(0,229,160,0.065), transparent 40%),
    rgba(7, 7, 14, 0.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: none;
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  transition: background 0.1s;
}

@media (max-width: 720px) {
  .card { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  h1 { letter-spacing: -1px; }
  .left-panel { max-height: 420px; overflow-y: auto; }
  .cal-datetime-row { grid-template-columns: 1fr !important; }
}

.cal-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.left-panel { display: flex; flex-direction: column; gap: 20px; }

/* ── Labels ── */
label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

/* ── Tabs ── */
.type-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 8px 13px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t);
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-btn:hover {
  background: rgba(0,229,160,0.06);
  border-color: rgba(0,229,160,0.18);
  color: var(--text);
}
.tab-btn.active {
  background: rgba(0,229,160,0.11);
  border-color: rgba(0,229,160,0.32);
  color: var(--accent);
}
.tab-btn svg { flex-shrink: 0; }

/* ── Inputs ── */
textarea,
input[type="text"],
input[type="url"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="datetime-local"] {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 16px;
  padding: 15px 17px; outline: none;
  transition: all var(--t); resize: none;
}
textarea:focus, input:focus {
  border-color: rgba(0,229,160,0.45);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.07);
}
textarea { height: 108px; }

/* ── Number — remove spin buttons ── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ── Datetime — teal calendar icon ── */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.5) sepia(1) hue-rotate(100deg) saturate(3);
  cursor: pointer; opacity: 0.6; border-radius: 3px;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

input.invalid {
  border-color: rgba(239,68,68,0.5) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.06) !important;
}
input.valid { border-color: rgba(0,229,160,0.4) !important; }

/* ── Hint ── */
.hint {
  font-family: 'DM Mono', monospace; font-size: 12.5px;
  margin-top: 7px; min-height: 18px; transition: color 0.2s;
}
.hint.ok    { color: var(--accent); }
.hint.warn  { color: var(--warn); }
.hint.error { color: var(--error); }

/* ── Char counter ── */
.char-counter {
  display: flex; justify-content: flex-end;
  font-family: 'DM Mono', monospace; font-size: 12px;
  margin-top: 6px; color: var(--muted);
}
.char-counter.warning { color: var(--warn); }
.char-counter.danger  { color: var(--error); }

/* ── Phone row ── */
.phone-row { display: flex; gap: 10px; }

/* ── Select ── */
select {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 15px;
  padding: 15px 13px; outline: none; cursor: pointer;
  transition: all var(--t); min-width: 120px;
}
select:focus {
  border-color: rgba(0,229,160,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.06);
}

/* ── Color row ── */
.color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-group { display: flex; flex-direction: column; }

.color-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 11px 14px;
  transition: border-color var(--t);
}
.color-input-wrap:focus-within {
  border-color: rgba(0,229,160,0.35);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.06);
}

input[type="color"] {
  width: 28px; height: 28px; border: none;
  border-radius: 7px; cursor: pointer; background: none; padding: 0;
  transition: transform var(--t);
}
input[type="color"]:hover { transform: scale(1.12); }

.color-hex { font-family: 'DM Mono', monospace; font-size: 14px; color: var(--muted); }

.color-warning {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--warn); margin-top: 7px; min-height: 18px;
}

/* ── Slider ── */
.slider-wrap { display: flex; align-items: center; gap: 14px; }
input[type="range"] {
  flex: 1; accent-color: var(--accent);
  height: 4px; cursor: pointer; border-radius: 2px;
}
.slider-val {
  font-family: 'DM Mono', monospace; font-size: 14px;
  color: var(--accent); min-width: 54px; text-align: right;
}

/* ── Action buttons ── */
/* ── Style pickers (dot / corner) ── */
.style-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.style-opt {
  padding: 5px 11px;
  font-family: 'Outfit', sans-serif; font-size: 11.5px; font-weight: 600;
  background: rgba(14, 16, 30, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: rgba(180, 200, 210, 0.65);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  white-space: nowrap;
}
.style-opt:hover {
  border-color: rgba(0,229,160,0.4);
  color: rgba(0,229,160,0.9);
  background: rgba(0,229,160,0.07);
}
.style-opt.active {
  border-color: rgba(0,229,160,0.7);
  color: var(--accent);
  background: rgba(0,229,160,0.12);
}

/* ── Logo upload ── */
.logo-upload-wrap { margin-top: 6px; }

.logo-drop-area {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(14, 16, 30, 0.5);
  border: 1.5px dashed rgba(0,229,160,0.25);
  border-radius: var(--r-md);
  color: rgba(180, 200, 210, 0.55);
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}
.logo-drop-area:hover {
  border-color: rgba(0,229,160,0.55);
  color: rgba(0,229,160,0.85);
  background: rgba(0,229,160,0.05);
}

.logo-preview-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(14, 16, 30, 0.5);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: var(--r-md);
}
.logo-preview-wrap img {
  width: 36px; height: 36px;
  object-fit: contain; border-radius: 4px;
  background: #fff;
}
.logo-remove {
  margin-left: auto;
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,100,100,0.8); cursor: pointer;
  transition: all 0.2s;
}
.logo-remove:hover { background: rgba(255,80,80,0.25); color: #ff6464; }

.btn-row { display: flex; gap: 10px; }

.btn-generate {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #00e5a0, #00c9d4);
  color: #050505;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 16px; border: none;
  border-radius: var(--r-pill);
  padding: 17px 26px; cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 28px rgba(0,229,160,0.3), 0 1px 0 rgba(255,255,255,0.2) inset;
  letter-spacing: -0.01em;
}
.btn-generate::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-100%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-generate:hover::after {
  animation: btn-shimmer 0.55s ease forwards;
}
@keyframes btn-shimmer {
  to { transform: translateX(100%); }
}
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,229,160,0.45);
}
.btn-generate:active {
  transform: translateY(0) scale(0.975);
  box-shadow: 0 3px 14px rgba(0,229,160,0.2);
}
.btn-icon {
  width: 26px; height: 26px;
  background: rgba(0,0,0,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.btn-generate:hover .btn-icon { transform: rotate(12deg) scale(1.1); }

.btn-reset {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 15px;
  border-radius: var(--r-pill);
  padding: 17px 22px; cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-reset:hover {
  border-color: rgba(239,68,68,0.4); color: var(--error);
  background: rgba(239,68,68,0.06);
}
.btn-reset:active { transform: scale(0.975); }

/* ── Right panel ── */
.right-panel {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}

/* ── QR Frame — outer bezel (gradient border) ── */
.qr-frame-shell {
  width: 100%;
  background: linear-gradient(135deg, rgba(0,229,160,0.3), rgba(0,160,229,0.18), rgba(0,229,160,0.1));
  border-radius: calc(var(--r-lg) + 3px);
  padding: 1.5px;
  transition: all 0.5s var(--ease-smooth);
  box-shadow: 0 0 30px rgba(0,229,160,0.1), 0 0 60px rgba(0,160,229,0.06);
  animation: frame-shell-pulse 4s ease-in-out infinite;
}
@keyframes frame-shell-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0,229,160,0.1), 0 0 60px rgba(0,160,229,0.06); }
  50%       { box-shadow: 0 0 45px rgba(0,229,160,0.18), 0 0 90px rgba(0,160,229,0.10); }
}
.qr-frame-shell.has-code {
  background: linear-gradient(135deg, rgba(0,229,160,0.8), rgba(0,160,229,0.5));
  box-shadow: 0 0 50px rgba(0,229,160,0.28), 0 0 100px rgba(0,229,160,0.12);
  animation: none;
}

/* ── QR Frame — inner ── */
.qr-frame {
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0,229,160,0.04) 0%, transparent 70%),
    rgba(8, 10, 20, 0.95);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1;
  transition: all 0.5s var(--ease-smooth);
}
.qr-frame.has-code {
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,229,160,0.06) 0%, transparent 60%),
    rgba(8, 10, 20, 0.95);
  box-shadow: inset 0 0 50px rgba(0,229,160,0.06);
}

#qr-output {
  display: flex; align-items: center;
  justify-content: center; width: 100%; height: 100%;
}
#qr-output canvas, #qr-output img {
  max-width: 100%; max-height: 100%; border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 160, 0.25));
}

/* ── QR Placeholder ── */
.qr-placeholder {
  text-align: center; color: rgba(0,229,160,0.6);
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.placeholder-icon {
  width: 68px; height: 68px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.placeholder-icon::before {
  content: '';
  position: absolute; inset: -8px;
  border: 1.5px dashed rgba(0,229,160,0.5);
  border-radius: 18px;
  animation: ring-pulse 2.5s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.96); }
  50%       { opacity: 1;   transform: scale(1.06); box-shadow: 0 0 16px rgba(0,229,160,0.2); }
}
.placeholder-icon svg { opacity: 0.65; filter: drop-shadow(0 0 8px rgba(0,229,160,0.35)); }
.qr-placeholder p {
  font-size: 11.5px; font-family: 'DM Mono', monospace;
  line-height: 1.7; opacity: 0.75; color: rgba(0,229,160,0.7);
}

/* ── Download grid ── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.btn-dl {
  background: rgba(14, 16, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,229,160,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 2px 12px rgba(0,0,0,0.3);
  color: rgba(180, 210, 200, 0.75);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13.5px;
  padding: 13px 8px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  text-align: center; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  position: relative; overflow: hidden;
}
.btn-dl:hover:not(:disabled) {
  border-color: rgba(0,229,160,0.55);
  color: var(--accent);
  background: rgba(0,229,160,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 20px rgba(0,229,160,0.12),
    0 4px 16px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
.btn-dl:active:not(:disabled) { transform: translateY(0) scale(0.975); }
.btn-dl:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.08);
  color: rgba(140, 150, 165, 0.6);
}

.dl-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

/* ── Copy split button ── */
.btn-copy-wrap {
  position: relative;
  display: flex;
  border-radius: var(--r-md);
  overflow: visible;
}
.btn-copy-wrap .btn-copy-main {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}
.btn-copy-fmt {
  display: flex; align-items: center; gap: 3px;
  padding: 0 8px;
  background: rgba(14, 16, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,229,160,0.18);
  border-left: 1px solid rgba(0,229,160,0.1);
  border-top-right-radius: var(--r-md);
  border-bottom-right-radius: var(--r-md);
  color: rgba(180, 210, 200, 0.65);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 11px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
}
.btn-copy-fmt:hover:not(:disabled) {
  border-color: rgba(0,229,160,0.55);
  color: var(--accent);
  background: rgba(0,229,160,0.1);
}
.btn-copy-fmt:disabled {
  opacity: 0.45; cursor: not-allowed;
  border-color: rgba(255,255,255,0.08);
  color: rgba(140, 150, 165, 0.6);
}
.copy-fmt-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  background: rgba(12, 14, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  min-width: 100%;
}
.copy-fmt-opt {
  display: block; width: 100%;
  padding: 9px 14px;
  background: none; border: none;
  color: rgba(180, 210, 200, 0.8);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 12px;
  text-align: left; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.copy-fmt-opt:hover { background: rgba(0,229,160,0.1); color: var(--accent); }
.copy-fmt-opt.active { color: var(--accent); }

/* ── Download section wrapper ── */
.dl-section {
  width: 100%;
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(8, 10, 22, 0.55);
  border: 1px solid rgba(0,229,160,0.14);
  box-shadow:
    0 0 0 1px rgba(0,229,160,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 24px rgba(0,0,0,0.3);
}
.dl-section-label {
  display: flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(0,229,160,0.55);
  margin-bottom: 2px;
}
.dl-section-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,229,160,0.6);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  margin-top: 40px;
  background: rgba(7, 7, 14, 0.65);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,229,160,0.07),
    0 24px 64px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.07);
  animation: fadeUp 0.8s var(--ease-spring) 0.2s both;
}

.stat {
  flex: 1;
  padding: 22px 16px; text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.stat:hover::before { opacity: 0.5; }

.stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 1.9rem; font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

@media (max-width: 600px) {
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; }
  .stat:nth-child(1) { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(3) { border-right: none; }
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: rgba(10,10,18,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border: 1px solid rgba(0,229,160,0.22);
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 13px; padding: 10px 20px;
  border-radius: var(--r-pill);
  transition: transform 0.4s var(--ease-spring);
  z-index: 9999; pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.toast-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.toast-text { }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error-toast { border-color: rgba(239,68,68,0.3); }
.toast.error-toast .toast-dot { background: var(--error); }

/* ── Animations ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Heading word-rise with blur */
.hw {
  display: inline-block;
  animation: word-rise 0.75s var(--ease-spring) both;
  animation-delay: calc(var(--d, 0) * 0.13s + 0.1s);
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(32px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* "Generate" — word-rise in + flowing gradient */
.hw-outline {
  animation: word-rise 0.75s var(--ease-spring) 0.1s both,
             generate-flow 5s linear 1s infinite !important;
}

/* Sparkle dots around accent underline */
.spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #00e5a0;
  left: var(--sx, 0); top: var(--sy, 0);
  box-shadow: 0 0 6px 2px rgba(0,229,160,0.5);
  opacity: 0;
  animation: spark-twinkle 2.4s ease-in-out var(--sd, 0s) 2.5s infinite;
  pointer-events: none;
}
@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%       { opacity: 1; transform: scale(1); }
}

/* Gradient shimmer on "QR Codes" */
.accent-word {
  background: linear-gradient(100deg, #00e5a0 0%, #00d4ff 40%, #a0ffdc 60%, #00e5a0 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: word-rise 0.75s var(--ease-spring) 0.23s both,
             accent-flow 4s linear 1.5s infinite;
}
@keyframes accent-flow {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Panel slide-in when switching tabs */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-anim { animation: panel-in 0.28s var(--ease-spring) both; }

/* QR reveal — scale + blur */
@keyframes popIn {
  0%   { transform: scale(0.72); opacity: 0; filter: blur(10px); }
  65%  { transform: scale(1.04); opacity: 1; filter: blur(0); }
  100% { transform: scale(1);    opacity: 1; }
}
.qr-animate { animation: popIn 0.45s var(--ease-spring) both; }

/* Staggered download button appear */
@keyframes dl-appear {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
.dl-reveal { animation: dl-appear 0.35s var(--ease-spring) both; }

/* ── Footer ── */
footer {
  margin-top: 40px; text-align: center;
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 8, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 1px solid rgba(0,229,160,0.18);
  border-radius: 18px;
  padding: 18px 32px;
  box-shadow: 0 0 32px rgba(0,229,160,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: fadeUp 0.8s var(--ease-spring) 0.3s both;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 100px;
  transition: all 0.2s;
}
.footer-badge svg { flex-shrink: 0; }
.footer-badge.green {
  color: #00e5a0; background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.18);
}
.footer-badge.blue {
  color: #00c8ff; background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.18);
}
.footer-badge.purple {
  color: #a78bfa; background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.18);
}
.footer-badge:hover { filter: brightness(1.2); transform: translateY(-1px); }
.footer-sep { color: rgba(255,255,255,0.1); font-size: 16px; user-select: none; }
.footer-copy {
  width: 100%; text-align: center;
  font-size: 11px; font-family: 'DM Mono', monospace;
  border-top: 1px solid rgba(0,229,160,0.08);
  padding-top: 12px; margin-top: 6px;
  background: linear-gradient(90deg, #00e5a0 0%, #00d4ff 40%, #a78bfa 70%, #00e5a0 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-sweep 6s linear infinite;
}

/* ── Hero word-reveal animation ── */
.wr {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px) skewX(-3deg);
  animation: wr-in 0.7s var(--ease-spring) both;
  animation-delay: calc(var(--d) * 130ms + 300ms);
}
@keyframes wr-in {
  to { opacity: 1; transform: translateY(0) skewX(0); }
}

/* ── Animated gradient on "QR Codes" ── */
.accent-flow {
  display: inline-block;
  background: linear-gradient(90deg, #00e5a0 0%, #00d4c8 35%, #4dffcb 60%, #00e5a0 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(32px) skewX(-3deg);
  animation: wr-in 0.7s var(--ease-spring) 430ms both, grad-flow 5s linear 1.2s infinite;
}
@keyframes grad-flow {
  to { background-position: 250% center; }
}


/* ── Logo float ── */
.logo-svg { animation: logo-float 4s ease-in-out infinite; }
@keyframes logo-float {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(0,229,160,0.38)); }
  50%  { transform: translateY(-5px); filter: drop-shadow(0 0 18px rgba(0,229,160,0.6)); }
}

/* ── Page background video ── */
.page-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.22;
  filter: saturate(1.5) brightness(0.8) hue-rotate(10deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-video { display: none; }
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.hiw-section {
  width: 100%;
  margin-bottom: 48px;
  text-align: center;
}
.hiw-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 1;
}
.hiw-label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,229,160,0.6);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.hiw-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.hiw-step {
  flex: 1;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 20px;
  background: rgba(10, 12, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease-spring) calc(var(--si, 0) * 0.15s),
    transform 0.55s var(--ease-spring) calc(var(--si, 0) * 0.15s);
}
.hiw-step:hover {
  border-color: rgba(0,229,160,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(0,229,160,0.06), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hiw-step.hiw-visible {
  opacity: 1;
  transform: translateY(0);
}
.hiw-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.28);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,229,160,0.1);
}
.hiw-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all var(--t);
}
.hiw-step:hover .hiw-icon-wrap {
  border-color: rgba(0,229,160,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 20px rgba(0,229,160,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.hiw-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.hiw-step:nth-child(1) .hiw-title { color: #00e5a0; text-shadow: 0 0 18px rgba(0,229,160,0.5); }
.hiw-step:nth-child(3) .hiw-title { color: #00d4ff; text-shadow: 0 0 18px rgba(0,212,255,0.5); }
.hiw-step:nth-child(5) .hiw-title { color: #c084fc; text-shadow: 0 0 18px rgba(192,132,252,0.5); }
.hiw-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 400;
  color: rgba(210, 218, 240, 0.92);
  line-height: 1.6;
  max-width: 18ch;
}
.hiw-connector {
  flex-shrink: 0;
  align-self: center;
  margin-top: -38px;
  width: 80px; height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,229,160,0.3) 0px,
    rgba(0,229,160,0.3) 5px,
    transparent 5px,
    transparent 12px
  );
  opacity: 0.6;
}
@media (max-width: 640px) {
  .hiw-steps { flex-direction: column; align-items: center; gap: 28px; }
  .hiw-connector { display: none; }
  .hiw-step { max-width: 100%; }
  .hiw-desc { max-width: 28ch; }
}

/* ═══════════════════════════════════════════
   FEATURES / QR TYPES GRID
═══════════════════════════════════════════ */
.feat-section {
  width: 100%;
  margin-top: 48px;
  margin-bottom: 0;
}
.feat-header {
  text-align: center;
  margin-bottom: 32px;
}
.feat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.75;
}
.feat-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0,229,160,0.6);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.feat-heading {
  font-family: 'Space Grotesk', 'Syne', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.feat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all 0.28s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.feat-card.feat-visible {
  animation: feat-card-in 0.45s var(--ease-spring) calc(var(--i, 0) * 0.045s) both;
}
@keyframes feat-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(0,229,160,0.05) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  border-color: rgba(0,229,160,0.28);
  background: rgba(0,229,160,0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 20px rgba(0,229,160,0.08), inset 0 1px 0 rgba(255,255,255,0.07);
}
.feat-card:active { transform: translateY(-1px) scale(0.98); }
.feat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover::after { opacity: 0.5; }
.feat-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--t);
}
.feat-card:hover .feat-card-icon {
  background: rgba(0,229,160,0.12);
  border-color: rgba(0,229,160,0.3);
  box-shadow: 0 0 14px rgba(0,229,160,0.12);
}
.feat-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feat-card-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px; font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-step { transition: none; opacity: 1; transform: none; }
  .feat-card { opacity: 1; transform: none; }
  .feat-card.feat-visible { animation: none; }
}


/* ════════════════════════════════════════
   AUTH BAR — fixed top-right
════════════════════════════════════════ */
.auth-bar {
  position: absolute;
  top: 16px; right: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-signin {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,229,160,0.35);
  border-radius: var(--r-pill);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.btn-signin:hover {
  border-color: var(--accent);
  background: rgba(0,229,160,0.1);
  box-shadow: 0 4px 20px rgba(0,229,160,0.15);
}

.auth-user {
  display: flex; align-items: center; gap: 8px;
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  padding: 5px 14px 5px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.auth-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}
.auth-avatar-fallback {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--surface2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  max-width: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-my-qrs {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.35);
  border-radius: var(--r-pill);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.btn-my-qrs:hover { background: rgba(0,229,160,0.18); border-color: var(--accent); }
.qr-count-badge {
  background: var(--accent);
  color: #07070f;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  line-height: 1.5;
}
.btn-signout {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  padding: 4px 2px;
  transition: color var(--t);
}
.btn-signout:hover { color: var(--error); }

/* ════════════════════════════════════════
   SAVE TO PROFILE BUTTON
════════════════════════════════════════ */
.save-section {
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.btn-save-profile {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 11px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.35);
  border-radius: var(--r-md);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), opacity var(--t);
}
.btn-save-profile:hover:not(:disabled) { background: rgba(0,229,160,0.18); border-color: var(--accent); }
.btn-save-profile:disabled { opacity: 0.45; cursor: not-allowed; }

/* ════════════════════════════════════════
   AUTH MODAL
════════════════════════════════════════ */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-modal-overlay[hidden] { display: none; }
.auth-modal {
  position: relative;
  background: linear-gradient(160deg, rgba(22,22,32,0.98) 0%, rgba(14,14,22,0.98) 100%);
  border: 1px solid rgba(0,229,160,0.18);
  border-radius: 24px;
  padding: 48px 36px 36px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.auth-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  cursor: pointer;
  padding: 7px;
  border-radius: 10px;
  transition: background var(--t), color var(--t);
  display: flex; align-items: center; justify-content: center;
}
.auth-modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.auth-modal-icon {
  position: relative;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
}
.auth-modal-icon-glow {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.auth-modal-brand {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 10px;
}
.auth-modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.25;
}
.auth-modal-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 280px;
}
.btn-google-signin {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  border: none;
  border-radius: 12px;
  color: #3c4043;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}
.btn-google-signin:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.35); transform: translateY(-1px); }
.btn-google-signin:active { transform: translateY(0); }
.auth-modal-terms {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.auth-modal-terms a { color: var(--accent); text-decoration: none; }
.auth-modal-terms a:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   DRAWER
════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 950;
  width: 340px; max-width: 92vw;
  background: var(--surface2);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-spring);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-title {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text);
}
.drawer-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.drawer-close {
  background: transparent; border: none;
  color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: color var(--t);
}
.drawer-close:hover { color: var(--text); }

.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-empty, .drawer-loading {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
  line-height: 1.6;
}

.drawer-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px;
  transition: border-color 0.2s;
}
.drawer-card:hover { border-color: rgba(0,229,160,0.2); }

.drawer-card-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.drawer-card-thumb canvas { width: 72px !important; height: 72px !important; }
.thumb-err {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 18px;
}
.drawer-card-info {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.drawer-card-type {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.drawer-card-date {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--muted);
}
.drawer-card-data {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: rgba(240,240,245,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-card-actions {
  display: flex; flex-direction: column; gap: 6px;
}
.drawer-btn-restore, .drawer-btn-dl, .drawer-btn-del {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.drawer-btn-restore:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.drawer-btn-dl:hover      { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.drawer-btn-del:hover     { border-color: var(--error);  color: var(--error);  background: rgba(239,68,68,0.1); }
