/* ============================================================
   FARM Rio — Editorial Luxury v2 (Vanguard_UI_Architect)
   Vibe: Editorial Luxury  |  Layout: Z-Axis Cascade + Bento
   Font: Plus Jakarta Sans + Fraunces
   ============================================================ */

:root {
  --bg:           #FDFAF5;
  --surface:      #FFFCF8;
  --surface-2:    #F5F0E8;
  --ink:          #18130E;
  --muted:        #7A7060;
  --light:        #B5ACA0;
  --green:        #145c38;
  --green-deep:   #0D3D27;
  --green-soft:   #EEF4EF;
  --green-pale:   #F3F8F4;
  --coral:        #D4603A;
  --gold:         #C28A32;
  --line:         rgba(24, 19, 14, 0.09);
  --line-soft:    rgba(24, 19, 14, 0.05);
  --danger:       #8C2F24;

  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shell: 430px;
  --ease:   cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.46, 0.64, 1);
  --exit:   cubic-bezier(0.72, 0, 0.68, 0);

  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 999px;

  --sh-sm:  0 1px 3px rgba(24,19,14,.05), 0 4px 16px rgba(24,19,14,.04);
  --sh-md:  0 2px 8px rgba(24,19,14,.07), 0 8px 28px rgba(24,19,14,.05);
  --sh-green: 0 4px 20px rgba(20,92,56,.14), 0 8px 40px rgba(20,92,56,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #E8DDD1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain — fixed, pointer-events: none, never on scrolling containers */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px;
  mix-blend-mode: multiply;
}

/* ── App Shell ─────────────────────────────────────────────── */
#app {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Screens ────────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
}
.screen.active {
  display: flex;
  animation: screenIn 0.55s var(--ease) both;
}
.screen.center {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal classes */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Top Bar ────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  gap: 12px;
}
.top-bar.transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
}

.brand-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--ink);
}
.top-bar.transparent .brand-logo {
  color: #fff;
  text-shadow: 0 1px 16px rgba(0,0,0,.28);
}

.top-tag {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green);
  border: 1px solid rgba(20,92,56,.18);
  border-radius: var(--r-full);
  padding: 5px 11px;
  background: rgba(255,253,249,.8);
  flex-shrink: 0;
}

.link-back {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.link-back:hover { color: var(--ink); }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.title-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.13;
  font-size: clamp(1.9rem, 7.5vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.title-serif .accent {
  color: #C36444;
  font-style: italic;
}

.text-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}
.text-body.small { font-size: 0.73rem; }

.divider {
  width: 45px;
  height: 2px;
  background: linear-gradient(90deg, #C36444, #C28A32);
  margin: 20px 0;
}

/* ── Buttons ────────────────────────────────────────────────── */

/* Primary pill — button-in-button architecture */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border-radius: var(--r-full);
  padding: 16px 28px;
  width: 100%;
  box-shadow: var(--sh-green);
  transition: transform 0.35s var(--spring), background 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.25s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, transparent 60%);
  pointer-events: none;
}
.btn:active  { transform: scale(0.975); box-shadow: 0 2px 8px rgba(20,92,56,.14); }
.btn:hover   { background: var(--green-deep); }
.btn:disabled { opacity: 0.62; pointer-events: none; box-shadow: none; }

/* Button-in-button arrow icon */
.btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--spring);
}
.btn:hover .btn-arrow { transform: translate(2px, -1px) scale(1.08); }
.btn-arrow svg { width: 14px; height: 14px; stroke: white; }

.btn-small { width: auto; padding: 12px 18px; letter-spacing: 0.09em; }

.btn-ghost {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: var(--r-full);
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* busy state (reservando…) */
.btn.is-busy {
  position: relative;
  pointer-events: none;
  color: transparent !important;
  background: #d4cdc4 !important;
  box-shadow: none !important;
  animation: busyPulse 1.4s ease-in-out infinite;
  overflow: hidden;
}
.btn.is-busy::after {
  content: "reservando";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #8a8070;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.btn.is-busy::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: btnShine 1.4s linear infinite;
}
@keyframes busyPulse { 0%,100% { background: #d4cdc4; } 50% { background: #cac3bb; } }
@keyframes btnShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Fields ─────────────────────────────────────────────────── */
.field {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: inset 0 1px 3px rgba(24,19,14,.04);
}
.field:focus {
  border-color: var(--green);
  box-shadow: inset 0 1px 3px rgba(24,19,14,.04), 0 0 0 3px rgba(20,92,56,.08);
}
.field.small { font-size: 0.72rem; }

/* ── 1. Intro ───────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  height: 54dvh;
  min-height: 300px;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  animation: heroScale 12s ease-in-out alternate infinite;
}
@keyframes heroScale { from { transform: scale(1); } to { transform: scale(1.04); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,92,56,.12) 0%,
    rgba(20,92,56,.04) 35%,
    rgba(253,250,245,.0) 55%,
    var(--bg) 100%
  );
}

.intro-content {
  padding: 0 26px 36px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.intro-content .eyebrow { margin-bottom: 14px; }
.intro-content .title-serif { margin-bottom: 16px; font-size: clamp(2rem, 8.5vw, 2.6rem); }
.intro-content .text-body { margin-bottom: 26px; }

/* ── 2. Quiz ────────────────────────────────────────────────── */
.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 200px;
}
.quiz-step {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-weight: 600;
}
.quiz-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(20,92,56,.1);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--green));
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}

