:root {
  --green: #009E81;
  --green-dark: #007A66;
  --yellow: #FFC244;
  --ink: #16332e;
  --muted: #5c6b67;
  --line: #d5e0dc;
  --sheet: #fff;
  --bg: #eef3f0;
  --shadow: 0 12px 32px rgba(22, 51, 46, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  background: #1f2e2a;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body > canvas {
  pointer-events: none !important;
}

body {
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
  color: var(--ink);
  font-family: Nunito, sans-serif;
  background: var(--bg);
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.18);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

img { max-width: 100%; display: block; }

input,
select,
textarea {
  font-size: 16px !important;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: inherit;
}

.glovo-logo {
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: block;
  line-height: 0;
  pointer-events: none;
}

.glovo-logo--login {
  width: 152px;
  height: auto;
  margin: 0 auto 12px;
}

.glovo-logo--header {
  width: auto;
  height: 28px;
  margin: 0;
}

/* ——— Login ——— */
#login {
  position: relative;
  z-index: 60;
  min-height: 100vh;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: visible;
}

#login .login__sheet,
#login .float-field,
#login .prosseguir-button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}

#login .form-input {
  position: relative;
  z-index: 0;
  -webkit-user-select: text;
  user-select: text;
}

/* Nav only while in-app pages are open */
body:has(#login[style*="flex"]) .menuemb,
body:has(#login[style*="block"]) .menuemb {
  display: none !important;
}

#inicio[style*="none"] .menuemb,
#saque[style*="none"] .menuemb,
#bonus[style*="none"] .menuemb,
#historico[style*="none"] .menuemb {
  display: none !important;
}

.login__brand {
  padding: 40px 24px 20px;
  text-align: center;
  flex-shrink: 0;
}

.login__kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.login__sheet {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sheet);
  border-radius: 28px 28px 0 0;
  padding: 28px 22px calc(40px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgba(22, 51, 46, 0.06);
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.login__sheet h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.login__sheet > p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--muted);
}

.login__sheet .prosseguir-button {
  margin-top: 18px;
}

#login-form {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.login-boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  padding: 24px;
  text-align: center;
}
.login-boot[hidden] {
  display: none !important;
}
.login-boot p {
  margin: 0;
  font: 800 16px/1.4 Nunito, sans-serif;
  color: var(--ink);
}
.login-boot__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d5e0dc;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: login-boot-spin 0.7s linear infinite;
}
@keyframes login-boot-spin {
  to { transform: rotate(360deg); }
}

.white-box-login { background: transparent; width: 100%; }

/* ——— Top bar ——— */
.menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--yellow);
}

.menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.buttons-container {
  display: flex;
  align-items: center;
}

.valor-box {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.valor-box:active {
  transform: scale(0.97);
}

.valor-box span,
#valor {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.02em;
}

#valor.is-ticking,
#valor-money.is-ticking,
#valor-saque.is-ticking {
  animation: saldoTick 0.75s ease;
}

@keyframes saldoTick {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); color: #ffc244; }
  100% { transform: scale(1); }
}

/* ——— Bottom nav (floating dock) ——— */
.menuemb {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(213, 224, 220, 0.85);
  border-radius: 28px;
  box-shadow:
    0 10px 36px rgba(22, 51, 46, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.menuemb__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 6px 2px 7px;
  text-decoration: none;
  color: #8a9894;
  border-radius: 22px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.menuemb__item:active {
  transform: scale(0.96);
}

.menuemb__icon {
  width: 44px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.menuemb__item .material-symbols-outlined {
  font-size: 23px;
  line-height: 1;
  color: inherit;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.menuemb__item small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: inherit;
  line-height: 1;
  text-align: center;
}

.menuemb__item.is-active {
  color: var(--green-dark);
}

.menuemb__item.is-active .menuemb__icon {
  background: rgba(0, 158, 129, 0.14);
}

.menuemb__item.is-active .material-symbols-outlined {
  color: var(--green);
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

/* ——— Pages ——— */
#inicio {
  min-height: 100vh;
  padding: 60px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

#saque,
#bonus,
#historico {
  min-height: 100vh;
  padding: 76px 16px calc(118px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}

.hist-page {
  max-width: 420px;
  margin: 0 auto;
}

.hist-page__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #009e81;
}

.hist-page__title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #16332e;
  letter-spacing: -0.02em;
}

.hist-page__sub {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #5c6b67;
}

.hist-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(0, 158, 129, 0.12);
  color: #009e81;
  display: grid;
  place-items: center;
  font-size: 32px;
}

.hist-progress__fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 158, 129, 0.08);
  border: 1px solid rgba(0, 158, 129, 0.14);
}

