:root {
  --pink: #f25694;
  --pink-deep: #e84886;
  --pink-light: #ff7eb3;
  --pink-soft: #ffe4ef;
  --pink-border: rgba(242, 86, 148, 0.42);
  --card: #ffffff;
  --text: #1f1420;
  --muted: #7a5f6b;
  --err: #c62828;
  --pos: #2e7d52;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 130% 90% at 50% -15%, rgba(255, 255, 255, 0.22), transparent 58%),
    linear-gradient(180deg, var(--pink-light) 0%, var(--pink) 52%, var(--pink-deep) 100%);
  background-attachment: fixed;
}

/* Deterrente UX: niente drag / long-press “salva” / menu “Copia immagine” sulle asset. */
.fp-page img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.fp-page {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
}

.fp-page.fp-page--activation {
  width: min(100%, 760px);
}

/* —— Hero —— */
.fp-hero {
  text-align: center;
  margin-bottom: 1.35rem;
  overflow: visible;
  padding-inline: 0;
  width: 100%;
}

.fp-kicker {
  margin: 0.75rem 0 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 600;
}

.fp-hero-brand {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.fp-hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 20px rgba(80, 10, 40, 0.22));
}

.fp-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.55;
  font-size: 0.94rem;
  font-weight: 400;
}

/* —— Card unica —— */
.fp-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 1.5rem 1.25rem 1.65rem;
  box-shadow: 0 16px 44px rgba(130, 25, 70, 0.18);
  flex: 1;
}

.fp-panel[hidden] {
  display: none !important;
}

.fp-panel-title {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.fp-field {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: #000;
  font-weight: 600;
}

.fp-field--with-aside {
  margin-bottom: 0.3rem;
}

.fp-field-aside {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.9rem;
}

.fp-field input {
  display: block;
  width: 100%;
  margin-top: 0.38rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--pink-border);
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.fp-field input::placeholder {
  color: #b8a0aa;
}

.fp-field input:focus {
  outline: 2px solid rgba(242, 86, 148, 0.35);
  outline-offset: 1px;
  border-color: var(--pink);
}

/* —— Bottoni (stile mockup: bianco + bordo rosa) —— */
.fp-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.55rem;
  padding: 0.84rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--pink-border);
  background: #fff;
  color: var(--pink-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.fp-btn:hover {
  background: var(--pink-soft);
  border-color: var(--pink);
}

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

.fp-turnstile {
  display: flex;
  justify-content: center;
  margin: 0.65rem 0 0.15rem;
  min-height: 0;
}

.fp-turnstile[hidden] {
  display: none !important;
}

.fp-btn--compact {
  width: auto;
  margin-top: 0.45rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.fp-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 600;
}

.fp-btn--ghost:hover {
  background: var(--pink-soft);
  border-color: transparent;
  color: var(--pink-deep);
}

.fp-err {
  color: var(--err);
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.fp-ok {
  color: #1a7a45;
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.fp-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  box-sizing: border-box;
}

.fp-alert--warn {
  color: #7a5a00;
  background: #fff8e1;
  border: 1px solid #f0d78c;
}

.fp-alert--pending {
  color: #3d4a5c;
  background: #eef2f7;
  border: 1px solid #c5d0de;
  margin-top: 0.85rem;
}

.fp-alert--ok {
  color: #1a5c38;
  background: #e8f7ee;
  border: 1px solid #b7e0c6;
  margin-top: 0.85rem;
}

.fp-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 1.1rem;
  color: #9a7a88;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fp-divider::before,
.fp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pink-border);
}

.fp-divider span {
  white-space: nowrap;
}

.fp-divider--signup {
  color: #000;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.fp-btn--signup {
  background: #fff;
  border-color: var(--pink);
  color: var(--pink);
  font-weight: 800;
}

.fp-btn--signup:hover {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: var(--pink-deep);
}

.fp-oauth {
  margin-top: 1rem;
}

.fp-oauth[hidden] {
  display: none !important;
}

.fp-oauth__btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.fp-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.fp-oauth-btn[hidden] {
  display: none !important;
}

.fp-oauth-btn:hover {
  background: #f8f9fa;
  border-color: #c4c7c5;
}

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

.fp-oauth-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fp-oauth-btn__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.fp-oauth-btn__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.fp-oauth-btn--apple {
  background: #333333;
  border-color: #333333;
  color: #fff;
}

.fp-oauth-btn--apple:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #fff;
}

.fp-oauth-btn--apple .fp-oauth-btn__icon {
  color: #fff;
}

.fp-register {
  margin-top: 0;
  padding-top: 0;
}

.fp-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-top: 0.38rem;
  border-radius: 12px;
  border: 1px solid var(--pink-border);
  background: #fff;
  overflow: visible;
}