.quiz-body {
  padding: 22px 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quiz-question {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 6.5vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Double-bezel quiz options */
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }

/* Outer shell */
.quiz-op {
  text-align: left;
  border: 1px solid rgba(20,92,56,.13);
  background: rgba(20,92,56,.04);
  border-radius: var(--r-lg);
  padding: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
  box-shadow: var(--sh-sm);
}
.quiz-op:active { transform: scale(0.985); }

/* Inner core — JS generates .quiz-op-copy */
.quiz-op-copy {
  display: block;
  background: var(--surface);
  border-radius: calc(var(--r-lg) - 3px);
  padding: 15px 17px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.92);
}

.quiz-op strong,
.qo-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}
.quiz-op span:not(.quiz-op-copy),
.qo-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Selected state */
.quiz-op.is-on {
  border-color: var(--green);
  background: rgba(20,92,56,.1);
  box-shadow: var(--sh-green);
}
.quiz-op.is-on .quiz-op-copy {
  background: var(--green-pale);
}

/* has-img variant */
.quiz-op.has-img { padding: 0; overflow: hidden; }
.quiz-op.has-img img { width: 100%; height: 120px; object-fit: cover; display: block; }
.quiz-op.has-img .quiz-op-copy { padding: 12px 16px 14px; border-radius: 0; box-shadow: none; }

.quiz-feedback {
  min-height: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}

/* ── 3. Reveal ──────────────────────────────────────────────── */
.reveal-loader {
  width: 48px; height: 48px;
  margin: 28px 0;
  border-radius: 50%;
  border: 1.5px solid rgba(20,92,56,.15);
  border-top-color: var(--green);
  animation: spin 1s linear infinite;
}
.reveal-msg {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
}

/* ── 4. Resultado ───────────────────────────────────────────── */
.confetti-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50;
}
.result-screen {
  position: relative;
  text-align: center;
  align-items: center;
  overflow: hidden;
  background: url(assets/result-bg.jpg) center top / cover no-repeat;
  background-color: var(--surface);
}

/* Wash cream progressivo — início ~48%, zero faixa visível (7 stops) */
.result-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(251,249,245,0)    0%,
    rgba(251,249,245,0)    42%,
    rgba(251,249,245,0.14) 50%,
    rgba(251,249,245,0.42) 62%,
    rgba(251,249,245,0.72) 74%,
    rgba(251,249,245,0.92) 86%,
    rgba(251,249,245,1)    96%
  );
  z-index: 0;
}
.result-screen::after { display: none; }

.result-topbar {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  padding: 22px 22px 0;
  position: relative; z-index: 2;
}
.result-topbar .brand-logo {
  background: rgba(251,249,245,0.65);
  padding: 6px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


.result-content {
  width: min(100%, 390px);
  flex: 1;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative; z-index: 1;
  animation: result-enter 0.75s cubic-bezier(0.34,1.46,0.64,1) both;
}
@keyframes result-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-content .eyebrow {
  margin-bottom: 18px;
  animation: result-enter 0.6s cubic-bezier(0.34,1.46,0.64,1) 0.1s both;
}
.result-content .title-serif {
  max-width: 340px;
  margin: 0 auto;
  font-size: clamp(2.3rem, 9.5vw, 3rem);
  line-height: 1.08;
  animation: result-enter 0.7s cubic-bezier(0.34,1.46,0.64,1) 0.18s both;
}
.result-content .divider {
  width: 45px;
  height: 2px;
  background: linear-gradient(90deg, #C36444, #C28A32);
  margin: 24px auto;
  animation: result-enter 0.6s cubic-bezier(0.34,1.46,0.64,1) 0.28s both;
}

/* Double-bezel reason box — Z-axis float */
.reason-box {
  width: 100%;
  background: #F4EFE6;
  border: 1px solid #E2D9C8;
  border-radius: var(--r-xl);
  padding: 3px;
  box-shadow: 0 18px 56px rgba(20,92,56,.1), 0 4px 16px rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: result-enter 0.7s cubic-bezier(0.34,1.46,0.64,1) 0.32s both;
}
.reason-box-inner {
  background: #F4EFE6;
  border: 1px solid #E2D9C8;
  border-radius: calc(var(--r-xl) - 3px);
  padding: 20px 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5);
}
.reason-title {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  font-weight: 700;
}
.reason-box .text-body,
.reason-box-inner .text-body {
  max-width: 310px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 0.82rem;
}

.result-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
  animation: result-enter 0.7s cubic-bezier(0.34,1.46,0.64,1) 0.42s both;
}
.result-cta .btn {
  width: min(100%, 340px);
  box-shadow: 0 8px 32px rgba(20,92,56,.28), 0 2px 8px rgba(20,92,56,.15);
}
.result-cta .btn:hover {
  box-shadow: 0 12px 40px rgba(20,92,56,.38), 0 3px 12px rgba(20,92,56,.2);
  transform: translateY(-1px);
}

@media (max-height: 700px) {
    .result-content { padding-top: 4px; padding-bottom: 20px; justify-content: center; }
  .result-content .title-serif { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .result-content .divider { margin: 12px auto; }
  .result-cta { padding-top: 16px; }
}

/* ── 5. Presentes ───────────────────────────────────────────── */
.catalog-head { padding: 8px 22px 14px; }
.catalog-head .eyebrow { margin-bottom: 10px; }
.catalog-head .title-serif { font-size: clamp(1.7rem, 7vw, 2rem); }
/* ── Gifts catalog — editorial consistency ── */
.catalog-head .title-serif .accent {
  color: #C36444;
}


.gift-cat-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
  margin-top: 12px;
}
.gift-cat-tabs::-webkit-scrollbar { display: none; }