.hist-progress__fee span {
  font-size: 13px;
  font-weight: 700;
  color: #3d524c;
  text-align: left;
}

.hist-progress__fee strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #009e81;
  white-space: nowrap;
}

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hist-card {
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, #e8f7f3 0%, #ffffff 55%, #fff8e8 100%);
  border: 1px solid rgba(0, 158, 129, 0.18);
  box-shadow: 0 4px 14px rgba(22, 51, 46, 0.06);
}

.hist-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hist-card__amount {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #16332e;
  letter-spacing: -0.02em;
}

.hist-card__date {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #5c6b67;
}

.hist-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 194, 68, 0.28);
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hist-card__badge.is-done {
  background: rgba(0, 158, 129, 0.14);
  color: #007a64;
}

.hist-card__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #3d524c;
}

.hist-card__eta {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 158, 129, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #009e81;
}

.outer-box {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ——— Survey ——— */
.survey {
  background: #fff;
}

.survey__hero {
  position: relative;
  background: #dfe8e4;
}

.survey__hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.survey__body {
  padding: 16px 18px 28px;
}

.survey__progress {
  margin: 0 0 14px;
}

.survey__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.survey__progress-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.survey__progress-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.survey__progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e4ebe8;
  overflow: hidden;
}

.survey__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #00c49a);
  transition: width 0.35s ease;
}

.survey__title {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
  color: var(--ink);
}

.survey__title span {
  color: var(--green);
}

.survey__hint {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.white-box {
  background: var(--sheet);
  border-radius: 20px;
  padding: 18px 16px 20px;
}

.pergunta-whats {
  margin: 20px 0 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  color: var(--ink);
  line-height: 1.35;
}

.pergunta-whats strong {
  color: var(--green);
  font-weight: 800;
}

/* Estrelas 1–5 */
.rating-container {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: transparent;
}

.rating-container--stars {
  justify-content: space-between;
  gap: 6px;
  margin: 4px 0 6px;
}

.rating-container.is-invalid .rating-button {
  border-color: #e08a84;
}

.rating-container.is-invalid .rating-button--star {
  animation: star-shake 0.35s ease;
}

.rating-container.is-invalid .rating-button--star .star {
  color: #e08a84;
}

@keyframes star-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.rating-button {
  flex: 1;
  border: 2px solid #b8c7c2;
  background: #f3f7f5;
  color: var(--ink);
  border-radius: 14px;
  height: 52px;
  font: 800 17px Nunito, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.rating-button:active {
  transform: scale(0.96);
}

.rating-button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 158, 129, 0.28);
}

.rating-container:has(.rating-button--choice) {
  gap: 10px;
}

.rating-button--choice {
  height: 54px;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: #fff;
  border: 2px solid #b8c7c2;
}

.rating-button--choice.active {
  box-shadow: none;
}

.rating-button--choice[data-rating="1"].active {
  background: #243330;
  border-color: #243330;
  color: #fff;
}

.rating-button--choice[data-rating="2"].active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.rating-button--star {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  padding: 0;
}

