/* ===== KWIK — Design System ===== */
:root {
  /* Core brand palette */
  --brand: #1a1a2e;
  --brand-foreground: #fffbe6;
  --brand-red: #e63946;
  --brand-orange: #f59e0b;   /* deeper amber */
  --brand-green: #2ec4b6;

  /* Surfaces */
  --background: #f7f5f0;
  --card: #ffffff;
  --secondary: #f0ede6;
  --accent: #f59e0b;         /* deep amber yellow — matches site */
  --accent-foreground: #1a1a2e;
  --muted: #e8e5de;

  /* Text */
  --foreground: #1a1a2e;
  --muted-foreground: #8a8680;

  /* Misc */
  --border: #e0ddd6;
  --input: #d5d2cc;
  --destructive: #e63946;
  --ring: #f59e0b;
  --radius: 12px;
  --success-surface: #dcfce7;
  --success-ink: #166534;

  /* Fonts */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  font-family: var(--font-display);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
input { background: none; border: none; outline: none; }
ol, ul { list-style: none; }

/* ===== App container (mobile-first, max-width 28rem) ===== */
#app {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100vh;
}

/* ===== Utility classes ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.select-none { user-select: none; -webkit-user-select: none; }
.overflow-hidden { overflow: hidden; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===== KWIK Logo ===== */
.kwik-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  user-select: none;
}

.kwik-logo__word {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--brand);
  transform: skewX(-8deg);
}

.kwik-logo__word--sm { font-size: 1.5rem; }
.kwik-logo__word--md { font-size: 2.25rem; }
.kwik-logo__word--lg { font-size: 3.75rem; }

.kwik-logo__i {
  position: relative;
  display: inline-block;
}

.kwik-logo__tri {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.kwik-logo__tri--sm { width: 0.375rem; height: 0.375rem; }
.kwik-logo__tri--md { width: 0.5rem; height: 0.5rem; }
.kwik-logo__tri--lg { width: 0.75rem; height: 0.75rem; }

.kwik-logo__sub {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  color: var(--brand-red);
}

.kwik-logo__sub--sm { font-size: 0.5rem; }
.kwik-logo__sub--md { font-size: 0.65rem; }
.kwik-logo__sub--lg { font-size: 0.95rem; }

/* ===== Header curved ===== */
.header-curved {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 45%;
  border-bottom-right-radius: 45%;
  background: var(--card);
  padding: 1.5rem 1.5rem 2.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
}

/* ===== Header bar (app pages) ===== */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem 1rem;
}

.balance-badge {
  border-radius: 0.75rem;
  border: 2px solid var(--accent);
  padding: 0.25rem 0.75rem;
  text-align: right;
  background: rgba(245,158,11,0.08);
}

.balance-badge__label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.balance-badge__value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
}

/* ===== Menu icon ===== */
.menu-btn {
  margin-top: 0.25rem;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-btn svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand);
}

/* ===== Typography ===== */
.heading-welcome {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}

.subtitle-welcome {
  margin: 1rem auto 0;
  max-width: 20rem;
  text-align: center;
  font-size: 1rem;
  color: var(--brand);
}

.heading-page {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--brand);
}