.gift-cat-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.gift-cat-tab.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--sh-green);
}

.gift-search { position: relative; margin: 8px 0 2px; }
.gift-search .field { padding-right: 44px; }
.gift-search-clear {
  position: absolute; right: 7px; top: 50%;
  transform: translateY(-50%);
  border: none; background: var(--green-soft); color: var(--green);
  width: 30px; height: 30px; border-radius: 50%; font-size: 0.78rem; cursor: pointer;
  transition: background 0.2s;
}
.gift-search-clear:hover { background: var(--green-pale); }

/* Asymmetrical gift grid */
.gifts-list {
  list-style: none;
  padding: 4px 14px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gifts-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 36px 10px;
  line-height: 1.6;
}

/* Gift card — double-bezel outer shell */
.gift-card {
  background: rgba(24,19,14,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--spring), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--sh-sm);
  position: relative;
}
.gift-card:active { transform: scale(0.975); }
.gift-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: rgba(20,92,56,.18);
}
.gift-card.is-on {
  border-color: var(--green);
  box-shadow: var(--sh-green);
}
.gift-card.is-on::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: var(--green);
  border-radius: 50%;
  color: #fff; font-size: 0.66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* Gift card inner core */
.gift-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: var(--green-soft);
  border-radius: calc(var(--r-lg) - 4px) calc(var(--r-lg) - 4px) 0 0;
}

.gift-copy {
  background: var(--surface);
  border-radius: 0 0 calc(var(--r-lg) - 4px) calc(var(--r-lg) - 4px);
  padding: 10px 11px 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.gift-label {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.gift-name {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
  color: var(--ink);
}
.gift-price {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 5px;
}
.gift-price s { color: var(--light); margin-right: 5px; }
.gift-price strong { color: var(--green); font-weight: 700; }

/* ── VTEX searching text (outside grid) ── */
.gifts-searching-msg {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 32px 10px 0;
  width: 100%;
}

/* ── VTEX live card — arrive animation ── */
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gift-card--arriving {
  animation: card-arrive 0.52s cubic-bezier(0.34,1.46,0.64,1) both;
}

/* ── Live badge on VTEX cards ── */
.gift-card[data-live='1'] {
  border-color: rgba(20,92,56,.14);
}
.gift-card[data-live='1'] .gift-label {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gift-card[data-live='1'] .gift-label::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: live-dot 1.8s cubic-bezier(0.32,0.72,0,1) infinite;
}
@keyframes live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.gift-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  align-items: center;
}
.gift-sizes-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  width: 100%;
  margin-bottom: 2px;
}
.gift-size-chip {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.gift-size-chip.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── 6. Tamanho ─────────────────────────────────────────────── */
.size-wrap {
  padding: 10px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.size-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r-xl);
  background: var(--green-soft);
  box-shadow: var(--sh-md);
}
.size-name { font-size: 1.3rem; }
/* ── Size screen — unified editorial pattern ── */
.size-wrap .eyebrow { margin-bottom: 6px; }
.size-wrap .title-serif { margin-bottom: 4px; }
.size-wrap .text-body { margin-bottom: 4px; color: var(--muted); }

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 8px;
}
.size-chip {
  min-width: 50px;
  padding: 13px 4px;
  text-align: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: var(--sh-sm);
}

/* ── Size button disabled — visible but muted ── */
#screen-size .btn:disabled {
  opacity: 0.65;
  background: var(--green-deep);
  box-shadow: 0 4px 16px rgba(20,92,56,.12);
}

.size-chip.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--sh-green);
}

/* ── 7. Confirmação ─────────────────────────────────────────── */
.confirm-wrap {
  padding: 8px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirm-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r-xl);
  background: var(--green-soft);
  box-shadow: var(--sh-md);
}
.confirm-size { font-size: 0.8rem; color: var(--muted); }
.confirm-size strong { color: var(--ink); }
/* ── Confirm screen refinements ── */
.confirm-wrap .eyebrow { margin-bottom: 8px; }
.confirm-wrap .title-serif { font-size: clamp(1.3rem, 5.5vw, 1.6rem); margin-bottom: 4px; }


/* ── 8. Dados ───────────────────────────────────────────────── */
.data-wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.data-intro {
  width: 100%;
  max-width: 350px;
  margin: 4px auto 2px;
  text-align: center;
}
.data-intro .eyebrow { margin-bottom: 8px; }
.data-intro .title-serif { margin-bottom: 10px; }
.data-intro .text-body { max-width: 330px; margin: 0 auto; }

.cpf-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
  width: 100%;
}
.cpf-row #inp-cpf { flex: 1 1 auto; min-width: 0; width: 0; }
.cpf-row #btn-cpf-lookup { flex: 0 0 auto; min-width: 82px; }
.cpf-status { font-size: 0.74rem; color: var(--danger); }

.welcome-note {
  font-size: 0.83rem;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  line-height: 1.5;
}

