/* =========================================================================
   Lista de Presentes — Editorial Light V4
   Design tokens, layout, components, animations.
   ========================================================================= */

:root {
  --bg: #FAFAF7;
  --ink: #0F0F12;
  --paper: #FFFFFF;
  --mute: #6b6b73;
  --soft: #43434b;
  --blue: #1B3A8B;
  --purple: #6B3FCC;
  --purple-soft: #EFE9FA;
  --blue-soft: #EEF1F9;
  --line: rgba(15, 15, 18, 0.08);
  --line-strong: rgba(15, 15, 18, 0.18);
  --danger: #a03426;
  --success: #1d6e3a;
  --success-soft: #EAF4EE;
}

/* ── Base reset ─────────────────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d8d8d2; }
::selection { background: var(--purple); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
input::placeholder, textarea::placeholder { color: #a8a8b0; }

/* ── Layout shell ───────────────────────────────────────────────────────── */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell main { flex: 1; }
.shell > div[data-route-wrap] { animation: pageIn 520ms cubic-bezier(0.16, 1, 0.3, 1); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 18px 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.site-header__date {
  font-weight: 600; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
}
.site-header__brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; border-radius: 4px;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(107, 63, 204, 0.6) 100%);
}
.brand-name {
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
}
.site-nav {
  display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap;
}
.site-nav__link {
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  background: transparent; border: none; color: var(--mute);
  position: relative; transition: color 200ms ease;
  cursor: pointer; text-decoration: none;
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link.is-active { color: var(--ink); }
.site-nav__link.is-active::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--ink) 50%, var(--purple) 50%);
  animation: slideUnderline 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Flash banner ───────────────────────────────────────────────────────── */