.subtitle-page {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* ===== Divider bar ===== */
.divider-bar {
  margin: 1rem auto 0;
  height: 0.25rem;
  width: 3.5rem;
  border-radius: 9999px;
  background: var(--brand-orange);
}

/* ===== Step cards (homepage) ===== */
.step-cards {
  margin-top: 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: left;
  transition: transform 0.15s;
}

.step-card:active { transform: scale(0.99); }

.step-card--active {
  background: #fef3c7;
  border: 2px solid var(--accent);
}

.step-card--disabled {
  background: var(--secondary);
}

.step-circle {
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-circle--active {
  border-color: var(--brand);
  color: var(--brand);
}

.step-circle--disabled {
  border-color: rgba(138,134,128,0.5);
  color: rgba(138,134,128,0.6);
}

.step-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.step-title--active { color: var(--brand); }
.step-title--disabled { color: rgba(138,134,128,0.7); }

.step-desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.375;
}

.step-desc--active { color: var(--brand); }
.step-desc--disabled { color: rgba(138,134,128,0.6); }

.step-chevron {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
}

/* ===== Stepper (cadastro) ===== */
.stepper {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stepper__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.stepper__track {
  display: flex;
  width: 100%;
  align-items: center;
}

.stepper__line {
  height: 1px;
  flex: 1;
}

.stepper__line--border { background: var(--border); }
.stepper__line--transparent { background: transparent; }

.stepper__dot {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.stepper__dot--active {
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 900;
}

.stepper__dot--inactive {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.stepper__label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.stepper__label--active { color: var(--accent); font-weight: 800; }
.stepper__label--inactive { color: var(--muted-foreground); }

/* ===== Form elements ===== */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.form-input-wrap {
  position: relative;
  margin-top: 0.5rem;
}

.form-input-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--card);
  padding: 1rem 3rem 1rem 3rem;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s;
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus {
  border-color: var(--brand-orange);
}

/* Phone input */
.phone-wrap {
  margin-top: 0.5rem;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--card);
}

.phone-prefix {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-right: 1px solid var(--input);
  background: var(--secondary);
  padding: 0 0.75rem;
}

.phone-prefix__flag { font-size: 1.125rem; }
.phone-prefix__code { font-size: 1rem; font-weight: 600; color: var(--foreground); }

.phone-prefix__chevron {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.phone-prefix select {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.phone-input {
  flex: 1;
  background: var(--card);
  padding: 1rem;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  border: none;
}

.phone-input::placeholder {
  color: var(--muted-foreground);
}

/* ===== Security notice ===== */
.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(244, 162, 97, 0.1);
  padding: 1rem;
}

.security-notice svg {
  margin-top: 0.125rem;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  color: var(--brand-orange);
}

.security-notice__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
}

.security-notice__desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Buttons ===== */
.btn-primary {
  width: 100%;
  border-radius: 0.75rem;
  background: var(--accent);
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  transition: transform 0.1s, filter 0.15s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-primary:active { transform: scale(0.99); }

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
  cursor: pointer;
}

.btn-ghost:hover { background: var(--accent); }

.btn-ghost svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-validate {
  margin-top: 1rem;
  width: 100%;
  border-radius: 0.75rem;
  background: var(--accent);
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  transition: transform 0.1s, filter 0.15s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35);
}

.btn-validate:active { transform: scale(0.99); }
.btn-validate:hover { filter: brightness(1.08); }

/* ===== Back button ===== */
.back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
}

.back-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ===== Error message ===== */
.error-msg {
  border-radius: 0.75rem;
  background: rgba(230, 57, 70, 0.1);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--destructive);
}

/* ===== Success modal (cadastro) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,26,46,0.6);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  width: 100%;
  max-width: 24rem;
  border-radius: 1.5rem;
  background: var(--card);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon {
  margin: 0 auto;
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.modal-icon--success {
  background: rgba(46,196,182,0.15);
}

.modal-icon--success svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-green);
}

.modal-icon--party {
  background: rgba(255,251,230,0.2);
}

.modal-icon--party svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-foreground);
}

.modal-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand);
}

.modal-text {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.modal-text-sm {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-text-orange {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.modal-progress-track {
  margin: 1.5rem auto 0;
  height: 0.375rem;
  width: 8rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--secondary);
}

.modal-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--brand-orange);
  animation: shrinkBar 6s linear forwards;
}

@keyframes shrinkBar {
  from { width: 100%; }
  to { width: 0%; }
}

/* ===== Prize modal (app) ===== */
.prize-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, 0.55);
  padding: 1rem;
}

.prize-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 21rem;
  border: 2px solid var(--brand);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  color: var(--foreground);
  box-shadow: 0 6px 0 var(--brand), 0 24px 48px -16px rgba(26, 26, 46, 0.45);
  animation: prizeIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes prizeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.prize-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.prize-brand-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.prize-brand-sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-red);
}

.prize-check {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: var(--success-surface);
  color: var(--success-ink);
  animation: prizePop 0.45s 0.12s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.prize-check svg { width: 1.6rem; height: 1.6rem; }

@keyframes prizePop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.prize-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--success-ink);
}

.prize-heading {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.prize-value {
  margin-top: 0.875rem;
  width: 100%;
  border-radius: 0.625rem;
  background: var(--accent);
  padding: 0.625rem 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--card);
  text-shadow: 0 1px 0 rgba(26, 26, 46, 0.18);
}