/* Cliente card — double-bezel */
.cliente-card {
  background: rgba(24,19,14,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 3px;
}
.cliente-card-inner,
.cliente-card > *:first-child,
.cc-head {
  /* JS renders directly into .cliente-card, so style children */
}
.cc-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 0;
}
.cc-badge {
  align-self: flex-start;
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--r-full);
  padding: 5px 10px;
  font-weight: 600;
}
.cc-head strong {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0 16px;
  display: block;
}
.cc-desde {
  font-size: 0.66rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding: 0 16px;
  display: block;
  margin-bottom: 10px;
}
.cc-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 16px 14px;
}
.cc-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: baseline; }
.cc-row dt { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cc-row dd { margin: 0; font-size: 0.83rem; word-break: break-word; }
.cc-compra {
  margin: 0 14px 14px;
  background: var(--green-soft);
  border-radius: var(--r-md);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cc-compra-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cc-compra-title {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.cc-compra-head strong { font-family: var(--font-serif); font-size: 1.02rem; }
.cc-compra-info { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip {
  font-size: 0.62rem;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(20,92,56,.1);
  border-radius: var(--r-full);
  padding: 4px 9px;
  white-space: nowrap;
}
.cc-chip-ok { color: var(--green); border-color: rgba(20,92,56,.26); }
.cc-chip-code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: 0.02em; }
.cc-note {
  margin: 0 16px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* Forms */
.data-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.form-grid label:nth-child(1),
.form-grid label:nth-child(2),
.form-grid label:nth-child(3) { grid-column: 1 / -1; }

.address-head { text-align: center; margin-bottom: 2px; }
.address-head .eyebrow { margin-bottom: 8px; }
.address-head .title-serif { font-size: 1.4rem; margin-bottom: 8px; }
.address-head .text-body { max-width: 320px; margin: 0 auto; }
#address-form .form-grid label:nth-child(1),
#address-form .form-grid label:nth-child(2) { grid-column: auto; }
#address-form .form-grid label:nth-child(3) { grid-column: 1 / -1; }

/* ── 8b. Frete ──────────────────────────────────────────────── */
.frete-wrap {
  padding: 10px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.frete-opcoes { display: flex; flex-direction: column; gap: 10px; }
.frete-opcao {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.3s var(--ease);
  text-align: left;
  box-shadow: var(--sh-sm);
}
.frete-opcao:hover { border-color: rgba(20,92,56,.25); box-shadow: var(--sh-md); }
.frete-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.frete-copy strong { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.frete-copy small { font-size: 0.74rem; color: var(--muted); }
.frete-valor { font-family: var(--font-serif); font-size: 1.1rem; color: var(--green); }

/* ── 8c. Envio (Editorial Redesign) ────────────────────────── */
#screen-envio { justify-content: flex-start; min-height: 100dvh; }

.envio-editorial {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 22px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.envio-header {
  text-align: left;
  padding: 8px 0 24px;
}
.envio-eyebrow {
  display: inline-block;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}
.envio-header .title-serif {
  font-size: clamp(2rem, 8.5vw, 2.6rem);
  line-height: 1.05;
}

/* Envio address card */
.envio-endereco {
  background: linear-gradient(135deg, rgba(20,92,56,0.04) 0%, rgba(255,255,255,0.9) 100%) !important;
  border: 1px solid rgba(20,92,56,0.12) !important;
  border-radius: 20px !important;
  padding: 18px 22px !important;
  margin-bottom: 20px !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(20,92,56,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}
.envio-endereco::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #3a8fd4);
  opacity: 0.8;
}
.envio-endereco strong { color: var(--green) !important; font-weight: 700 !important; font-size: 0.82rem !important; }
#envio-endereco-texto { font-size: 0.88rem !important; color: #333 !important; font-weight: 500; line-height: 1.5; }

/* Envio shipping cards — double-bezel */
.envio-opts,
.envio-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 20px;
}

.envio-opt,
.envio-card {
  position: relative;
  background: rgba(26,26,26,.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 3px;
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: var(--sh-sm);
  overflow: visible;
  display: flex;
  align-items: stretch;
}
.envio-opt:active,
.envio-card:active { transform: scale(0.985); }

/* Inner core */
.envio-card-inner {
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 3px);
  padding: 20px 20px 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.92);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Envio opt inner styling (for JS-generated content) */
.envio-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-xl);
}

.envio-opt[aria-checked="true"],
.envio-card.is-on {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(20,92,56,.12), 0 8px 40px rgba(20,92,56,.06);
  transform: translateY(-2px);
}
.envio-opt[aria-checked="true"] {
  background: linear-gradient(135deg, rgba(20,92,56,0.03) 0%, #fff 100%);
}
.envio-card.is-on .envio-card-inner {
  background: linear-gradient(175deg, rgba(20,92,56,.03) 0%, rgba(20,92,56,.01) 40%, var(--surface) 100%);
}

/* Checkmark on selected */
.envio-opt[aria-checked="true"]::after,
.envio-card.is-on::after {
  content: '';
  position: absolute;
  top: -6px; right: -6px;
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20,92,56,.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  animation: checkPop 0.35s var(--spring) both;
}
@keyframes checkPop {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.envio-opt-radio { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; flex-shrink: 0; position: relative; }
.envio-opt[aria-checked="true"] .envio-opt-radio { border-color: var(--green); }
.envio-opt[aria-checked="true"] .envio-opt-radio::after { content: ''; position: absolute; inset: 3px; background: var(--green); border-radius: 50%; }
.envio-opt-copy { flex: 1; }
.envio-opt-copy strong { display: block; font-size: 0.88rem; color: var(--ink); }
.envio-opt-copy small { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.envio-opt-valor { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--green); }
.envio-opt[aria-checked="true"] .envio-opt-valor { color: var(--green-deep); }

/* Card head/detail/price rows */
.envio-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.envio-carrier { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.envio-tag { font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: var(--r-full); white-space: nowrap; line-height: 1; }
.envio-tag--rapido { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.envio-tag--eco { color: var(--green); background: var(--green-soft); border: 1px solid rgba(20,92,56,.12); }
.envio-card-detail { display: flex; align-items: baseline; gap: 8px; }
.envio-prazo { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.envio-prazo strong { color: var(--ink); font-weight: 600; }
.envio-diff-pill { font-size: 0.6rem; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.envio-diff-pill--eco { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.envio-card-price { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.envio-price-label { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); font-weight: 600; }
.envio-price { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; color: var(--green); letter-spacing: -0.02em; line-height: 1; }

/* Badge styling */
.envio-badge { position: absolute; top: -10px; left: 18px; font-size: 0.58rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.08em; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.envio-badge.eco { background: linear-gradient(135deg, #00c853, #69f0ae); color: #fff; }
.envio-badge.fast, .envio-badge.rapido { background: linear-gradient(135deg, var(--accent), var(--green)); color: #fff; }
.envio-badge.economico { background: linear-gradient(135deg, #00c853, #69f0ae); color: #fff; }

.envio-logo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f8f8f8, #fff); border-radius: 14px; font-size: 1.5rem; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,1); }
.envio-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.envio-copy strong { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.envio-copy span { font-size: 0.76rem; color: #666; }
.envio-diff { font-size: 0.72rem; font-weight: 600; margin-top: 4px; padding: 4px 10px; background: rgba(20,92,56,.08); border-radius: 8px; display: inline-block; width: fit-content; color: var(--green); }
.envio-diff-eco { background: rgba(46, 125, 50, 0.1) !important; color: #1b5e20 !important; }
.envio-val { font-size: 1.15rem; font-weight: 800; color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }
.envio-opt[aria-checked="true"] .envio-val { color: var(--green); }

/* Skeleton */
.envio-skel {
  height: 120px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--bg) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: btnShine 1.6s linear infinite;
}

/* Status */
.envio-status { font-size: 0.78rem; color: var(--accent); margin-bottom: 12px; }

/* Summary strip */
.envio-summary {
  margin-top: 24px;
  background: rgba(26,26,26,.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 3px;
}
.envio-summary-inner {
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 3px);
  padding: 16px 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.92);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.envio-summary-row { display: flex; align-items: center; gap: 12px; }
.envio-summary-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); display: flex; align-items: center; justify-content: center; color: var(--green); }
.envio-summary-text { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.envio-summary-text strong { color: var(--ink); font-weight: 600; }

/* Trust band */
.trust-band {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.trust-band > div { text-align: center; font-size: 0.64rem; color: var(--muted); line-height: 1.4; }
.trust-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20,92,56,.08), rgba(20,92,56,.04));
  border: 1px solid rgba(20,92,56,.1);
  margin: 0 auto 8px;
}
.trust-disc svg { width: 20px; height: 20px; color: var(--green); }

/* Envio footer */
.envio-footer { margin-top: auto; padding-top: 20px; padding-bottom: 8px; }

/* Envio CTA */
#btn-envio-continue {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  box-shadow: 0 6px 24px rgba(20,92,56,.22), 0 2px 8px rgba(20,92,56,.12);
}
#btn-envio-continue:hover {
  box-shadow: 0 8px 32px rgba(20,92,56,.32), 0 3px 12px rgba(20,92,56,.15);
  transform: translateY(-2px);
}
#btn-envio-continue:disabled { opacity: 0.55; box-shadow: none; }

/* ── Card entrance animation ── */
@keyframes envioCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.envio-card--entering { animation: envioCardIn 0.55s var(--spring) both; }
.envio-card--entering:nth-child(2) { animation-delay: 0.08s; }

/* ── 9. Pagamento ──────────────────────────────────────────── */
.payment-wrap {
  padding: 8px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.payment-wrap .title-serif { margin: 2px 0 16px; }

/* Double-bezel fee box */
.fee-box {
  background: rgba(26,26,26,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 3px;
  text-align: center;
}
.fee-box > * { padding: 16px; }
.fee-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green);
  margin: 6px 0 8px;
  display: block;
  font-weight: 700;
}
.fee-box .text-body { max-width: 260px; margin: 0 auto; }

.pix-area { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pix-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
#pix-qr-wrap {
  width: 200px; height: 200px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin: 0 auto 16px;
}
#pix-qr-img { width: 100%; height: 100%; object-fit: contain; max-width: 180px; }
.pix-copy-row { display: flex; gap: 8px; width: 100%; margin-bottom: 14px; }
.pix-copy-row .field { flex: 1; text-align: left; font-size: 0.66rem; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.74rem; color: var(--muted); margin-bottom: 16px; }
.pix-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}
.pix-dot.ok  { background: var(--green); animation: none; }
.pix-dot.err { background: var(--danger); animation: none; }
.pix-dot.green { background: var(--green); }

.pix-status-faixa {
  width: 100%;
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--r-sm);
  padding: 11px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  animation: faixaPulse 2s ease-in-out infinite;
}
.pix-status-faixa::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}
.pix-status-faixa.ok { background: var(--green); color: #fff; animation: none; }
.pix-status-faixa.ok::before { background: rgba(255,255,255,.8); animation: none; }

.pix-instrucao { font-size: 0.7rem; color: var(--muted); text-align: center; letter-spacing: 0.03em; margin-top: -6px; }
.pix-timer-row { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 0.7rem; color: var(--light); margin-top: -6px; }
.pix-timer { font-weight: 600; font-variant-numeric: tabular-nums; }
.pix-timer.urgente { color: var(--danger); }

/* ── 10. Upsell Info + Upsell ──────────────────────────────── */
/* Upsell Info is styled inline in HTML - CSS support below */

/* Upsell timer banner */
.upsell-timer-banner {
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.02em;
}
.upsell-timer-banner strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.upsell-alert-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 4px 0;
}
.upsell-alert-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  color: var(--gold);
}
.upsell-alert-text { font-size: 0.84rem; color: var(--ink); line-height: 1.6; }

.upsell-product-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-sm);
}
.upsell-product-row img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: #f0f0f0; }
.upsell-product-name { font-family: var(--font-serif); font-weight: 600; font-size: 0.98rem; line-height: 1.3; }

.upsell-status-row { display: flex; gap: 12px; margin-top: 6px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.upsell-confirmed { color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.upsell-confirmed::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.upsell-pending { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.upsell-pending::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

.upsell-benefits {
  background: var(--green-soft);
  border: 1px solid rgba(20,92,56,.1);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.upsell-benefits-title {
  font-size: 0.64rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.upsell-benefit-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.upsell-benefit-row:last-child { margin-bottom: 0; }
.upsell-benefit-check { color: var(--green); font-weight: 600; font-size: 0.78rem; flex-shrink: 0; width: 16px; text-align: center; line-height: 1; }
.upsell-benefit-text { font-size: 0.82rem; color: var(--ink); line-height: 1.4; }
.upsell-benefit-text strong { color: var(--ink); font-weight: 600; }

.upsell-fee-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 18px 20px;
  text-align: center;
  box-shadow: var(--sh-sm);
}
.upsell-fee-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.upsell-fee-val {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0 0 6px;
  display: block;
  letter-spacing: -0.01em;
}
.upsell-fee-note { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.upsell-pix-area { margin-top: 16px; }
.upsell-pix-qr-wrap { min-height: 150px; display: flex; align-items: center; justify-content: center; }

/* ── 11. Final (editorial) ─────────────────────────────────── */
.check-badge {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 0 0 8px rgba(20,92,56,.1), 0 8px 32px rgba(20,92,56,.2);
}

.final-wrap {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-eyebrow { color: var(--green); margin-bottom: 18px; }
#screen-final .title-serif { font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.1; }
#screen-final .divider { margin: 22px auto 20px; width: 45px; height: 2px; background: linear-gradient(90deg, var(--green), var(--gold)); }
#screen-final .text-body { max-width: 300px; }

.final-protocol-line {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.final-protocol-line strong {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  font-size: 0.86rem;
}

/* ── Toast ─────────────────────────────────────────────────── */
#toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--r-full);
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 800;
  max-width: 88vw;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(26,26,26,.22);
}
#toast.show,
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── PIX Overlay (Premium Modal) ───────────────────────────── */

/* Legacy bottom-sheet class — redirect to modal */
.pix-sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 36px 30px 32px;
  box-shadow: 0 28px 64px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.08);
  animation: modalSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.pix-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 36px 30px 32px;
  box-shadow: 0 28px 64px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.08);
  animation: modalSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.pix-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(26,26,26,.05);
  border: none; border-radius: 50%;
  font-size: 20px; color: #666;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}
.pix-close-btn:hover { background: rgba(26,26,26,.1); color: #333; }

/* Header: OSTER | Pix */
.pix-header {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 24px; padding-top: 4px;
  position: relative; z-index: 1;
}
.pix-brand { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; color: var(--green); text-transform: uppercase; }
.pix-sep   { color: #ccc; font-weight: 300; font-size: 17px; }
.pix-title { font-family: var(--font-serif); font-size: 26px; font-style: italic; font-weight: 400; color: var(--green); }

/* Red gradient payment card — double bezel */
.pix-card-red {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 20px; padding: 3px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,20,56,.08) 0%, rgba(20,92,56,.05) 100%);
  box-shadow: 0 8px 32px rgba(0,20,56,.14), 0 2px 8px rgba(0,20,56,.06);
  gap: 12px;
}
.pix-card-red::after {
  content: ''; position: absolute; inset: 3px; border-radius: 17px;
  background: linear-gradient(135deg, #001438 0%, #0a2550 55%, #001438 100%); z-index: 0;
}
.pix-card-left, .pix-card-right { position: relative; z-index: 1; }
.pix-card-red > .pix-card-left { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 5px; text-align: left; border-right: 1px solid rgba(255,255,255,.08); }
.pix-card-red > .pix-card-right { padding: 16px 20px; }
.pix-card-label { font-size: 9px; color: rgba(172,214,242,.7); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; }
.pix-card-method { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; }
.pix-card-info   { font-size: 10px; color: rgba(172,214,242,.55); letter-spacing: 0.14em; margin-top: 2px; text-transform: uppercase; font-weight: 500; }
.pix-card-right  { border-left: 1px solid rgba(255,255,255,.16); padding-left: 20px; margin-left: 8px; }
.pix-card-value  { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }

/* Loading state inside modal */
.pix-loading {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 50px 0; color: #777; font-size: 13px;
}
.pix-gerando { padding: 40px 0; text-align: center; }
.pix-spin {
  width: 42px; height: 42px;
  border: 2.5px solid rgba(20,92,56,.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: block; margin: 10px auto;
}

/* PIX body (shown after generation) */
.pix-body {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}

/* QR code wrapper */
.pix-qr {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
}
.pix-qr img { width: 185px; height: 185px; display: block; border-radius: 8px; }
.pix-qr-wrap-vps {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  margin: 0 auto 12px;
}
.pix-qr-wrap-vps img { max-width: 160px; border-radius: 8px; }

.pix-hint { font-size: 13px; color: #666; text-align: center; }

/* Timer pill */
.pix-timer-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(0,20,56,.06);
  box-shadow: 0 2px 8px rgba(0,20,56,.05); font-size: 12px; color: var(--muted);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pix-timer-pill .pix-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold, #c9a227); animation: pulse 2s cubic-bezier(0.5,0.1,0.5,1) infinite; }
.pix-timer-pill strong { color: var(--ink); font-weight: 700; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; margin-left: 2px; }

/* Divider with label */
.pix-divider {
  width: 100%; display: flex; align-items: center; gap: 14px; margin: 4px 0;
}
.pix-divider::before, .pix-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), var(--line), transparent);
}
.pix-divider span { font-size: 10px; letter-spacing: 0.16em; color: var(--light); font-weight: 500; white-space: nowrap; }

/* Copy row inside modal */
.pix-copy { width: 100%; display: flex; gap: 9px; }
.pix-copy input,
.pix-copy textarea {
  flex: 1;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 11px;
  padding: 13px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: #333; outline: none;
  text-overflow: ellipsis;
  resize: none;
  transition: border-color 0.2s var(--ease);
}
.pix-copy input:focus,
.pix-copy textarea:focus { border-color: var(--green); }
.pix-copy button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(145deg, var(--accent), var(--green));
  color: #fff; border: none;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.3s var(--spring), opacity 0.2s;
  box-shadow: 0 3px 12px rgba(20,92,56,.28);
}
.pix-copy button:active { transform: scale(0.975); }

.pix-copy-msg { font-size: 0.9rem; font-weight: 600; color: #fff; background: var(--green); padding: 8px 16px; border-radius: 8px; margin: 10px 0; text-align: center; }

/* Status inside modal */
.pix-status-faixa,
.pix-sheet .pix-status-faixa,
.pix-modal .pix-status-faixa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px; margin: 10px 0 0; border-radius: 14px;
  background: rgba(172,214,242,.18); border: 1px solid rgba(20,92,56,.12);
  color: var(--green); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  text-align: center; line-height: 1.5; animation: statusGlow 2.4s cubic-bezier(0.5,0.1,0.5,1) infinite;
}
@keyframes statusGlow { 0%,100% { background: rgba(172,214,242,.18); } 50% { background: rgba(172,214,242,.32); } }
.pix-status-faixa::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(20,92,56,.16); animation: pulse 1.8s cubic-bezier(0.5,0.1,0.5,1) infinite; flex-shrink: 0; }
.pix-status-faixa.ok { background: linear-gradient(135deg, #1e7a3e 0%, #0e4428 100%); color: #FFFFFF; border-color: transparent; animation: none; box-shadow: 0 6px 20px rgba(20,92,56,.3); }
.pix-status-faixa.ok::before { background: #FFFFFF; box-shadow: 0 0 0 3px rgba(255,255,255,.22); animation: none; }

/* Back link inside modal */
.pix-back,
.pix-sheet .link-back,
.pix-modal .link-back {
  background: none; border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
  transition: color 0.2s var(--ease);
}
.pix-back:hover,
.pix-sheet .link-back:hover { color: var(--ink); }

/* "Ja paguei" button */
.pix-check {
  width: 100%; margin-top: 10px;
  padding: 14px; border-radius: var(--r-full);
  background: var(--green); color: #fff; border: none;
  font-family: var(--font-sans); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--sh-blue);
  transition: background 0.3s var(--ease), transform 0.3s var(--spring);
}
.pix-check:active { transform: scale(0.975); }

.pix-erro,
.pixov-erro { color: var(--danger); font-size: 0.8rem; text-align: center; margin: 0; }

/* Legacy pix-sheet inner spacing */
.pix-sheet .brand-logo { margin-bottom: 20px; }
.pix-sheet .title-serif { margin: 2px 0 16px; }
.pix-sheet .fee-box { margin-bottom: 22px; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes pulse      { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.9); } }
@keyframes faixaPulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }

/* ── Desktop block ─────────────────────────────────────────── */
#desktop-block {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}


/* ── Envio editorial overrides ── */
.envio-editorial .envio-endereco {
  background: linear-gradient(135deg, rgba(20,92,56,0.03) 0%, rgba(255,255,255,0.92) 100%);
  border: 1px solid rgba(20,92,56,0.1);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  font-size: 0.86rem;
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.envio-editorial .envio-endereco::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(20,92,56,.3));
}
.envio-editorial .envio-endereco strong {
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 4px;
}
.envio-editorial .envio-endereco span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Envio opts within editorial container */
.envio-editorial .envio-opts {
  margin: 0 0 16px;
}

/* Envio status within editorial */
.envio-editorial .envio-status {
  margin-bottom: 8px;
}

/* --- envio refinement: less generic --- */
.envio-logo { font-size: 1.2rem; opacity: 0.7; }
.envio-badge { font-size: 0.58rem; letter-spacing: 0.04em; padding: 3px 8px; font-weight: 600; }
.envio-badge.rapido { background: rgba(20,92,56,.08); color: var(--green); border: 1px solid rgba(20,92,56,.12); }
.envio-badge.economico { background: rgba(20,92,56,.08); color: var(--green); border: 1px solid rgba(20,92,56,.12); }
.envio-diff { font-size: 0.68rem; color: var(--muted); opacity: 0.8; }
.envio-diff-eco { color: var(--green); opacity: 1; }

/* --- gift price display --- */
.gift-price { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.78rem; }
.gift-price s { color: var(--muted); font-size: 0.7rem; text-decoration: line-through; opacity: 0.7; }
.gift-price b { color: var(--green); font-weight: 700; font-size: 0.85rem; }


/* ═══ OFFICIAL OSTER SVG LOGO ═══ */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(13%) sepia(85%) saturate(2554%) hue-rotate(206deg) brightness(93%) contrast(101%);
  /* ^ paints the SVG currentColor as --blue (#085693) via CSS filter */
}
.top-bar.transparent .brand-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 10px rgba(0,0,0,.35));
}
.pix-sheet .brand-logo img,
.result-topbar .brand-logo img,
#screen-reveal .brand-logo img {
  height: 32px;
}

/* ═══ LOGO PILL BACKDROP — melhora contraste em fundos azuis/escuros ═══ */
.top-bar.transparent .brand-logo,
.result-topbar .brand-logo {
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 20px rgba(0,20,56,.18), inset 0 1px 0 rgba(255,255,255,.25);
}
.top-bar.transparent .brand-logo img,
.result-topbar .brand-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,.25));
  height: 24px;
}

/* ═══ LOGO: forçar cor azul institucional em telas de fundo claro ═══ */
/* Reveal screen (preparando/analisando) tem fundo claro → logo azul */
#screen-reveal .brand-logo img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(85%) saturate(2554%) hue-rotate(206deg) brightness(93%) contrast(101%) drop-shadow(0 1px 3px rgba(0,20,56,.1)) !important;
}
/* PIX sheet também tem fundo claro */
.pix-sheet .brand-logo img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(85%) saturate(2554%) hue-rotate(206deg) brightness(93%) contrast(101%) !important;
}