.flash-banner {
  margin: 16px 56px 0;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper);
}
.flash-banner--success { border-color: rgba(29, 110, 58, 0.28); color: var(--success); background: var(--success-soft); }
.flash-banner--error { border-color: rgba(160, 52, 38, 0.28); color: var(--danger); background: #fbecea; }
.flash-banner__close {
  background: transparent; border: none; color: inherit; font-size: 18px; line-height: 1;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 56px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
  position: relative;
}
.hero__blob {
  position: absolute; top: 80px; left: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 63, 204, 0.18), transparent 70%);
  filter: blur(40px);
  animation: float1 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; z-index: 2;
}
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  margin-bottom: 28px; padding: 6px 12px;
  background: var(--purple-soft); border-radius: 999px;
}
.eyebrow__dot {
  width: 6px; height: 6px; background: var(--purple); border-radius: 999px;
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow__text {
  font-weight: 600; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--purple);
}
.hero__headline {
  font-weight: 700; font-size: 144px; letter-spacing: -0.06em;
  line-height: 0.88; margin: 0; color: var(--ink);
}
.hero__highlight { position: relative; display: inline-block; }
.hero__squiggle {
  position: absolute; left: -4px; right: -4px; bottom: -2px;
  width: calc(100% + 8px); height: 22px; pointer-events: none;
}
.hero__squiggle path {
  stroke: var(--purple); stroke-width: 6; stroke-linecap: round; fill: none;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  animation: drawSquiggle 1.4s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero__lead {
  font-size: 18px; color: var(--soft); margin-top: 32px;
  max-width: 480px; line-height: 1.55;
}
.hero__ctas {
  display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}

.btn-solid, .btn-ghost {
  border-radius: 999px; padding: 16px 26px;
  font-size: 14px; font-weight: 600; border: none;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  text-decoration: none;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--purple); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-magnetic .btn-arrow { display: inline-block; transition: transform 240ms ease; }
.btn-magnetic:hover .btn-arrow { transform: translateX(4px); }

.btn-solid-sm, .btn-ghost-sm {
  border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; border: none;
  cursor: pointer; transition: background 200ms ease, color 200ms ease;
}
.btn-solid-sm { background: var(--ink); color: #fff; }
.btn-solid-sm:hover { background: var(--purple); }
.btn-ghost-sm { background: transparent; color: var(--soft); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-ghost-sm:hover { color: var(--ink); border-color: var(--ink); }

/* Hero stats row */
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  gap: 12px;
}
.hero__stat { animation: fadeUp 600ms both cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero__stat--accent .hero__stat-value { color: var(--purple); }
.hero__stat-value { font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--ink); }
.hero__stat-label { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* Cover art */
.cover {
  position: relative; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--ink) 70%, var(--purple) 130%);
  min-height: 640px; color: #fff;
}
.cover__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
.cover__blob1 {
  position: absolute; left: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; filter: blur(20px);
  background: radial-gradient(circle, rgba(107, 63, 204, 0.65), transparent 70%);
  transition: transform 200ms ease-out;
}
.cover__blob2 {
  position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  border-radius: 50%; filter: blur(40px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  transition: transform 200ms ease-out;
}
.cover__caption-tl, .cover__caption-tr {
  position: absolute; top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px; letter-spacing: 0.18em; font-weight: 600;
  text-transform: uppercase;
}
.cover__caption-tl { left: 24px; }
.cover__caption-tr { right: 24px; }
.cover__rings {
  position: absolute; left: 50%; top: 50%;
  width: 580px; height: 580px;
  transform: translate(-50%, -50%);
  transition: transform 200ms ease-out;
}
.cover__rings circle {
  fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1;
  transform-origin: 200px 200px;
}
.cover__rings circle:nth-child(1) { animation: spin 28s linear infinite; }
.cover__rings circle:nth-child(2) { animation: spin 34s linear reverse infinite; }
.cover__rings circle:nth-child(3) { animation: spin 40s linear infinite; }
.cover__rings circle:nth-child(4) { animation: spin 46s linear reverse infinite; }
.cover__days {
  position: absolute; left: 32px; bottom: 40px;
  transition: transform 200ms ease-out;
}
.cover__days-num {
  font-weight: 700; font-size: 256px; letter-spacing: -0.07em;
  line-height: 0.85; color: #fff;
}
.cover__days-label {
  font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-top: 4px;
}
.cover__time {
  position: absolute; right: 32px; bottom: 40px; text-align: right;
}
.cover__time-row { display: flex; gap: 18px; }
.cover__time-cell--sec .cover__time-num { color: var(--purple); text-shadow: 0 0 20px rgba(107, 63, 204, 0.6); }
.cover__time-num { font-weight: 600; font-size: 28px; letter-spacing: -0.02em; color: #fff; }
.cover__time-label {
  font-size: 11px; color: rgba(255, 255, 255, 0.6); margin-top: 2px;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; background: var(--paper);
}
.marquee__track {
  display: flex; gap: 48px;
  animation: marquee 36s linear infinite;
  white-space: nowrap; width: max-content;
}
.marquee__item {
  font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--ink);
}
.marquee__item--accent { color: var(--purple); }

/* ── Featured / sections ────────────────────────────────────────────────── */
.section { padding: 72px 56px 56px; }
.section--tight { padding: 56px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--mute); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-weight: 700; font-size: 56px; letter-spacing: -0.04em; margin: 0;
}
.section-title em {
  font-family: 'Inter', sans-serif; font-style: italic;
  color: var(--purple); font-weight: 700;
}
.section-link {
  background: transparent; border: none; color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  text-decoration: none;
}

/* ── Page header (gifts/my-gifts/pix) ───────────────────────────────────── */
.page-head { margin-bottom: 40px; }
.page-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--mute); text-transform: uppercase; margin-bottom: 14px;
}
.page-title {
  font-weight: 700; font-size: 96px; letter-spacing: -0.05em;
  line-height: 0.92; margin: 0;
}
.page-title em {
  color: var(--purple); font-style: italic; font-weight: 700; font-family: inherit;
}