.fp-phone:focus-within {
  outline: 2px solid rgba(242, 86, 148, 0.35);
  outline-offset: 1px;
  border-color: var(--pink);
}

.fp-phone__country {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.72rem 0.65rem 0.72rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--pink-border);
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.fp-phone__country:hover {
  background: var(--pink-soft);
}

.fp-phone__flag {
  font-size: 1.15rem;
  line-height: 1;
}

.fp-phone__dial {
  min-width: 2.2rem;
}

.fp-phone__caret {
  color: #b8a0aa;
  font-size: 0.7rem;
  margin-left: 0.1rem;
}

.fp-phone input {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 12px 12px 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.fp-phone__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  overflow: auto;
  border: 1px solid var(--pink-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 10, 30, 0.12);
}

.fp-phone__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.fp-phone__option:hover,
.fp-phone__option[aria-selected="true"] {
  background: var(--pink-soft);
}

.fp-phone__option-name {
  flex: 1;
  font-weight: 500;
  color: #5a4550;
}

.fp-phone__option-dial {
  font-weight: 700;
  color: #000;
}

.fp-link-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.fp-link-btn:hover {
  color: var(--pink);
}

.fp-link-btn--aside {
  margin-top: 0;
  font-size: 0.82rem;
}

.fp-support-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fp-support-link:hover {
  color: var(--pink-deep);
}

/* —— Dashboard (mockup card body) —— */
.fp-dash {
  --dash-pink: #f64f91;
  --dash-pink-dark: #df347a;
  --dash-pink-soft: #fff0f6;
  --dash-pink-line: #ffc2d9;
  --dash-ink: #241d24;
  --dash-text: #6f5d67;
  --dash-muted: #9b8791;
  padding: 0;
  overflow: hidden;
}

.fp-card:has(.fp-dash:not([hidden])) {
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
}

.fp-dash-top {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.2rem 1.15rem 1rem;
  border-bottom: 1px solid #f3e7ed;
  background:
    radial-gradient(circle at 90% 5%, rgba(246, 79, 145, 0.1), transparent 32%),
    #fff;
}