.prize-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.prize-balance strong {
  font-weight: 800;
  color: var(--brand);
}

.prize-step {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

.prize-continue {
  margin-top: 1rem;
  width: 100%;
  border-radius: 9999px;
  background: var(--brand);
  padding: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-foreground);
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}

.prize-continue:hover { background: #26264a; }
.prize-continue:active { transform: scale(0.98); }
.prize-continue:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== App page (coupon validation) ===== */
.app-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.app-status svg {
  width: 1.5rem;
  height: 1.5rem;
}

.app-status--green svg { color: var(--brand-green); }
.app-status--orange svg { color: var(--brand-orange); }

.app-status__text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.coupon-image {
  margin: 1.25rem auto 0;
  width: 100%;
  max-width: 20rem;
  display: block;
}

.coupon-code-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.coupon-code-input {
  margin-top: 0.75rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid;
  background: var(--card);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.3em;
  outline: none;
  transition: border-color 0.2s, color 0.2s;
}

.coupon-code-input::placeholder {
  font-size: 0.875rem;
  letter-spacing: normal;
  font-family: var(--font-display);
}

.coupon-code-input--default {
  border-color: var(--input);
  color: var(--foreground);
}

.coupon-code-input--default:focus {
  border-color: var(--brand);
}

.coupon-code-input--valid {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.coupon-code-input--partial {
  border-color: var(--brand-green);
  color: var(--foreground);
}

.coupon-code-input--invalid {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

  /* ===== Code picker (2x2) ===== */
  .code-pick__title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  }

  .code-grid {
  width: 100%;
  max-width: 340px;
  margin: 0.875rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  }
  
 .code-tile {
  min-height: 3.25rem;
  padding: 0.625rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--muted);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  }

  .code-tile:hover:not(:disabled) { border-color: var(--accent); }
  .code-tile:active:not(:disabled) { transform: scale(0.95); }
  .code-tile:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
  .code-tile:disabled { cursor: default; }

  .code-tile__digits {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.05rem, 5vw, 1.4rem);
  letter-spacing: 0.04em;
  }

  .code-tile__gap { display: inline-block; width: 0.45em; }

  .code-tile--wrong {
  border-color: var(--destructive);
  background: #fdecee;
  color: var(--destructive);
  opacity: 0.75;
  animation: tileShake 0.4s ease;
  }

  .code-tile--right {
  border-color: var(--success-ink);
  background: var(--success-surface);
  color: var(--success-ink);
  transform: scale(1.04);
  }

  .code-pick__attempts {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  }

  @keyframes tileShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
  }

  @media (prefers-reduced-motion: reduce) {
  .code-tile, .code-tile--wrong { animation: none; transition: none; }
  }

  .app-feedback {
  margin-top: 1rem;
  border-radius: 0.75rem;
  background: var(--card);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

/* ===== Final balance card ===== */
.final-card {
  margin-top: 1.25rem;
  border-radius: 1rem;
  background: var(--brand);
  padding: 1.5rem;
  text-align: center;
  color: var(--brand-foreground);
}

.final-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.final-card__value {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 900;
}

.final-card__desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.final-card__btn {
  margin-top: 1.25rem;
  height: auto;
  width: 100%;
  border-radius: 0.75rem;
  background: var(--accent);
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  border: none;
  cursor: pointer;
  transition: transform 0.1s;
}

.final-card__btn:active { transform: scale(0.99); }

/* ===== Saque page ===== */
.method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  white-space: normal;
  border-radius: 0.75rem;
  border: 2px solid;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background: none;
}

.method-btn--active {
  border-color: var(--accent);
  background: rgba(245,158,11,0.12);
  color: var(--brand);
}

.method-btn--inactive {
  border-color: var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

.method-btn img {
  height: 2.5rem;
  width: 3.5rem;
  border-radius: 0.375rem;
  object-fit: cover;
}

.method-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ===== Levantamento (loading spinner) ===== */
.loading-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--background);
  padding: 2rem;
  text-align: center;
}

.spinner-wrap {
  position: relative;
  width: 4rem;
  height: 4rem;
}