/* ── Filter pills ───────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px; align-items: center;
}
.filter-bar__field {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: all 220ms ease; min-width: 0;
}
.filter-bar__field input,
.filter-bar__field select {
  background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--ink); padding: 0;
}
.filter-bar__field input { width: 200px; max-width: 100%; }
.filter-bar__pill {
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; transition: all 220ms ease;
}
.filter-bar__pill:hover { color: var(--ink); border-color: var(--ink); }
.filter-bar__pill.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-bar__count { margin-left: auto; align-self: center; font-size: 12px; color: var(--mute); }

/* ── Gift cards (editorial) ─────────────────────────────────────────────── */
.gifts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gift-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; position: relative;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 320ms ease, border-color 200ms ease, opacity 200ms ease;
  animation: fadeUp 600ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(15, 15, 18, 0.22);
}
.gift-card--esgotado { opacity: 0.55; }
.gift-card--big .gift-card__media { aspect-ratio: 4 / 5; }

.gift-card__media {
  position: relative; aspect-ratio: 5 / 6; overflow: hidden;
}
.gift-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gift-card:hover .gift-card__media img { transform: scale(1.04); }
.gift-card__media-fill {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 5px 5px; opacity: 0.5;
}
.gift-card__halo {
  position: absolute; inset: -40px; opacity: 0;
  transition: opacity 500ms ease; filter: blur(20px); pointer-events: none;
}
.gift-card:hover .gift-card__halo { opacity: 1; }
.gift-card__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 140px; letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gift-card--big .gift-card__placeholder { font-size: 200px; }
.gift-card:hover .gift-card__placeholder { transform: scale(1.06) rotate(-1deg); }

.gift-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 10px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 4px;
}
.gift-badge--featured {
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 16px rgba(107, 63, 204, 0.4);
}
.gift-badge--out {
  background: rgba(15, 15, 18, 0.85); color: #fff;
}

.gift-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.gift-card__meta {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  font-size: 11px; color: var(--mute); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; gap: 8px;
}
.gift-card__qty { color: var(--purple); }
.gift-card__qty--out { color: var(--danger); }
.gift-card__title {
  font-weight: 600; font-size: 18px; margin: 0 0 8px;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
}
.gift-card--big .gift-card__title { font-size: 22px; }
.gift-card__desc {
  font-size: 14px; color: var(--soft); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gift-card__desc.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.gift-card__desc-toggle {
  background: none; border: none; padding: 0; margin: 6px 0 0;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--card-accent, var(--purple, #6B3FCC));
  cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.gift-card__desc-toggle:hover { color: var(--ink); }
.gift-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); gap: 12px;
}
.gift-card__price { font-weight: 600; font-size: 18px; color: var(--ink); }
.gift-card__cta {
  background: var(--ink); color: #fff; border: none;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 200ms ease;
}
.gift-card__cta.btn-pix-gift { background: var(--blue-soft); color: var(--ink); }
.gift-card__cta.btn-pix-gift:hover { background: #dfe6f7; }
.gift-card__cta:hover { background: var(--purple); }
.gift-card__cta:disabled { background: #d8d8d2; color: var(--mute); cursor: not-allowed; }

.gift-card__actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  justify-content: flex-end;
}
.gift-card__qty-pick { display: inline-flex; align-items: center; }
.gift-card__qty-input {
  border: 1px solid var(--line-strong); background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  width: 92px; text-align: center;
  /* Reseta a regra global que esconde os spinners (ver início do arquivo)
     pra esse input específico — usuário precisa das setinhas pra +/-. */
  -moz-appearance: number-input;
       appearance: auto;
}
.gift-card__qty-input::-webkit-outer-spin-button,
.gift-card__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button !important;
  appearance: auto !important;
  opacity: 1; margin-left: 4px;
}
.gift-card__qty-input:focus {
  outline: none; border-color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 20px;
  color: var(--mute);
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state__title { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.02em; }
.empty-state__text { font-size: 14px; margin: 0; }

/* ── Thank-you note ─────────────────────────────────────────────────────── */
.thank-you {
  background: var(--ink); color: var(--bg);
  border-radius: 6px; padding: 72px 56px;
  position: relative; overflow: hidden;
}
.thank-you__blob {
  position: absolute; right: -100px; top: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 63, 204, 0.55), transparent 65%);
  filter: blur(20px); animation: float2 18s ease-in-out infinite;
}
.thank-you__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.thank-you__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6); text-transform: uppercase; margin-bottom: 18px;
}
.thank-you__quote {
  font-size: 36px; line-height: 1.25; letter-spacing: -0.025em;
  margin: 0; font-weight: 500;
}
.thank-you__sig { margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.thank-you__cards { position: relative; height: 280px; }
.thank-you__card {
  position: absolute; border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: floatCard 8s ease-in-out infinite;
}
.thank-you__card--1 { left: 24px; top: 30px; width: 110px; height: 148px; background: var(--purple); transform: rotate(-8deg); animation-delay: 0s; }
.thank-you__card--2 { left: 150px; top: 70px; width: 120px; height: 162px; background: var(--bg); transform: rotate(6deg); animation-delay: 0.6s; }
.thank-you__card--3 { left: 80px; top: 150px; width: 130px; height: 175px; background: var(--blue); transform: rotate(-3deg); animation-delay: 1.2s; }

/* ── Pix ────────────────────────────────────────────────────────────────── */
.pix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pix-card {
  background: var(--paper); border: 1px solid var(--line);
  padding: 32px; border-radius: 6px; position: relative; overflow: hidden;
}
.pix-card__inner-grid {
  display: grid; grid-template-columns: 1fr 200px; gap: 24px;
}
.pix-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--mute); text-transform: uppercase; margin-bottom: 24px;
}
.pix-meta { margin-bottom: 18px; }
.pix-meta__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase; margin-bottom: 4px;
}
.pix-meta__value { font-size: 15px; color: var(--ink); font-weight: 500; }