.rating-button--star .star {
  font-size: 42px;
  line-height: 1;
  color: #d5ddd9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .rating-button--star:hover .star,
  .rating-button--star.is-hover .star {
    color: #ffd56a;
    transform: scale(1.08);
  }
}

.rating-button--star.active {
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
}

.rating-button--star.active .star {
  color: #ffc244;
  filter: drop-shadow(0 4px 8px rgba(255, 194, 68, 0.45));
  transform: scale(1.06);
}

.rating-container--stars.is-rated .rating-button--star.active .star {
  color: #ffb400;
}

.survey__stars-hint {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  min-height: 1.2em;
}

.survey__comment-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.survey__comment-label span {
  font-weight: 700;
  color: var(--muted);
}

.survey__comment {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 2px solid #b8c7c2;
  border-radius: 14px;
  background: #f8fbfa;
  color: var(--ink);
  font: 600 14px/1.45 Nunito, sans-serif;
  resize: vertical;
  min-height: 84px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.survey__comment::placeholder {
  color: #8a9a95;
  font-weight: 600;
}

.survey__comment:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 158, 129, 0.15);
  background: #fff;
}

.enviarCodigo,
.prosseguir-button,
.desbloquear-button,
.unlock-popup__cta,
.notice-popup__cta {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font: 800 16px Nunito, sans-serif;
  padding: 16px 16px;
  cursor: pointer;
  display: block;
  margin: 24px 0 0;
  text-transform: none;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 158, 129, 0.25);
  transition: transform 0.12s ease, background 0.15s ease;
}

.enviarCodigo:active,
.prosseguir-button:active,
.desbloquear-button:active,
.unlock-popup__cta:active,
.notice-popup__cta:active {
  transform: scale(0.985);
  background: var(--green-dark);
}

.enviarCodigo:disabled,
.prosseguir-button:disabled {
  opacity: 0.55;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
  animation: spin 0.7s linear infinite;
}

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

/* ——— Fields ——— */
.float-field {
  position: relative;
  width: 100%;
  margin: 8px 0 0;
  padding-top: 14px; /* espaço do label — nunca atravessa a borda (iOS clipa) */
  overflow: visible;
}

.float-field .form-input,
.form-input {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
  font: 700 16px Nunito, sans-serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  text-align: left;
  transition: border-color 0.15s ease;
}

.float-field .form-input:focus {
  border-color: var(--green);
}

.float-field label {
  position: absolute;
  left: 14px;
  top: calc(14px + 27px); /* centro do input (padding-top + half height) */
  transform: translateY(-50%);
  color: #8a9b97;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  background: transparent;
  padding: 0;
  transition: 0.16s ease;
  z-index: 3;
  max-width: calc(100% - 28px);
  white-space: nowrap;
}

.float-field .form-input:focus + label,
.float-field .form-input:not(:placeholder-shown) + label {
  top: 0;
  left: 2px;
  transform: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: transparent;
  padding: 0;
  line-height: 1.2;
}

.float-field.is-invalid .form-input {
  border-color: #e24b4b;
}

/* Login: label sempre legível acima do campo */
#login .float-field {
  margin-top: 4px;
  padding-top: 16px;
}
#login .float-field label {
  top: calc(16px + 27px);
}
#login .float-field .form-input:focus + label,
#login .float-field .form-input:not(:placeholder-shown) + label {
  top: 0;
  transform: none;
}

/* ——— Withdrawal ——— */
.valor-box-saque {
  background: var(--sheet);
  border-radius: 22px;
  padding: 26px 18px 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(22, 51, 46, 0.06);
}

.valor-box-saque p {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

#valor-money {
  display: block;
  font-size: 44px !important;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--green) !important;
  font-family: Nunito, sans-serif !important;
}

.saque-section-title {
  margin: 24px 0 12px !important;
  text-align: left !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}