.spinner-outer {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: 4px solid var(--brand-orange);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.spinner-inner {
  position: absolute;
  inset: 0.5rem;
  border-radius: 9999px;
  border: 4px solid var(--brand);
  border-top-color: transparent;
  animation: spin 1.4s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-title {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}

.loading-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* ===== Page padding ===== */
.page-padded {
  padding: 1.5rem;
  padding-bottom: 2.5rem;
}

.page-main {
  background: var(--background);
  min-height: 100vh;
  padding-bottom: 2.5rem;
}

/* ===== Space ===== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out;
}

/* ===== Coupon image & step dots ===== */
.coupon-img {
  display: block;
  margin: 1rem auto 0;
  width: 100%;
  max-width: 20rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.coupon-fallback {
  margin: 1rem auto 0;
  width: 100%;
  max-width: 20rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand) 0%, #2d2d5e 100%);
  padding: 1.5rem;
  text-align: center;
  color: var(--brand-foreground);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.coupon-fallback__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coupon-fallback__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.coupon-fallback__brand {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.coupon-fallback__code {
  margin: 1rem auto;
  background: rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  font-weight: 700;
}

.coupon-fallback__value {
  font-size: 0.875rem;
  opacity: 0.85;
}

.coupon-fallback__value strong {
  color: var(--accent);
  font-size: 1rem;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.step-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
}

.step-dot--done    { background: var(--brand-green); }
.step-dot--current { background: var(--accent); transform: scale(1.3); }
.step-dot--pending { background: var(--muted); }

.coupon-step-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

/* ===== Saque Sucesso Page ===== */
.sucesso-page {
  min-height: 100vh;
  background: var(--success-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.sucesso-check {
  display: flex;
  width: 9rem;
  height: 9rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--brand);
  box-shadow: 0 12px 32px rgba(26,26,46,0.25);
}

.sucesso-check svg {
  width: 5rem;
  height: 5rem;
  color: var(--brand-foreground);
}

.sucesso-title {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}

.sucesso-text {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--success-ink);
  max-width: 22rem;
}

.sucesso-text strong {
  font-weight: 900;
}

.sucesso-subtext {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--success-ink);
  max-width: 22rem;
}

.sucesso-btn {
  margin-top: 2.5rem;
  display: flex;
  width: 100%;
  max-width: 22rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  background: var(--brand);
  padding: 1rem 1.75rem 1rem 1rem;
  color: var(--brand-foreground);
  border: none;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
  box-shadow: 0 6px 20px rgba(26,26,46,0.22);
}

.sucesso-btn:active { transform: scale(0.99); }
.sucesso-btn:hover  { filter: brightness(1.12); }

.sucesso-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sucesso-btn__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sucesso-btn__play {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--brand-foreground);
  color: var(--brand);
}

.sucesso-btn__play svg {
  width: 1rem;
  height: 1rem;
  fill: var(--brand);
  color: var(--brand);
}

.sucesso-btn__label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
}

/* ===== Dynamic Withdrawal Receipt ===== */
.receipt-page {
  min-height: 100vh;
  padding: 1.25rem 1rem 2rem;
  background: var(--background);
}

.receipt-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 34.8rem);
  min-height: calc(100vh - 3.25rem);
  margin: 0 auto;
  overflow: hidden;
  color: #101820;
  background: #f7f9fb;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 0.5rem 1.5rem rgba(20, 35, 52, 0.12);
}

.receipt-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 1rem;
  background: #f3680f;
}

.receipt-logo {
  display: block;
  width: min(80%, 20rem);
  height: auto;
}

.receipt-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 5rem 1.5rem 3rem;
  flex: 1;
}

.receipt-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.receipt-field-value {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.4rem;
  line-height: 1.3;
}

.receipt-field-value--amount {
  font-weight: 700;
  font-size: 1.6rem;
}

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

.receipt-field-label {
  order: 2;
  color: #f3680f;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.receipt-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0.4rem;
  padding: 1.5rem 4rem;
  border-top: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
}

.receipt-summary-row {
  display: flex;
  justify-content: space-between;
  color: #5d6875;
  font-size: 1.1rem;
}

.receipt-summary-row--total {
  color: #101820;
  font-weight: 700;
}

.receipt-summary-row--total span:first-child {
  color: #5d6875;
}

.receipt-actions {
  display: flex;
  gap: 0.75rem;
  padding: 3.25rem 3.5rem 2.5rem;
}