/* ═══ LOGO SEMPRE AZUL INSTITUCIONAL (override final) ═══ */
.brand-logo img,
.top-bar .brand-logo img,
.top-bar.transparent .brand-logo img,
.result-topbar .brand-logo img,
#screen-reveal .brand-logo img,
.pix-sheet .brand-logo img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(85%) saturate(2554%) hue-rotate(206deg) brightness(93%) contrast(101%) !important;
}
/* Pill backdrop fica branco pra fazer azul destacar quando fundo for escuro/transparente */
.top-bar.transparent .brand-logo,
.result-topbar .brand-logo {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 24px rgba(0,20,56,.22), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ═══ RESULT: remover pill (fundo da result e claro) ═══ */
.result-topbar .brand-logo {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* PIX OVERLAY - FARM RIO THEME */

.pix-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pix-overlay[hidden] { display: none; }

.pix-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 61, 39, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pix-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  animation: pixSlideUp 0.4s var(--spring) both;
}
@keyframes pixSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pix-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s ease;
}
.pix-close:hover { background: var(--line); color: var(--ink); }

.pix-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pix-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pix-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pix-qr-wrap {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(20, 92, 56, 0.12);
  border: 1px solid var(--line);
}
.pix-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.pix-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: 20px;
}
.pix-timer-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.pix-timer strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pix-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.pix-divider::before,
.pix-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.pix-divider span {
  font-size: 0.72rem;
  color: var(--light);
}