#saque > p {
  margin: 22px 0 12px !important;
  text-align: left;
  font-size: 15px !important;
  font-weight: 800;
  color: var(--ink) !important;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.method-card {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.method-card:active {
  transform: scale(0.98);
}

.method-card .material-symbols-outlined {
  font-size: 28px;
  color: var(--green);
  font-variation-settings: "FILL" 1;
}

.method-card strong {
  font-size: 13px;
  font-weight: 800;
}

.method-card small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.method-card.active {
  border-color: var(--green);
  background: #f0faf7;
  box-shadow: 0 0 0 1px var(--green);
}

.method-panel {
  display: none;
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px 18px;
  box-shadow: 0 6px 18px rgba(22, 51, 46, 0.05);
}

.method-panel.is-open { display: block; }

.method-hint {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
}

.spin-type {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}

.spin-type-btn {
  flex: 1;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 11px;
  min-height: 44px;
  font: 800 13px Nunito, sans-serif;
  color: var(--muted);
  cursor: pointer;
}

.spin-type-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

#levantamento-extra {
  margin-top: 12px;
}

.saque-trust {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--muted);
}

.saque-reserve {
  margin: 10px 12px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
}

.limit-expect {
  margin: 8px 8px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #5c6b67;
}

.funnel-done-panel {
  margin: 12px 14px 18px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, #e8f7f3 0%, #ffffff 55%, #fff8e8 100%);
  border: 1px solid rgba(0, 158, 129, 0.18);
  text-align: center;
}

.funnel-done-panel[hidden],
.funnel-done-panel__timer[hidden],
.funnel-done-panel__cta[hidden],
.funnel-done-panel__text[hidden] {
  display: none !important;
}

.funnel-done-panel__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #009e81;
}

.funnel-done-panel__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #16332e;
  letter-spacing: -0.02em;
}

.funnel-done-panel__text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #3d524c;
}

.funnel-done-panel__timer {
  margin: 8px 0 14px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e8f7f3 0%, #f3fbf8 100%);
  border: 1px solid rgba(0, 158, 129, 0.16);
}

.funnel-done-panel__timer-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #243530;
  line-height: 1.4;
}

.flip-clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.flip-clock__sep {
  align-self: center;
  margin-top: -18px;
  font-family: Nunito, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #009e81;
  line-height: 1;
}

.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flip-unit__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6b67;
}

.flip-card {
  position: relative;
  width: 64px;
  height: 72px;
  border-radius: 10px;
  background: #009e81;
  box-shadow:
    0 6px 14px rgba(0, 158, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  perspective: 400px;
}

.flip-card__static-top,
.flip-card__static-bottom,
.flip-card__flap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: #009e81;
}

.flip-card__static-top,
.flip-card__flap--top {
  top: 0;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #14b896 0%, #009e81 100%);
}

.flip-card__static-bottom,
.flip-card__flap--bottom {
  bottom: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #008f74 0%, #007a64 100%);
}

.flip-card__static-top span,
.flip-card__static-bottom span,
.flip-card__flap span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Nunito, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  line-height: 1;
}

.flip-card__static-top span,
.flip-card__flap--top span {
  top: 0;
}

.flip-card__static-bottom span,
.flip-card__flap--bottom span {
  bottom: 0;
}

.flip-card__hinge {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: rgba(0, 0, 0, 0.22);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.flip-card__flap {
  z-index: 3;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  visibility: hidden;
}

.flip-card__flap--top {
  transform-origin: bottom center;
  z-index: 4;
}

.flip-card__flap--bottom {
  transform-origin: top center;
  transform: rotateX(90deg);
  z-index: 2;
}

.flip-card.is-flipping .flip-card__flap {
  visibility: visible;
}

.flip-card.is-flipping .flip-card__flap--top {
  animation: flip-top 0.45s ease-in forwards;
}

.flip-card.is-flipping .flip-card__flap--bottom {
  animation: flip-bottom 0.45s ease-out forwards;
}

@keyframes flip-top {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-90deg); }
}