.pix-qr {
  background: #fff; border: 1px solid var(--line);
  padding: 8px; aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(14, 1fr);
  grid-template-rows: repeat(14, 1fr); gap: 1px;
  position: relative; overflow: hidden;
}
.pix-qr__cell { background: transparent; }
.pix-qr__cell--on { background: var(--ink); }
.pix-qr__scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--purple);
  animation: qrScan 3s linear infinite; opacity: 0.6;
}

.pix-copy {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.pix-copy__code {
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
  font-size: 12px; line-height: 1.5;
  background: var(--bg); border: 1px solid var(--line);
  padding: 14px; color: var(--ink); word-break: break-all; border-radius: 4px;
}
.pix-copy__btn {
  margin-top: 14px; width: 100%;
  background: var(--ink); color: #fff; border: none;
  padding: 14px; font-size: 14px; font-weight: 600;
  border-radius: 4px; transition: background 220ms ease;
}
.pix-copy__btn:hover { background: var(--purple); }
.pix-copy__btn.is-copied { background: var(--purple); }

.pix-sender { position: relative; }
.pix-sender::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple-soft), transparent 70%);
  filter: blur(10px);
}
.pix-sender__inner { position: relative; }
.pix-sender__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--purple-soft);
  border-radius: 999px; margin-bottom: 22px;
  font-size: 12px; color: var(--purple); font-weight: 600;
}
.pix-sender__amount-row {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.pix-sender__currency { font-weight: 500; font-size: 28px; color: var(--mute); }
.pix-sender__amount {
  flex: 1; background: transparent; border: none; outline: none;
  font-weight: 700; font-size: 88px; letter-spacing: -0.04em;
  color: var(--ink); padding: 0; line-height: 1;
}
.pix-sender__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pix-sender__form { margin-top: 28px; display: grid; gap: 18px; }
.pix-sender__submit {
  margin-top: 28px; width: 100%;
  background: var(--ink); color: #fff; border: none;
  padding: 16px; font-size: 15px; font-weight: 600;
  border-radius: 4px; transition: background 200ms ease;
}
.pix-sender__submit:hover { background: var(--purple); }
a.pix-sender__submit { display: block; text-align: center; text-decoration: none; }

.pix-selected {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 24px;
}
.pix-selected__inner { display: grid; gap: 14px; }
.pix-selected__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase;
}
.pix-selected__row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 18px;
}
.pix-selected__title {
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin: 0;
}
.pix-selected__meta { color: var(--mute); font-size: 13px; margin-top: 4px; }
.pix-selected__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 600; color: var(--purple);
}