.receipt-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  font: 400 1.35rem/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.receipt-btn--cancel {
  color: #5d6875;
  background: #eef1f5;
  border: 1px solid #dfe3e8;
}

.receipt-btn--confirm {
  color: #ffffff;
  background: #f3680f;
  border: 1px solid #f3680f;
}

.receipt-btn:hover {
  filter: brightness(0.96);
}

.receipt-btn:focus-visible {
  outline: 3px solid #101820;
  outline-offset: 2px;
}

.receipt-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(16, 24, 32, 0.55);
}

.receipt-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 22rem);
  padding: 1.75rem 1.25rem 1.25rem;
  border-radius: 0.9rem;
  color: #101820;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.receipt-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.receipt-modal-text {
  margin: 0;
  color: #5d6875;
  font-size: 1rem;
  line-height: 1.5;
}

.receipt-actions--modal {
  width: 100%;
  padding: 0.75rem 0 0;
}

.receipt-actions--modal .receipt-btn {
  font-size: 1.1rem;
}

.receipt-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 4px solid #fde2d0;
  border-top-color: #f3680f;
  border-radius: 50%;
  animation: receipt-spin 0.8s linear infinite;
}

@keyframes receipt-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .receipt-fields { padding: 3.5rem 1rem 2rem; }
  .receipt-summary { padding: 1.25rem 1.5rem; }
  .receipt-actions { padding: 2rem 1.25rem 1.75rem; }
  .receipt-btn { font-size: 1.1rem; }
}

/* ===== Facebook Live VSL ===== */
.fb-page {
  --fb-blue: #1877F2;
  --fb-bg: #F0F2F5;
  --fb-text: #050505;
  --fb-muted: #65676B;
  --fb-live: #E41E3F;
  min-height: 100vh;
  background: var(--fb-bg);
  color: var(--fb-text);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  padding-bottom: 84px;
}

.fb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #dadde1;
}

.fb-wordmark {
  color: var(--fb-blue);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.fb-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E7F3FF;
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-user-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31A24C;
  flex-shrink: 0;
}

.fb-circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E4E6EB;
  color: var(--fb-text);
}

.fb-post {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
}

.fb-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 6px;
}

.fb-author__avatar-ring {
  position: relative;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid var(--fb-live);
  flex-shrink: 0;
}

.fb-author__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary, #F26522);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  object-fit: cover;
}

.fb-author__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.fb-author__live-verb {
  font-weight: 400;
  color: var(--fb-muted);
  font-size: 14px;
}

.fb-author__time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--fb-muted);
}

.fb-caption {
  padding: 4px 12px 10px;
  font-size: 14.5px;
  line-height: 1.4;
}

.fb-video {
  position: relative;
  background: #000;
  overflow: hidden;
}

.fb-live-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.fb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--fb-live);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(228, 30, 63, 0.45);
}

.fb-live-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: fbLivePulse 1.2s ease-in-out infinite;
}