@keyframes flip-bottom {
  0% { transform: rotateX(90deg); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .flip-card.is-flipping .flip-card__flap--top,
  .flip-card.is-flipping .flip-card__flap--bottom {
    animation: none;
  }
}

.funnel-done-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: #ffc244;
  color: #0e1a17;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.funnel-done-panel__cta.is-ready {
  background: #009e81;
  color: #fff;
}

.funnel-done-panel__cta:active {
  transform: scale(0.98);
}

.late-offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 12px;
  text-align: left;
}

.late-offers[hidden],
.late-offer[hidden] {
  display: none !important;
}

.late-offer {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 158, 129, 0.2);
  box-shadow: 0 4px 14px rgba(22, 51, 46, 0.06);
}

.late-offer__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #009e81;
}

.late-offer__title {
  display: block;
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #16332e;
}

.late-offer__text {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #3d524c;
}

.late-offer .funnel-done-panel__cta {
  margin-top: 0;
}

/* ——— Reward popup ——— */
.popup-container,
.popup-containerL {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(90%, 380px);
  max-height: min(88dvh, calc(100vh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px 26px;
  text-align: center;
  z-index: 10000;
  box-shadow: var(--shadow);
  animation: popup-in 0.28s ease;
  pointer-events: auto;
}

.popup-container .euro-coin,
.popup-containerL .euro-coin {
  pointer-events: none;
}

.popup-note--wait {
  margin-top: 6px;
  color: var(--green);
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup-text {
  display: block;
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.popup-container .popup-text + .popup-text {
  font-size: 40px !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 800 !important;
  color: var(--green) !important;
  margin-top: 2px !important;
  letter-spacing: -0.04em;
}

.popup-note {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.euro-coin {
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  perspective: 700px;
}

.euro-coin__spin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: euro-spin 2.2s linear infinite;
}

.euro-coin__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 52px Nunito, sans-serif;
  color: var(--green-dark);
  background: radial-gradient(circle at 32% 28%, #ffe889, #ffc244 52%, #e8a51c);
  box-shadow:
    inset 0 0 0 7px rgba(201, 138, 18, 0.35),
    inset 0 0 0 10px rgba(255, 255, 255, 0.18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.euro-coin__face--back { transform: rotateY(180deg); }

@keyframes euro-spin {
  to { transform: rotateY(360deg); }
}

.limit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 28, 25, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
.limit-overlay.is-open {
  display: block;
  pointer-events: auto;
}

.popup-containerL.is-celebrating {
  animation: popup-in 0.34s ease, limit-pop 0.55s ease 0.05s;
}

@keyframes limit-pop {
  0% { transform: translate(-50%, -50%) scale(0.92); }
  60% { transform: translate(-50%, -50%) scale(1.03); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.limit-kicker {
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

#valor-saque {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
}

.popup-containerL.is-celebrating #valor-saque {
  animation: saldo-glow 1.2s ease infinite alternate;
}

@keyframes saldo-glow {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

#container-progresso {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.popup-containerL.is-celebrating #container-progresso::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 158, 129, 0.28);
  animation: ring-pulse 1.6s ease-out infinite;
  pointer-events: none;
}

@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 158, 129, 0.3); }
  100% { box-shadow: 0 0 0 18px rgba(0, 158, 129, 0); }
}

#barra-progresso-svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

#texto-progresso {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#valor-saque {
  font-size: 28px !important;
  font-weight: 800;
  font-family: Nunito, sans-serif !important;
  color: var(--green) !important;
}

.popup-overlay {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 22, 0.58);
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.popup-overlay.is-open {
  display: block;
  pointer-events: auto;
}

.unlock-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(92%, 400px);
  max-height: min(88dvh, calc(100vh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: popup-in 0.28s ease;
  pointer-events: auto;
}

.unlock-popup.is-open { display: block; }

.unlock-popup.is-leaving {
  pointer-events: none;
  animation: none;
}

.unlock-leave-veil {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 248, 250, 0.92);
  color: #16332e;
  font: 800 16px/1.2 Nunito, sans-serif;
  letter-spacing: -0.02em;
  pointer-events: all;
}
.unlock-leave-veil[hidden] {
  display: none !important;
}

.unlock-popup__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.unlock-popup__icon .material-symbols-outlined {
  font-size: 34px;
  color: var(--ink);
  font-variation-settings: "FILL" 1;
}

.unlock-popup__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.unlock-popup__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.unlock-popup__text {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

.unlock-vsl {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid #d7efe8;
}
.unlock-vsl[hidden] {
  display: none !important;
}
.unlock-vsl__player {
  position: relative;
  width: min(42vw, 200px);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(32vh, 240px);
  background: #0b0b0b;
}
.unlock-vsl__player.is-landscape {
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
  max-height: min(26vh, 180px);
}
.unlock-vsl__player iframe,
.unlock-vsl__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #000;
}
.unlock-vsl__player .vsl-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 700 13px Nunito, sans-serif;
  background: #0b0b0b;
  letter-spacing: 0.02em;
}
.unlock-vsl__player .vsl-loading.is-gone {
  display: none;
}
.unlock-vsl__player .vsl-sound-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 800 11px Nunito, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.unlock-vsl__player .vsl-sound-hint[hidden] {
  display: none !important;
}
.unlock-vsl__player .vsl-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding: 0;
}
.unlock-vsl__player .vsl-play-btn[hidden] {
  display: none !important;
}
.unlock-vsl__player .vsl-play-btn__icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.unlock-vsl__player .vsl-play-btn__label {
  font: 800 9px/1 Nunito, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
}
.unlock-popup.has-vsl .unlock-popup__icon {
  display: none;
}
.unlock-popup.has-vsl {
  padding-top: 16px;
}
.unlock-popup.has-vsl .unlock-popup__text {
  display: none;
}

.unlock-fee {
  background: #f4fbf8;
  border: 1px solid #d7efe8;
  border-radius: 16px;
  padding: 14px 12px 12px;
  margin-bottom: 16px;
}

.unlock-fee__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.unlock-fee__value {
  display: block;
  margin: 2px 0 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
}

.unlock-fee__note {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2f9e6f;
}

.unlock-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
}