.pix-code-row {
  width: 100%;
  display: flex;
  gap: 8px;
}
.pix-code-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: monospace;
  background: var(--surface-2);
  color: var(--ink);
}
.pix-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pix-copy-btn:hover { background: var(--green-deep); transform: scale(1.02); }
.pix-copy-btn:active { transform: scale(0.98); }

.pix-copy-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  padding: 8px 20px;
  border-radius: 8px;
  margin: 4px 0;
}

.pix-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 12px 20px;
  background: var(--surface-2);
  border-radius: 12px;
  width: 100%;
  justify-content: center;
}
.pix-status-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
.pix-status.paid .pix-status-dot {
  background: var(--green);
  animation: none;
}

.pix-error {
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  background: rgba(140, 47, 36, 0.1);
  border-radius: 8px;
  margin: 8px 0 0;
}

/* PIX overlay extras */
.pix-header { text-align: center; margin-bottom: 16px; }
.pix-fee { font-size: 1.4rem; font-weight: 700; display: block; margin-bottom: 4px; }
.pix-prazo { font-size: 0.8rem; color: var(--muted); }
.pix-qr-fallback { font-size: 0.8rem; color: var(--muted); }
.pix-check-btn { width: 100%; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem; cursor: pointer; margin-top: 12px; }
.pix-check-btn:hover { background: var(--line); }


.pix-logo { display: block; margin: 0 auto 12px; max-width: 120px; height: auto; }
.pix-logo:not(img) { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; text-align: center; letter-spacing: 0.1em; }