@keyframes fbLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.fb-viewers {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Emblemas circulares oficiais de Reação do Facebook (SVG) */
.fb-svg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.fb-svg-badge--like {
  background: linear-gradient(180deg, #378FE9 0%, #1877F2 100%);
}

.fb-svg-badge--love {
  background: linear-gradient(180deg, #FF5A79 0%, #E41E3F 100%);
}

.fb-svg-badge--care,
.fb-svg-badge--wow {
  background: #F7B125;
}

.fb-floating-reactions {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: 72px;
  height: 220px;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.fb-float-badge {
  position: absolute;
  bottom: 0;
  animation: fbFloatUp 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fbFloatUp {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  15% { opacity: 1; transform: translateY(-15px) scale(1.05); }
  75% { opacity: 0.9; transform: translateY(-135px) translateX(-8px) scale(0.95); }
  100% { opacity: 0; transform: translateY(-195px) translateX(6px) scale(0.8); }
}

.fb-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--fb-muted);
}

.fb-stats__reactions { display: flex; align-items: center; gap: 2px; }
.fb-stats__reactions > span:last-child { margin-left: 4px; }

.fb-react {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.fb-react--like { background: var(--fb-blue); }
.fb-react--love { background: var(--fb-live); margin-left: -6px; }

.fb-actions-wrap {
  position: relative;
}

.fb-reaction-tray {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 6px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.12);
  animation: fbCommentIn 0.18s ease-out;
}

.fb-tray-btn {
  padding: 0;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.fb-tray-btn:hover,
.fb-tray-btn:active {
  transform: scale(1.25) translateY(-3px);
}

.fb-tray-btn .fb-svg-badge {
  width: 34px;
  height: 34px;
}

.fb-actions {
  display: flex;
  justify-content: space-around;
  margin: 0 12px;
  padding: 4px 0;
  border-top: 1px solid #ced0d4;
  border-bottom: 1px solid #ced0d4;
}

.fb-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fb-muted);
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.fb-action__icon {
  display: inline-flex;
  align-items: center;
}

.fb-action__icon .fb-svg-badge {
  width: 20px;
  height: 20px;
  box-shadow: none;
}

.fb-action:active { transform: scale(0.96); background: #F0F2F5; }
.fb-action--liked { color: var(--fb-blue); font-weight: 700; }
.fb-action--loved { color: var(--fb-live); font-weight: 700; }
.fb-action--cared { color: #E89900; font-weight: 700; }

.fb-comments { padding: 10px 12px 16px; }

.fb-comments__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fb-comments__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fb-muted);
}

.fb-comments__live-indicator {
  font-size: 11.5px;
  font-weight: 700;
  color: #31A24C;
}

.fb-comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-comment { display: flex; gap: 8px; align-items: flex-start; }

.fb-comment--new { animation: fbCommentIn 0.4s ease-out; }

@keyframes fbCommentIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-comment__avatar-wrap {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  position: relative;
}

.fb-comment__avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.fb-comment__bot-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #31A24C;
  border: 2px solid #fff;
}

.fb-comment__avatar,
.fb-composer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fb-comment__body { min-width: 0; flex: 1; }

.fb-comment__bubble {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: var(--fb-bg);
  border-radius: 18px;
  padding: 8px 12px;
}

.fb-comment--assistant .fb-comment__bubble {
  background: #F0F2F5;
  border-left: 3px solid var(--fb-blue);
}

.fb-comment__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.fb-comment__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #E7F3FF;
  color: var(--fb-blue);
}

.fb-comment__badge--you {
  background: #E6F4EA;
  color: #1E8E3E;
}

.fb-comment__text {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.fb-comment__text strong {
  color: var(--fb-blue);
  font-weight: 600;
}

.fb-whatsapp-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: filter 0.15s, transform 0.1s;
}

.fb-whatsapp-btn:hover { filter: brightness(1.05); }
.fb-whatsapp-btn:active { transform: scale(0.98); }

.fb-comment__likes {
  position: absolute;
  right: -6px;
  bottom: -10px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border-radius: 10px;
  padding: 1px 5px 1px 1px;
  font-size: 12px;
  color: var(--fb-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.fb-comment__likes .fb-react { width: 16px; height: 16px; border: 0; }

.fb-comment__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--fb-muted);
}

.fb-comment__like-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--fb-muted);
  padding: 0;
}

.fb-comment__like-btn--active {
  color: var(--fb-blue);
  font-weight: 700;
}

/* Indicador "Assistente está a escrever..." */
.fb-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  animation: fbCommentIn 0.25s ease-out;
}

.fb-typing__bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0F2F5;
  border-radius: 18px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fb-muted);
}

.fb-typing__dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.fb-typing__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fb-muted);
  animation: fbTypingDot 1.3s infinite ease-in-out;
}

.fb-typing__dots span:nth-child(2) { animation-delay: 0.2s; }
.fb-typing__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fbTypingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.fb-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #dadde1;
}

.fb-composer__pill {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--fb-bg);
  border-radius: 20px;
  padding: 2px 6px 2px 14px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.fb-composer__pill:focus-within {
  border-color: #ccd0d5;
  background: #fff;
}

.fb-composer__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 4px 7px 0;
  font-size: 14px;
  color: var(--fb-text);
}

.fb-composer__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--fb-blue);
  flex-shrink: 0;
  transition: transform 0.1s, background 0.15s;
}

.fb-composer__send:hover { background: rgba(24, 119, 242, 0.08); }
.fb-composer__send:active { transform: scale(0.92); }

.fb-composer__react-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}

.fb-composer__react-svg:active {
  transform: scale(1.22);
}