.unlock-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #2c3d39;
  padding: 8px 2px;
}

.unlock-list .material-symbols-outlined {
  font-size: 22px;
  color: var(--green);
  font-variation-settings: "FILL" 1;
}

.notice-overlay {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 22, 0.58);
  z-index: 10002;
}

.notice-overlay.is-open {
  display: block;
  pointer-events: auto;
}

.notice-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(92%, 380px);
  max-height: min(88dvh, calc(100vh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translate(-50%, -50%);
  z-index: 10003;
  background: #fff;
  border-radius: 24px;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  box-shadow: var(--shadow);
  animation: popup-in 0.28s ease;
  pointer-events: auto;
}

.notice-popup.is-open { display: block; }

.notice-popup__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff3d1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-popup__icon .material-symbols-outlined {
  color: var(--ink);
  font-variation-settings: "FILL" 1;
}

.notice-popup__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.notice-popup__text {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--muted);
}

/* ——— FAQ ——— */
.faq-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.faq-container {
  width: 100%;
}

.faq-item {
  margin-bottom: 10px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(22, 51, 46, 0.04);
}

.question {
  padding: 16px 44px 16px 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  position: relative;
}

.question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}

.answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

.answer.active { display: block; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.popup-containerL p {
  font-family: Nunito, sans-serif !important;
}

.popup-containerL > p:first-of-type {
  font-size: 28px !important;
  font-weight: 800;
  color: var(--green) !important;
  margin: 8px 0 6px !important;
  letter-spacing: -0.03em;
}

.popup-textL {
  font-size: 15px !important;
  font-weight: 700;
  color: var(--muted) !important;
  line-height: 1.4;
}

.popup-container2 { display: none; }