.pix-steps {
  list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px;
  font-size: 14px; color: var(--ink);
}
.pix-steps li { padding-left: 0; }
.pix-steps strong { color: var(--purple); margin-right: 6px; }

.pix-confirm-form { margin: 0; }
.pix-confirm-done {
  padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #fafafa; color: var(--ink); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: space-between;
}
.pix-confirm-done__link { color: var(--purple); font-weight: 600; text-decoration: none; }
.pix-confirm-done__link:hover { text-decoration: underline; }

/* ── Pix step blocks (1 → 2 → 3) ────────────────────────────────────────── */
.pix-step + .pix-step { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.pix-step__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.pix-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple-soft); color: var(--purple);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700;
}
.pix-step__title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}
.pix-step__body { display: grid; gap: 14px; }
.pix-step__text {
  font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0;
}
.pix-step__hint {
  font-size: 13px; line-height: 1.55; color: var(--mute); margin: 0;
}

/* Override defaults so steps look right inside their new container */
.pix-step .pix-sender__amount-row { margin: 0; }
.pix-step .pix-sender__presets    { margin-top: 6px; }
.pix-step .pix-sender__submit     { margin-top: 4px; }

/* ── Pix dynamic QR (MercadoPago) ───────────────────────────────────────── */
.pix-dynamic {
  margin-top: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.pix-dynamic__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}
.pix-dynamic__qr {
  width: 100%; height: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 6px; aspect-ratio: 1; object-fit: contain;
}
.pix-dynamic__info { min-width: 0; }
.pix-dynamic__amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; font-weight: 700; color: var(--purple);
  line-height: 1.1;
}
.pix-dynamic__expires {
  font-size: 13px; color: var(--ink); font-weight: 500;
}

.pix-step__error {
  margin: 14px 0 0; padding: 10px 14px;
  background: #fde8e6; border: 1px solid #f1b3ad;
  color: #842029; border-radius: 4px;
  font-size: 13px; line-height: 1.5;
}

.pix-status {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #fafafa; color: var(--ink);
  font-size: 14px; line-height: 1.5;
}
.pix-status__dot {
  width: 10px; height: 10px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--mute);
  animation: pixPulse 1.4s ease-in-out infinite;
}
.pix-status--idle .pix-status__dot { background: var(--purple); }
.pix-status--ok   { background: #e8f5ee; border-color: #b7debe; color: #1e6f3a; }
.pix-status--ok   .pix-status__dot { background: #2a9d4f; animation: none; }
.pix-status--err  { background: #fde8e6; border-color: #f1b3ad; color: #842029; }
.pix-status--err  .pix-status__dot { background: #c83030; animation: none; }

@keyframes pixPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

@media (max-width: 640px) {
  .pix-dynamic__row { grid-template-columns: 1fr; }
  .pix-dynamic__qr  { max-width: 220px; margin: 0 auto; }
}

/* ── Pix confirmation modal ─────────────────────────────────────────────── */
.pix-confirm-modal { padding: 32px; }
.pix-confirm-modal__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--purple); text-transform: uppercase; margin-bottom: 14px;
}
.pix-confirm-modal__title {
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  line-height: 1.3; margin: 0 0 14px; color: var(--ink);
}
.pix-confirm-modal__title strong { color: var(--purple); font-weight: 700; }
.pix-confirm-modal__body {
  font-size: 14px; line-height: 1.6; color: var(--mute); margin: 0 0 24px;
}
.pix-confirm-modal__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end;
}
.pix-confirm-modal__submit {
  min-width: 160px;
}
.pix-confirm-modal__submit[disabled] {
  opacity: 0.65; cursor: not-allowed;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.field { display: block; }
.field__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase;
  transition: color 200ms ease;
  display: block;
}
.field input, .field textarea {
  width: 100%; margin-top: 6px; padding: 10px 0;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line-strong);
  font-size: 15px; color: var(--ink); outline: none; resize: none;
  transition: border-color 200ms ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--purple); }
.field:focus-within .field__label { color: var(--purple); }

