/* Conversão fiel do layout original BB + Livelo para HTML estático */
:root {
  --bb-yellow: #f6ef23;
  --bb-blue: #4e57d8;
  --bb-blue-strong: #4250e6;
  --bb-title: #5860d6;
  --bb-page: #f4f4f6;
  --bb-card: #ffffff;
  --bb-card-border: #ececf0;
  --bb-text: #2c2c2c;
  --bb-text-soft: #777777;
  --bb-label: #444444;
  --bb-input-border: #b8b8c2;
  --bb-shadow: 0 6px 18px rgba(34, 34, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bb-page);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bb-page);
  color: var(--bb-text);
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:not(:disabled),
a[href],
select:not(:disabled),
input:not(:disabled) {
  cursor: pointer;
}

.bb-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bb-page);
}

.brand-strip {
  width: 100%;
  background: var(--bb-yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-strip__inner {
  width: min(100%, 460px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
}

.brand-strip__bb {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.brand-strip__divider {
  width: 1px;
  height: 24px;
  background: rgba(44, 44, 44, 0.18);
  flex: none;
}

.brand-strip__livelo-lockup {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.brand-strip__livelo-clube {
  color: #7a3b89;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.brand-strip__livelo {
  width: 68px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.bb-wrapper {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 20px 14px 26px;
  flex: 1;
}

.bb-hero-copy {
  text-align: center;
  padding: 6px 8px 0;
}

.bb-title {
  margin: 0;
  color: var(--bb-title);
  font-size: clamp(2rem, 6vw, 2.35rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bb-subtitle {
  margin: 12px auto 0;
  max-width: 28rem;
  color: #8f8f95;
  font-size: 1rem;
  line-height: 1.45;
}

.bb-card {
  margin-top: 18px;
  border: 1px solid var(--bb-card-border);
  border-radius: 6px;
  background: var(--bb-card);
  box-shadow: var(--bb-shadow);
  padding: 22px 16px 18px;
}

.bb-card--consult {
  margin-top: 18px;
}

.bb-card--result {
  margin-top: 20px;
  animation: bbReveal 260ms ease-out;
}

.bb-card__title {
  margin: 0;
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 700;
  color: #222222;
}

.bb-card__subtitle {
  margin: 10px auto 0;
  text-align: center;
  max-width: 22rem;
  color: var(--bb-text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.bb-form {
  margin-top: 20px;
}

.bb-field-group + .bb-field-group {
  margin-top: 16px;
}

.bb-field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--bb-label);
  font-size: 0.96rem;
  font-weight: 700;
}

.bb-field-group input {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--bb-input-border);
  border-radius: 6px;
  background: #ffffff;
  padding: 0 14px;
  color: #434343;
  font-size: 1rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.bb-field-group input:focus {
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 3px rgba(78, 87, 216, 0.12);
}

.bb-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.bb-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.bb-button:disabled {
  opacity: 0.58;
  transform: none;
  filter: none;
  box-shadow: none;
  cursor: not-allowed;
}

.bb-button--primary {
  margin-top: 18px;
  background: linear-gradient(90deg, var(--bb-blue-strong) 0%, #4c5eff 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(76, 94, 255, 0.18);
}

.bb-form__hint {
  margin: 12px 0 0;
  text-align: center;
  color: #8a8a91;
  font-size: 0.84rem;
  line-height: 1.45;
}

.bb-button--secondary {
  margin-top: 18px;
  background: var(--bb-yellow);
  color: #4f4f4f;
  box-shadow: 0 10px 18px rgba(246, 239, 35, 0.18);
}

.bb-greeting {
  margin: 0;
  text-align: center;
  color: #383838;
  font-size: 1.08rem;
  line-height: 1.48;
}

.bb-greeting strong {
  font-weight: 700;
}

.bb-points-summary {
  margin-top: 20px;
  text-align: center;
}

.bb-points-summary__label {
  display: block;
  color: #2f2f2f;
  font-size: 0.95rem;
  font-weight: 700;
}

.bb-points-summary__value {
  display: block;
  margin-top: 6px;
  color: var(--bb-title);
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
}

.bb-points-summary__money {
  display: block;
  margin-top: 5px;
  color: #7d7d86;
  font-size: 0.98rem;
}

.bb-rescue-block {
  margin-top: 24px;
}

.bb-rescue-block h3 {
  margin: 0;
  text-align: center;
  color: #2b2b2b;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 700;
}

.bb-rescue-block p {
  margin: 10px 0 0;
  text-align: center;
  color: var(--bb-text-soft);
  font-size: 0.98rem;
  line-height: 1.4;
}

.bb-choice-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.bb-choice {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid #dddddf;
  border-radius: 4px;
  background: #ffffff;
  padding: 0 14px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.bb-choice:hover {
  transform: translateY(-1px);
}

.bb-choice--active {
  border-color: #5868ff;
  box-shadow: 0 0 0 3px rgba(88, 104, 255, 0.12);
  background: #f7f8ff;
}

.bb-choice__emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.bb-choice__text {
  color: #353535;
  font-size: 1rem;
  font-weight: 700;
}

.bb-choice__value {
  color: var(--bb-title);
  font-size: 1rem;
  font-weight: 700;
}

.bb-selection-note {
  margin-top: 16px;
  border-radius: 6px;
  background: #f5f5fb;
  padding: 14px 15px;
  text-align: center;
  color: #575760;
  font-size: 0.92rem;
  line-height: 1.45;
}

.bb-selection-note__label {
  display: block;
  color: #6f7080;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bb-selection-note strong {
  display: block;
  color: #2f2f37;
  font-size: 1rem;
  margin-bottom: 2px;
}

.bb-selection-note span:last-child {
  display: block;
}

.bb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 20, 34, 0.42);
  padding: 18px 12px;
}

.bb-modal-backdrop.is-open {
  display: flex;
}

.bb-modal {
  width: min(100%, 480px);
  border-radius: 18px 18px 10px 10px;
  background: #ffffff;
  padding: 24px 20px 18px;
  box-shadow: 0 -8px 28px rgba(20, 20, 46, 0.22);
  animation: bbReveal 220ms ease-out;
}

.bb-modal--loading {
  text-align: center;
  border-radius: 18px;
}

.bb-modal__title {
  margin: 0;
  color: #1d1d25;
  font-size: 1.85rem;
  line-height: 1.08;
  font-weight: 700;
}

.bb-modal__text {
  margin: 12px 0 0;
  color: #666674;
  font-size: 1rem;
  line-height: 1.5;
}

.bb-modal__summary {
  margin-top: 18px;
  border-radius: 10px;
  background: #f4f5fa;
  padding: 14px 16px;
  text-align: center;
  color: #575760;
  font-size: 0.95rem;
  line-height: 1.45;
}

.bb-modal__summary-label {
  display: block;
  color: #797b88;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bb-modal__summary strong {
  display: block;
  color: #20202a;
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.bb-modal__actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-modal__actions--stack {
  gap: 12px;
}

.bb-modal__ghost {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8d8e5;
  border-radius: 8px;
  background: #ffffff;
  color: #4d4f69;
  font-size: 0.98rem;
  font-weight: 700;
}

.bb-button--compact {
  min-height: 50px;
}

.bb-loader {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 4px solid rgba(88, 104, 255, 0.16);
  border-top-color: #5868ff;
  animation: bbSpin 900ms linear infinite;
}

.bb-footer {
  background: var(--bb-yellow);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 14px 14px;
  color: #4f4f4f;
  font-size: 0.74rem;
  line-height: 1.35;
}

.bb-footer p {
  width: min(100%, 460px);
  margin: 0 auto;
  text-align: center;
}

.bb-footer__nav {
  width: min(100%, 460px);
  margin: 8px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.bb-footer__nav a {
  color: #4f4f4f;
}

@keyframes bbReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Estilo para o campo de senha de 6 dígitos */
.bb-senha-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 6px;
  font-weight: 600;
  padding: 0 8px;
}

.bb-senha-erro {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 6px;
  text-align: center;
  min-height: 20px;
}

/* Ajuste para telas pequenas */
@media (max-width: 480px) {
  .bb-senha-input {
    font-size: 1.3rem;
    letter-spacing: 4px;
  }
}



@media (min-width: 640px) {
  .bb-modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .bb-modal {
    border-radius: 18px;
    padding: 26px 24px 22px;
  }

  .bb-wrapper {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bb-card {
    padding: 26px 24px 22px;
  }
}

.bb-card--thank-you {
  padding-bottom: 22px;
}

.bb-status-banner {
  margin-top: 18px;
  border-radius: 10px;
  background: #f7f8ff;
  padding: 16px;
  text-align: center;
  color: #5d5f73;
  font-size: 0.98rem;
  line-height: 1.5;
}

.bb-status-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #2d2f42;
  font-size: 1.05rem;
}

.bb-info-grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.bb-info-item {
  border: 1px solid var(--bb-card-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 15px;
}

.bb-info-item__label {
  display: block;
  margin-bottom: 6px;
  color: #747686;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bb-info-item__value {
  display: block;
  color: #2f2f37;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}

.bb-thanks-note {
  margin: 18px 0 0;
  text-align: center;
  color: #737584;
  font-size: 0.95rem;
  line-height: 1.55;
}

.bb-link-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