.fp-dash-kicker,
.fp-dash-panel-kicker {
  display: block;
  color: var(--dash-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-dash-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.fp-dash-greeting {
  flex: 1 1 auto;
  min-width: 0;
}

.fp-dash-logout {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--dash-pink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fp-dash-logout:hover {
  color: var(--dash-pink-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
}

.fp-dash-logout:active {
  transform: none;
}

.fp-dash-hello {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 7vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dash-ink);
}

.fp-dash-code {
  margin: 0.35rem 0 0;
  color: #666666;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
}

.fp-dash-lead {
  margin: 0.55rem 0 0;
  color: var(--dash-text);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 400;
}

.fp-dash-status {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ece4e9;
}

.fp-dash-tier {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.fp-dash-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  margin: 0;
  padding: 0 0.75rem;
  color: var(--dash-pink-dark);
  background: var(--dash-pink-soft);
  border: 1px solid var(--dash-pink-line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.fp-dash-status-divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  min-height: 4.5rem;
  margin: 0 0.85rem;
  background: #e0d6dc;
}

.fp-dash-medal {
  display: block;
  width: 64px;
  height: auto;
  object-fit: contain;
}

.fp-dash-points-copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.fp-dash-points-label {
  display: block;
  color: #7b606d;
  font-size: 0.82rem;
  font-weight: 700;
}

.fp-dash-points-num {
  margin: 0.1rem 0 0;
  color: var(--dash-pink);
  font-size: clamp(2.4rem, 12vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.fp-dash-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.25rem;
}

.fp-dash-panel {
  padding: 1rem 0.95rem;
  background: linear-gradient(145deg, #fff6fa, var(--dash-pink-soft));
  border: 1px solid var(--dash-pink-line);
  border-radius: 16px;
}

.fp-dash-panel--reward {
  background: linear-gradient(145deg, #fff, #fff5f9);
}

.fp-dash-panel h3 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dash-ink);
}

.fp-dash-panel p {
  margin: 0.45rem 0 0;
  color: var(--dash-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.fp-dash-reward-name {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dash-ink);
  line-height: 1.3;
}

.fp-dash-reward-distance {
  margin-top: 0.25rem;
  color: var(--dash-pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.fp-dash-progress {
  margin-top: 0.85rem;
}

.fp-dash-progress-label,
.fp-dash-progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--dash-text);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.fp-dash-progress-foot {
  margin-top: 0.45rem;
  color: var(--dash-muted);
  font-weight: 400;
}

.fp-dash-progress-bar {
  height: 10px;
  margin-top: 0.35rem;
  overflow: hidden;
  background: #f7dce8;
  border-radius: 999px;
}

.fp-dash-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dash-pink), #ff79ad);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.fp-dash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 1rem;
}

.fp-dash-actions .fp-wallet-actions {
  flex: 1 1 100%;
  margin-bottom: 0.15rem;
}

.fp-dash-actions .fp-btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 0;
  margin-top: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.fp-btn--dash-primary {
  flex: 1 1 100%;
  color: #fff;
  background: var(--dash-pink);
  border-color: var(--dash-pink);
}

.fp-btn--dash-primary:hover {
  background: var(--dash-pink-dark);
  border-color: var(--dash-pink-dark);
  color: #fff;
}

.fp-btn--dash-secondary {
  color: var(--dash-pink-dark);
  background: #fff;
  border-color: var(--dash-pink-line);
}

.fp-btn--dash-secondary:hover {
  background: var(--dash-pink-soft);
  border-color: var(--dash-pink);
  color: var(--dash-pink-dark);
}

.fp-dash-history {
  padding: 0 1.25rem 1.25rem;
}

.fp-dash-history .fp-section-title {
  margin-top: 0.35rem;
}

.fp-history-more {
  margin-top: 0.15rem;
  text-align: center;
}

.fp-history-more .fp-link-btn {
  margin-top: 0.35rem;
  font-size: 0.84rem;
}

.fp-dash .fp-terms-consent {
  padding: 0 1.25rem 1.25rem;
  margin-top: 0;
}

@media (max-width: 380px) {
  .fp-dash-top {
    padding: 1.15rem 1rem 1rem;
  }

  .fp-dash-head {
    gap: 0.5rem 0.65rem;
  }

  .fp-dash-logout {
    padding-left: 0.5rem;
  }

  .fp-dash-status {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .fp-dash-status-divider {
    margin: 0 0.65rem;
  }

  .fp-dash-panels {
    padding: 0.75rem 1rem 0.15rem;
  }

  .fp-dash-actions {
    padding: 0.55rem 1rem 0.85rem;
  }

  .fp-dash-actions .fp-btn {
    flex: 1 1 100%;
  }

  .fp-dash-medal {
    width: 56px;
  }
}

.fp-wallet-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
}

.fp-wallet-actions[hidden] {
  display: none !important;
}

.fp-dash-actions .fp-wallet-badge,
.fp-wallet-actions .fp-wallet-badge {
  width: min(100%, 200px);
  margin-top: 0;
}

.fp-wallet-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.fp-wallet-badge[hidden] {
  display: none !important;
}

.fp-wallet-badge:hover {
  opacity: 0.92;
}

.fp-wallet-badge:active {
  transform: scale(0.99);
}

.fp-wallet-badge__img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

.fp-section-title {
  margin: 1.15rem 0 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(242, 86, 148, 0.2);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.fp-card--catalog {
  margin-top: 1rem;
}

.fp-catalog-heading {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.fp-catalog-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.fp-tier-ladder {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.65rem;
  margin-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fp-tier-step {
  flex: 0 0 auto;
  min-width: 78px;
  text-align: center;
  padding: 0.55rem 0.35rem 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(242, 86, 148, 0.15);
  background: #fff;
  opacity: 0.55;
}

.fp-tier-step--unlocked {
  opacity: 1;
  border-color: rgba(242, 86, 148, 0.32);
}

.fp-tier-step--current {
  opacity: 1;
  background: var(--pink-soft);
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(242, 86, 148, 0.12);
}

.fp-tier-step img {
  width: 46px;
  height: auto;
  display: block;
  margin: 0 auto 0.3rem;
}

.fp-tier-step strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pink-deep);
}

.fp-tier-step small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
}

.fp-catalog-list {
  min-height: 0.25rem;
}

.fp-catalog-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0;
}

.fp-catalog-item + .fp-catalog-item {
  border-top: 1px solid rgba(242, 86, 148, 0.1);
}

.fp-catalog-rank {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pink);
  line-height: 1.2;
  padding-top: 0.1rem;
}

.fp-catalog-item strong {
  display: block;
  font-size: 0.94rem;
}

.fp-catalog-item small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.fp-catalog-meta {
  text-align: right;
  white-space: nowrap;
}

.fp-catalog-meta strong {
  display: block;
  font-size: 0.92rem;
}

.fp-catalog-section.fp-section--focus,
#fpCatalogSection.fp-section--focus,
#fpHistorySection.fp-section--focus {
  animation: fpSectionFocus 1.1s ease;
}

#fpCatalogSection {
  scroll-margin-top: 1.25rem;
}

#fpHistorySection {
  scroll-margin-top: 1.25rem;
}