/* ── My gifts ───────────────────────────────────────────────────────────── */
.reservations { display: grid; gap: 16px; }
.reservation {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px;
  display: grid; grid-template-columns: 200px 1fr auto;
  overflow: hidden;
  animation: fadeUp 600ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.reservation:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 32px -10px rgba(15, 15, 18, 0.15);
}
.reservation__media {
  height: 200px; position: relative; overflow: hidden;
}
.reservation__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.reservation__halo {
  position: absolute; inset: -30px;
  background: radial-gradient(circle at 30% 30%, rgba(107, 63, 204, 0.4), transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.reservation__placeholder {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 100px;
  color: rgba(255, 255, 255, 0.92); letter-spacing: -0.06em;
}
.reservation__body { padding: 24px; }
.reservation__meta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase; margin-bottom: 8px;
}
.reservation__title {
  font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px;
}
.reservation__desc {
  font-size: 14px; color: var(--soft); margin: 0;
  max-width: 480px; line-height: 1.5;
}
.reservation__status {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.reservation__status--reserved { background: var(--purple-soft); color: var(--purple); }
.reservation__status--confirmed { background: var(--success-soft); color: var(--success); }
.reservation__status--cancelled { background: var(--bg); color: var(--mute); border: 1px solid var(--line); }
.reservation__status-dot {
  width: 6px; height: 6px; background: currentColor; border-radius: 999px;
}
.reservation__status--reserved .reservation__status-dot { animation: pulse 2s ease-in-out infinite; }
.reservation__side {
  padding: 24px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end; gap: 12px;
}
.reservation__price { font-weight: 600; font-size: 22px; color: var(--ink); }
.reservation__price-sub { font-size: 12px; line-height: 1.3; text-align: right; }
.reservation__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* PIX contribution progress bar (parcial / completa / extra) */
.pix-progress {
  width: 140px; max-width: 100%;
  height: 6px; border-radius: 999px;
  background: var(--bg, #f1f1f3);
  overflow: hidden;
  border: 1px solid var(--line, #e5e5e9);
}
.pix-progress__fill {
  height: 100%; border-radius: 999px;
  transition: width 320ms ease;
}
.pix-progress--partial .pix-progress__fill { background: #C49A2C; }   /* dourado discreto */
.pix-progress--full    .pix-progress__fill { background: var(--success, #1F8A4C); }
.pix-progress--extra   .pix-progress__fill {
  background: linear-gradient(90deg, var(--success, #1F8A4C) 0%, #6B3FCC 100%);
}

/* ── Auth modal ─────────────────────────────────────────────────────────── */
.auth-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 15, 18, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  animation: fade 240ms ease;
}
.auth-modal-backdrop.is-open { display: flex; }
.auth-modal {
  width: 720px; max-width: calc(100vw - 32px);
  background: var(--paper); border-radius: 6px;
  box-shadow: 0 60px 120px -20px rgba(15, 15, 18, 0.36);
  display: grid; grid-template-columns: 260px 1fr;
  overflow: hidden;
  animation: slideUpScale 460ms cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-modal--compact {
  display: block;
  width: 520px;
  max-width: calc(100vw - 32px);
  padding: 26px;
}
.auth-modal__poster {
  background: linear-gradient(160deg, var(--purple) 0%, var(--ink) 110%);
  color: #fff; padding: 28px;
  position: relative; overflow: hidden;
}
.auth-modal__poster::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
}
.auth-modal__poster::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: float1 10s ease-in-out infinite;
}
.auth-modal__poster-inner { position: relative; }
.auth-modal__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px;
}
.auth-modal__title {
  font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0 0 12px;
}
.auth-modal__sub { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.auth-modal__hint {
  margin-top: 28px; font-size: 12px; color: rgba(255, 255, 255, 0.7); line-height: 1.5;
}
.auth-modal__panel { padding: 32px; }
.auth-modal__head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.auth-modal__heading {
  font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0;
}
.auth-modal__close {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--soft); width: 32px; height: 32px; font-size: 16px;
  border-radius: 4px;
}
.auth-modal__tabs {
  display: inline-flex; padding: 4px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 22px; position: relative;
}
.auth-modal__tabs-thumb {
  position: absolute; top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: var(--ink); border-radius: 999px;
  transition: left 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-modal__tab {
  position: relative; z-index: 2;
  padding: 8px 22px; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--soft);
  border: none; border-radius: 999px;
  transition: color 280ms ease;
}
.auth-modal__tab.is-active { color: #fff; }
.auth-modal__form { display: grid; gap: 16px; }
.auth-modal__alert {
  padding: 10px 12px; border-radius: 4px;
  font-size: 13px; background: #fbecea; color: var(--danger);
  border: 1px solid rgba(160, 52, 38, 0.28);
}
.auth-modal__alert--success { background: var(--success-soft); color: var(--success); border-color: rgba(29, 110, 58, 0.28); }
.auth-modal__alert.is-hidden { display: none; }
.auth-modal__submit {
  margin-top: 8px; background: var(--ink); color: #fff; border: none;
  padding: 14px; font-size: 14px; font-weight: 600;
  border-radius: 4px; transition: background 200ms ease;
}
.auth-modal__submit:hover { background: var(--purple); }

.admin-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.admin-main .card { border-radius: 12px; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast-stack {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 14px 18px; border-radius: 6px;
  box-shadow: 0 16px 40px -10px rgba(15, 15, 18, 0.3);
  font-size: 14px; min-width: 280px; max-width: 420px;
  animation: slideUpScale 320ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.toast--error { background: var(--danger); }
.toast--success { background: var(--success); }
.toast__close {
  background: transparent; border: none; color: rgba(255, 255, 255, 0.85);
  font-size: 18px; line-height: 1;
}
.toast a { color: #fff; text-decoration: underline; font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 56px 56px; background: var(--paper);
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer__brand-name {
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px;
}
.site-footer__about { font-size: 13px; color: var(--mute); max-width: 360px; line-height: 1.5; }
.site-footer__col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase; margin: 0 0 12px;
}
.site-footer__col a {
  display: block; font-size: 14px; color: var(--ink);
  margin-bottom: 6px; text-decoration: none;
}
.site-footer__col a:hover { color: var(--purple); }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpScale {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawSquiggle { to { stroke-dashoffset: 0; } }
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes slideUnderline {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); }
}
@keyframes qrScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(180px); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero__headline { font-size: 96px; }
  .cover { min-height: 480px; }
  .cover__days-num { font-size: 180px; }
  .thank-you__inner { grid-template-columns: 1fr; }
  .pix-grid { grid-template-columns: 1fr; }
  .pix-card__inner-grid { grid-template-columns: 1fr; }
  .gifts-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: 14px 20px; grid-template-columns: 1fr auto; gap: 8px; }
  .site-header__date { display: none; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  .site-nav__link { padding: 8px 12px; }
  .hero { padding: 40px 20px 32px; }
  .hero__headline { font-size: 64px; letter-spacing: -0.04em; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section, .section--tight { padding: 40px 20px; }
  .section-title { font-size: 36px; }
  .page-title { font-size: 56px; }
  .gifts-grid { grid-template-columns: 1fr; gap: 16px; }
  .gift-card__placeholder { font-size: 96px; }
  .gift-card--big .gift-card__placeholder { font-size: 120px; }
  .marquee__item { font-size: 16px; }
  .thank-you { padding: 40px 24px; }
  .thank-you__quote { font-size: 22px; }
  .pix-card { padding: 22px; }
  .pix-sender__amount { font-size: 56px; }
  .reservation { grid-template-columns: 1fr; }
  .reservation__media { height: 160px; }
  .reservation__side { align-items: stretch; padding: 0 24px 24px; }
  .reservation__actions { justify-content: stretch; }
  .reservation__actions > * { flex: 1; text-align: center; }
  .auth-modal { grid-template-columns: 1fr; }
  .auth-modal__poster { padding: 22px; }
  .site-footer { padding: 32px 20px 40px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .cover { min-height: 360px; }
  .cover__days-num { font-size: 120px; }
  .cover__time-num { font-size: 22px; }
}

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