.fp-rewards-section {
  scroll-margin-top: 1.25rem;
}

@keyframes fpSectionFocus {
  0%, 100% { background: transparent; }
  35% { background: var(--pink-soft); }
}

.fp-list {
  min-height: 0.25rem;
}

.fp-entry,
.fp-reward {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.72rem 0;
}

.fp-entry + .fp-entry,
.fp-reward + .fp-reward {
  border-top: 1px solid rgba(242, 86, 148, 0.1);
}

.fp-entry strong,
.fp-reward strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
}

.fp-entry small,
.fp-reward small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.fp-pos {
  color: var(--pos);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.fp-neg {
  color: var(--err);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.fp-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Footer —— */
.fp-footer {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.fp-footer-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fp-footer-link:hover {
  color: #fff;
}

.fp-footer-logo {
  display: block;
  width: clamp(180px, 58vw, 260px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(80, 10, 40, 0.18));
}


.fp-sub--compact {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 14px;
  color: var(--text);
}

.fp-terms-body {
  max-height: min(42vh, 320px);
  overflow: auto;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--pink-border);
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.fp-page--activation .fp-terms-body {
  max-height: min(62vh, 560px);
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .fp-page--activation .fp-terms-body {
    max-height: min(68vh, 640px);
  }
}

.fp-consent {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--pink-border);
  border-radius: 12px;
  background: #fffafc;
}

.fp-consent__legend {
  padding: 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.fp-consent__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.fp-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}

.fp-consent__option:last-child {
  margin-bottom: 0;
}

.fp-consent__option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.fp-register-consents {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--pink-border);
  border-radius: 12px;
  background: #fffafc;
}

.fp-register-consents .fp-consent__option {
  margin-bottom: 10px;
}

.fp-register-consents .fp-consent__option:last-child {
  margin-bottom: 0;
}

.fp-consent__link {
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: underline;
}

.fp-consent__link:hover {
  color: var(--pink);
}

.fp-terms-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 0.86rem;
}

.fp-terms-body th,
.fp-terms-body td {
  border: 1px solid var(--pink-border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.fp-terms-body th {
  background: var(--pink-soft);
  font-weight: 700;
}

.fp-terms-body h2,
.fp-terms-body h3 {
  margin: 14px 0 8px;
  line-height: 1.25;
}

.fp-terms-body h2:first-child {
  margin-top: 0;
}

.fp-terms-body ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
}

.fp-terms-body p {
  margin: 0 0 10px;
}

.fp-terms-body p:last-child {
  margin-bottom: 0;
}

/* --- Impersonificazione operatore (sola lettura) --- */
.fp-imp-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  /* Transparent wrapper — card look comes from __inner */
}

.fp-imp-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--pink-border);
  box-shadow:
    0 2px 12px rgba(232, 72, 134, 0.14),
    0 6px 28px rgba(232, 72, 134, 0.09);
}

.fp-imp-banner__body {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.fp-imp-banner__icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.fp-imp-banner__info {
  min-width: 0;
}

.fp-imp-banner__title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c0003a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.fp-imp-banner__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text);
}

.fp-imp-banner__count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #c0003a;
  font-weight: 700;
}

.fp-imp-banner__logout {
  flex-shrink: 0;
  padding: 0.48rem 1.2rem;
  border-radius: 10px;
  border: 1.5px solid var(--pink-border);
  background: var(--pink-soft);
  color: var(--pink-deep);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(232, 72, 134, 0.12);
}

.fp-imp-banner__logout:hover {
  background: var(--pink-border);
  border-color: var(--pink);
}

.fp-imp-banner__logout:active {
  transform: scale(0.97);
}

.fp-imp-banner--expired .fp-imp-banner__inner {
  background: #f5f5f5;
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fp-imp-banner--expired .fp-imp-banner__title {
  color: #555;
}

@media (max-width: 480px) {
  .fp-imp-banner {
    padding: 8px 12px;
  }

  .fp-imp-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    border-radius: 14px;
  }

  .fp-imp-banner__logout {
    width: 100%;
    padding: 0.55rem 1rem;
    text-align: center;
  }
}

/* In sola lettura nascondi le azioni che modificano lo stato della card. */
body.fp-impersonation #fpWalletActions,
body.fp-impersonation #fpWalletAppleBtn,
body.fp-impersonation #fpWalletGoogleBtn,
body.fp-impersonation #fpActivateBtn,
body.fp-impersonation .fp-redeem-btn {
  display: none !important;
}

/* —— Condizioni & Consensi —— */
.fp-terms-consent {
  margin-top: 1.5rem;
  padding-top: 0;
}

.fp-terms-consent__heading {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: rgba(242, 86, 148, 0.12);
}

.fp-terms-consent__text {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
