/* Décors UI — carte Popotte, ticket holographique, tarifs néo-brutaux */

/* —— Carte membre retournable —— */
.lp-flip-card {
  --lp-card-w: 260px;
  --lp-card-h: 164px;
  display: block;
  width: var(--lp-card-w);
  height: var(--lp-card-h);
  background: transparent;
  border: 0;
  padding: 0;
  perspective: 1000px;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.lp-flip-card--compact {
  --lp-card-w: 240px;
  --lp-card-h: 152px;
}
.lp-flip-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary2, #a78bfa) 70%, #fff);
  outline-offset: 4px;
  border-radius: 1rem;
}
.lp-flip-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.lp-flip-card.is-flipped .lp-flip-card__inner,
.lp-flip-card:focus-visible .lp-flip-card__inner {
  transform: rotateY(180deg);
}
@media (hover: hover) and (pointer: fine) {
  .lp-flip-card:hover .lp-flip-card__inner { transform: rotateY(180deg); }
}
.lp-flip-card__face {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    rgba(0,0,0,.4) 0 2px 2px,
    rgba(0,0,0,.3) 0 7px 13px -3px,
    rgba(0,0,0,.2) 0 -1px 0 inset;
}
.lp-flip-card__front {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(196,94,255,.35), transparent 55%),
    linear-gradient(145deg, #1c1730, #171717 55%, #2a1848);
}
.lp-flip-card__back {
  background: #171717;
  transform: rotateY(180deg);
}
.lp-flip-card__brand {
  position: absolute;
  top: 1.05rem;
  right: 1.1rem;
  letter-spacing: .22em;
  font-size: .62rem;
  font-weight: 800;
  opacity: .85;
}
.lp-flip-card__chip {
  position: absolute;
  top: 1.15rem;
  left: 1.1rem;
  width: 34px;
  height: 26px;
}
.lp-flip-card__wave {
  position: absolute;
  top: 1.2rem;
  right: 4.4rem;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,.7);
}
.lp-flip-card__number {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 4.55rem;
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
}
.lp-flip-card__valid {
  position: absolute;
  left: 1.1rem;
  bottom: 2.35rem;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.lp-flip-card__name {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: .85rem;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-flip-card__strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.35rem;
  height: 1.55rem;
  background: repeating-linear-gradient(45deg, #303030, #303030 10px, #202020 10px, #202020 20px);
}
.lp-flip-card__mstrip,
.lp-flip-card__sstrip {
  position: absolute;
  top: 3.35rem;
  height: .85rem;
  border-radius: 2.5px;
  background: #fff;
  color: #111;
  font-size: .55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  padding: 0 .45rem;
}
.lp-flip-card__mstrip { left: .7rem; width: 8.2rem; }
.lp-flip-card__sstrip { left: 9.2rem; width: 4.2rem; justify-content: center; }
.lp-flip-card__code { color: #111; margin: 0 auto; }
.lp-flip-card__back-meta {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .82;
}

/* —— Ticket holographique —— */
.lp-ticket {
  --width: 180px;
  --height: 320px;
  --perforation-size: 12px;
  --cutouts-adjust: 70px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  grid-template-areas: "header" "body" "footer";
  width: var(--width);
  height: var(--height);
  padding: var(--perforation-size) 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  user-select: none;
  overflow: hidden;
  color: #14110f;
  filter:
    drop-shadow(0 2px 1px #00000025)
    drop-shadow(0 4px 3px #00000025)
    drop-shadow(0 10px 9px #00000025)
    drop-shadow(0 20px 20px #00000025);
  animation: lpTicketHover 3s ease infinite;
  will-change: transform, filter;
}
.lp-ticket--wide {
  --width: 210px;
  --height: 340px;
}
.lp-ticket--bday .lp-ticket__holographic {
  background-image:
    linear-gradient(to bottom, #fe8a, 88%, #0002),
    conic-gradient(at 58% 48%, #ffd6e8, #ff6bfe, #ffc107, #fff7ed, #ff6bfe, #22d3ee, #ffd6e8);
}
@keyframes lpTicketHover {
  50% {
    filter:
      drop-shadow(0 4px 3px #00000015)
      drop-shadow(0 6px 6px #00000015)
      drop-shadow(0 16px 14px #00000015)
      drop-shadow(0 30px 28px #00000015);
    transform: translateY(-7px) scale(1.02);
  }
}
.lp-ticket__filter { position: absolute; width: 0; height: 0; }
.lp-ticket__bg {
  position: absolute;
  inset: 0;
  background-color: #fff;
  filter: url(#lp-ticket-bump);
  mask:
    radial-gradient(circle at 50% 0, #fff0 calc(var(--perforation-size) - 5px), #000 calc(var(--perforation-size) - 4px)),
    radial-gradient(circle at 50% 100%, #fff0 calc(var(--perforation-size) - 5px), #000 calc(var(--perforation-size) - 4px)),
    radial-gradient(circle 8px at left center, #000 98%, #0000 100%),
    radial-gradient(circle 8px at right center, #000 98%, #0000 100%),
    repeating-linear-gradient(90deg, #000 10px, #000 15px, #0000 16px, #0000 24px);
  mask-repeat: repeat-x, repeat-x, no-repeat, no-repeat, repeat-x;
  mask-size:
    calc(var(--perforation-size) * 2) 100%,
    calc(var(--perforation-size) * 2) 100%,
    16px 16px,
    16px 16px,
    10px 2px;
  mask-position:
    calc(.5 * var(--perforation-size)) top,
    calc(.5 * var(--perforation-size)) bottom,
    left var(--cutouts-adjust),
    right var(--cutouts-adjust),
    0 calc(var(--cutouts-adjust) + 7px);
  -webkit-mask-composite: source-in, xor, source-over, source-over;
  mask-composite: intersect, exclude, add, add;
}
.lp-ticket__holographic {
  background-image:
    linear-gradient(to bottom, #fe58, 90%, #0002),
    conic-gradient(at 60% 50%, #ccc, #ff6bfe, #00f9f8, #ddd, #0081fd, #eef0bc, #0081fd, #ff6bfe, #0002, #0081fd, #ddd, #01fefb, #ccc);
}
.lp-ticket__holographic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, #f0f, #0000),
    repeating-radial-gradient(circle at 30% 80%, #fff, #f4a 48px, #eee 150px);
  mix-blend-mode: color-burn;
}
.lp-ticket__holographic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #f205, #f00, #0f0, #f205);
  mix-blend-mode: difference;
  animation: lpTicketBg 3s ease-in-out infinite alternate;
  background-size: 100% 300%;
}
@keyframes lpTicketBg { to { background-position: 0 500px; } }
.lp-ticket__header {
  position: relative;
  grid-area: header;
  margin: 0 8px;
  text-align: center;
  z-index: 1;
  font-family: Impact, "Archivo Black", "Space Grotesk", sans-serif;
  font-size: 1.85rem;
  letter-spacing: 2px;
  color: #ffffff9f;
  -webkit-text-stroke: #fff .5px;
  mix-blend-mode: difference;
}
.lp-ticket__symbol {
  position: absolute;
  top: 1.3em;
  right: 0;
  rotate: 185deg;
  font-size: 1.1em;
  color: #fff;
  line-height: .5;
  opacity: .2;
}
.lp-ticket__body {
  grid-area: body;
  margin: 0 1em;
  padding: .5em;
  font-weight: 500;
  z-index: 1;
  font-size: .78rem;
  line-height: 1.45;
}
.lp-ticket__footer {
  grid-area: footer;
  z-index: 1;
  margin: 0 1em 1em;
}
.lp-ticket__number {
  margin-bottom: .55rem;
  text-align: center;
  color: #000;
  font-weight: 500;
}
.lp-ticket__bold { font-weight: 800; }
.lp-ticket__footer-text {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  margin-bottom: .45rem;
}
.lp-ticket__barcode {
  justify-self: center;
  width: 0;
  height: 32px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px #000, 5px 0 0 1px #000, 7px 0 0 1px #000, 11px 0 0 1px #000,
    15px 0 0 1px #000, 16px 0 0 1px #000, 22px 0 0 1px #000, 27px 0 0 1px #000,
    30px 0 0 1px #000, 35px 0 0 1px #000, 36px 0 0 1px #000, 39px 0 0 1px #000,
    43px 0 0 1px #000, 47px 0 0 1px #000, 50px 0 0 1px #000, 55px 0 0 1px #000,
    59px 0 0 1px #000, 60px 0 0 1px #000, 64px 0 0 1px #000, 69px 0 0 1px #000,
    70px 0 0 1px #000, 74px 0 0 1px #000;
  transform: translateX(37px);
}
.lp-ticket__notes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-size: 4.2rem;
  color: #e7e7e7;
  mix-blend-mode: color-burn;
  transform: translateY(20%);
  z-index: 1;
  pointer-events: none;
}
.lp-ticket__notes:nth-child(2) { transform: translateY(40%); }
.lp-ticket__notes:nth-child(3) { transform: translateY(60%); }

/* —— Tarifs néo-brutaux (kiosk) —— */
.k-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.k-price-card {
  width: 100%;
  background: #00ffa0;
  padding: 1rem;
  border-radius: 1rem;
  border: .5vmin solid #05060f;
  box-shadow: .4rem .4rem #05060f;
  overflow: hidden;
  color: #05060f;
}
.k-price-card:nth-child(3n+2) { background: #ffb84d; }
.k-price-card:nth-child(3n) { background: #c4b5fd; }
.k-price-card.is-active {
  background: #3ee6a1;
  box-shadow: .45rem .45rem #16a34a;
}
.k-price-card__content {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: .5rem;
}
.k-price-card__plan {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.k-price-card__price {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 800;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.k-price-card__period { font-size: .85rem; font-weight: 700; opacity: .8; }
.k-price-card__note { font-size: .78rem; font-weight: 650; opacity: .82; line-height: 1.35; }
.k-price-card__list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: .35rem 0 0;
  padding: 0;
  list-style: none;
}
.k-price-card__item {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
}
.k-price-card__check {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: .1rem;
  color: #664eff;
}
.k-price-card__action {
  margin-top: auto;
  border: .35vmin solid #05060f;
  background: #fff;
  color: #05060f;
  border-radius: .7rem;
  padding: .55rem .75rem;
  font-weight: 800;
  font-size: .78rem;
  cursor: pointer;
  box-shadow: .18rem .18rem #05060f;
}
.k-price-card__action:hover { transform: translate(-1px, -1px); box-shadow: .28rem .28rem #05060f; }
.k-price-card__action:disabled { opacity: .7; cursor: default; transform: none; }

.lp-profile-card-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* —— Stats : carte analytics, chip, notifications, métriques —— */
.lp-stats-top {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(15.5rem, .72fr);
  align-items: stretch;
}
@media (max-width: 900px) {
  .lp-stats-top { grid-template-columns: 1fr; }
}
.lp-metric-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.lp-analytics {
  --lp-an-bg: #020617;
  --lp-an-panel: rgba(15, 23, 42, .55);
  --lp-an-ink: #fff;
  --lp-an-mute: #94a3b8;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: .9rem;
  padding: 1rem;
  background: var(--lp-an-bg);
  color: var(--lp-an-ink);
  box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--primary, #6366f1) 55%, transparent);
  transition: transform .3s ease, box-shadow .3s ease;
}
.lp-analytics:hover {
  transform: scale(1.01);
  box-shadow: 0 28px 52px -24px color-mix(in srgb, var(--primary, #6366f1) 45%, transparent);
}
.lp-analytics__glow {
  position: absolute;
  inset: 0;
  border-radius: .9rem;
  background: linear-gradient(90deg, var(--primary, #6366f1), var(--pink, #c45eff), #ec4899);
  opacity: .22;
  filter: blur(6px);
  pointer-events: none;
  transition: opacity .3s ease;
}
.lp-analytics:hover .lp-analytics__glow { opacity: .34; }
.lp-analytics__plate {
  position: absolute;
  inset: 1px;
  border-radius: calc(.9rem - 1px);
  background: var(--lp-an-bg);
  pointer-events: none;
}
.lp-analytics__body { position: relative; z-index: 1; }
.lp-analytics__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.lp-analytics__brand { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.lp-analytics__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: linear-gradient(145deg, var(--primary, #6366f1), var(--pink, #a855f7));
  color: #fff;
  flex: none;
}
.lp-analytics__icon svg { width: 1rem; height: 1rem; }
.lp-analytics__title {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.lp-analytics__live {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--pos, #34d399);
  background: color-mix(in srgb, var(--pos, #34d399) 12%, transparent);
  flex: none;
}
.lp-analytics__live-dot {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--pos, #34d399);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos, #34d399) 22%, transparent);
  animation: lpLivePulse 1.8s ease-in-out infinite;
}
.lp-analytics__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}
.lp-analytics__kpi {
  border-radius: .65rem;
  background: var(--lp-an-panel);
  padding: .7rem .8rem;
}
.lp-analytics__kpi-label {
  margin: 0;
  font-size: .68rem;
  font-weight: 650;
  color: var(--lp-an-mute);
}
.lp-analytics__kpi-value {
  margin: .15rem 0 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 750;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.lp-analytics__kpi-delta {
  display: inline-block;
  margin-top: .15rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--pos, #34d399);
}
.lp-analytics__kpi-delta.is-down { color: var(--neg, #fb7185); }
.lp-analytics__chart {
  height: 6rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: .65rem;
  background: var(--lp-an-panel);
  padding: .7rem;
}
.lp-analytics__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .28rem;
  width: 100%;
  height: 100%;
}
.lp-analytics__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: .7rem;
  min-height: 18%;
  border-radius: .2rem;
  background: color-mix(in srgb, var(--primary, #6366f1) 28%, transparent);
}
.lp-analytics__col-fill {
  width: 100%;
  min-height: 12%;
  border-radius: .2rem;
  background: var(--primary, #6366f1);
  transition: height .35s ease;
}
.lp-analytics__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.lp-analytics__period {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 650;
  color: var(--lp-an-mute);
}
.lp-analytics__period svg { width: 1rem; height: 1rem; }
.lp-analytics__cta {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  border: 0;
  border-radius: .55rem;
  padding: .28rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--primary, #6366f1), var(--pink, #a855f7));
  cursor: pointer;
  text-decoration: none;
  transition: filter .25s ease;
}
.lp-analytics__cta:hover { filter: brightness(1.08); }
.lp-analytics__cta svg { width: .75rem; height: .75rem; }

.lp-kpi-chip {
  position: relative;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}
.lp-kpi-chip__glow {
  position: absolute;
  inset: -.35rem;
  border-radius: .9rem;
  background: linear-gradient(90deg, #14b8a6, var(--pos, #34d399), #22c55e);
  opacity: .22;
  filter: blur(18px);
  pointer-events: none;
  transition: opacity .45s ease, filter .45s ease;
}
.lp-kpi-chip:hover .lp-kpi-chip__glow { opacity: .48; filter: blur(22px); }
.lp-kpi-chip__body {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  width: 100%;
  border-radius: .9rem;
  border: 1px solid color-mix(in srgb, var(--border, #1e293b) 85%, #0f172a);
  background: color-mix(in srgb, #020617 88%, var(--surface, #020617));
  padding: .28rem .9rem .28rem .28rem;
}
.lp-kpi-chip__panel {
  display: flex;
  align-items: center;
  gap: .7rem;
  border-radius: .65rem;
  background: rgba(15, 23, 42, .55);
  padding: .55rem .7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.lp-kpi-chip__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
}
.lp-kpi-chip__mark-glow {
  position: absolute;
  inset: -.2rem;
  border-radius: .55rem;
  background: color-mix(in srgb, #14b8a6 22%, transparent);
  filter: blur(4px);
  pointer-events: none;
}
.lp-kpi-chip__mark svg {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  color: #14b8a6;
}
.lp-kpi-chip__value {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.lp-kpi-chip__value svg {
  width: 1rem;
  height: 1rem;
  color: var(--pos, #34d399);
  transition: transform .3s ease;
}
.lp-kpi-chip:hover .lp-kpi-chip__value svg { transform: translateY(-2px); }
.lp-kpi-chip__label {
  display: block;
  margin-top: .15rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #94a3b8;
}
.lp-kpi-chip__side {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: none;
}
.lp-kpi-chip__meters { display: flex; gap: .55rem; }
.lp-kpi-chip__meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.lp-kpi-chip__track {
  width: .38rem;
  height: 2rem;
  border-radius: 999px;
  background: #1e293b;
  padding: 2px;
  display: flex;
  align-items: flex-end;
}
.lp-kpi-chip__fill {
  width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pos, #34d399) 55%, transparent);
  min-height: 18%;
  transition: height .3s ease;
}
.lp-kpi-chip__meter span {
  font-size: .55rem;
  font-weight: 750;
  letter-spacing: .04em;
  color: #94a3b8;
}
.lp-kpi-chip__online {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #cbd5e1;
}
.lp-kpi-chip__online-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--pos, #34d399);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pos, #34d399) 70%, transparent);
}
.lp-kpi-chip__hair {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.lp-kpi-chip__hair--top {
  top: -1px;
  background: linear-gradient(90deg, transparent, var(--pos, #34d399), transparent);
}
.lp-kpi-chip__hair--bot {
  bottom: -1px;
  background: linear-gradient(90deg, transparent, #14b8a6, transparent);
}
.lp-kpi-chip:hover .lp-kpi-chip__hair { opacity: 1; }

.lp-notify {
  position: relative;
  display: inline-flex;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.lp-notify__badge {
  position: absolute;
  top: -.4rem;
  right: -.4rem;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-notify__ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #f87171;
  opacity: .75;
  animation: lpNotifyPing 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.lp-notify__count {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
}
.lp-notify__frame {
  position: relative;
  overflow: hidden;
  border-radius: .85rem;
  padding: 1px;
  background: linear-gradient(225deg, #111827, #030712, #000);
  box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--pos, #34d399) 45%, transparent);
}
.lp-notify__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  border-radius: calc(.85rem - 1px);
  background: #030712;
  padding: .7rem 1.15rem;
  transition: background .3s ease;
}
.lp-notify:hover .lp-notify__inner { background: rgba(3, 7, 18, .72); }
.lp-notify__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  background: linear-gradient(145deg, #34d399, #059669);
  color: #fff;
  flex: none;
  transition: transform .3s ease;
}
.lp-notify:hover .lp-notify__icon { transform: scale(1.08); }
.lp-notify__icon svg { position: relative; z-index: 1; width: 1.2rem; height: 1.2rem; }
.lp-notify__icon-blur {
  position: absolute;
  inset: 0;
  border-radius: .65rem;
  background: color-mix(in srgb, #10b981 50%, transparent);
  filter: blur(4px);
  pointer-events: none;
}
.lp-notify__copy { display: flex; flex-direction: column; min-width: 0; }
.lp-notify__title {
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
}
.lp-notify__sub {
  font-size: .62rem;
  font-weight: 650;
  color: color-mix(in srgb, #34d399 80%, transparent);
}
.lp-notify__dots {
  display: flex;
  align-items: center;
  gap: .28rem;
  margin-left: auto;
}
.lp-notify__dot {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: #10b981;
  transition: transform .3s ease;
}
.lp-notify__dot:nth-child(2) { opacity: .55; }
.lp-notify__dot:nth-child(3) { opacity: .32; }
.lp-notify:hover .lp-notify__dot { transform: scale(1.45); }
.lp-notify:hover .lp-notify__dot:nth-child(2) { transition-delay: .08s; }
.lp-notify:hover .lp-notify__dot:nth-child(3) { transition-delay: .16s; }
.lp-notify__wash {
  position: absolute;
  inset: 0;
  border-radius: .85rem;
  background: linear-gradient(145deg, #34d399, #10b981, #059669);
  opacity: .2;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lp-notify:hover .lp-notify__wash { opacity: .38; }

.lp-metric,
.org .mc-stat,
.org .org-stats-hl,
.org .org-qr-kpi {
  position: relative;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, var(--surface, #fff), color-mix(in srgb, var(--surface2, #f9f9f9) 80%, var(--surface, #fff)));
  box-shadow: 0 8px 20px color-mix(in srgb, #000 8%, transparent);
  border-radius: 1.4rem;
  border: 1px solid var(--border, transparent);
  transform: translateY(8px);
  opacity: 0;
  animation: lpCardFadeUp .7s cubic-bezier(.25, 1, .5, 1) forwards;
  transition: transform .4s ease, box-shadow .4s ease, border-color .2s ease;
}
.lp-metric:hover,
.org .mc-stat:hover,
.org .org-stats-hl:hover,
.org .org-qr-kpi:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px color-mix(in srgb, #000 12%, transparent);
}
.lp-metric__title,
.mc-stat-label,
.org-stats-hl__label,
.org-qr-kpi__label {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.lp-metric__icon,
.mc-stat-label::before,
.org-stats-hl__label::before,
.org-qr-kpi__label::before {
  content: '';
  position: relative;
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 3px 8px color-mix(in srgb, #10b981 35%, transparent);
  animation: lpMetricPulse 2.4s ease-in-out infinite;
  flex: none;
}
.lp-metric__icon {
  content: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.lp-metric__icon svg { width: .9rem; height: .9rem; }
.lp-metric__name,
.mc-stat-label,
.org-qr-kpi__label {
  margin: 0;
  color: var(--text, #1c1c1e);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.mc-stat-label,
.org-qr-kpi__label,
.org-stats-hl__label {
  text-transform: none;
  letter-spacing: -.02em;
  font-size: .82rem;
}
.lp-metric__delta {
  margin-left: .15rem;
  color: #0a7c36;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  font-size: .82rem;
}
.lp-metric__delta.is-down { color: var(--neg, #e11d48); }
.lp-metric__value,
.mc-stat-value,
.org-qr-kpi__val {
  margin: .85rem 0 .55rem;
  color: var(--text, #111827);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
  animation: lpFadeIn .7s ease forwards .2s;
}
.lp-metric__hint,
.mc-stat-sub,
.org-qr-kpi__sub {
  margin: 0;
  font-size: .72rem;
  color: var(--muted, #6b7280);
  line-height: 1.4;
}
.lp-metric__range {
  position: relative;
  background: color-mix(in srgb, var(--text, #111) 8%, transparent);
  width: 100%;
  height: .5rem;
  border-radius: 999px;
  overflow: hidden;
}
.lp-metric__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--lp-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #10b981);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  animation: lpPulseFill 4s ease-in-out infinite 1.2s;
}
.org-stats-bar__fill {
  background: linear-gradient(90deg, #34d399, #10b981);
  animation: lpPulseFill 4s ease-in-out infinite 1.2s;
}

.mm-icon-btn__badge,
.mbank-bell__badge,
.mc-nav-badge {
  position: relative;
}
.mm-icon-btn__badge::before,
.mbank-bell__badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: #f87171;
  opacity: .65;
  z-index: -1;
  animation: lpNotifyPing 1.5s cubic-bezier(0, 0, .2, 1) infinite;
}

.k-fun-stat-card,
.k-fun-highlight {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.k-fun-highlight {
  animation: lpCardFadeUp .7s cubic-bezier(.25, 1, .5, 1) both;
}

@keyframes lpCardFadeUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes lpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lpPulseFill {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
@keyframes lpMetricPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 8px color-mix(in srgb, #10b981 35%, transparent); }
  50% { transform: scale(1.08); box-shadow: 0 6px 14px color-mix(in srgb, #10b981 45%, transparent); }
}
@keyframes lpLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes lpNotifyPing {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.mbank-top .lp-notify { max-width: min(100%, 19rem); flex: 0 1 auto; }
.lp-analytics, .lp-kpi-chip { min-width: 0; }
[data-theme="aurore"] .lp-analytics,
.kiosk[data-theme="aurore"] .lp-analytics {
  --lp-an-bg: #0b1020;
}
@media (max-width: 420px) {
  .lp-analytics { padding: .85rem; }
  .lp-analytics__head {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: .8rem;
  }
  .lp-analytics__live { margin-left: auto; }
  .lp-analytics__kpis { grid-template-columns: 1fr; gap: .55rem; }
  .lp-analytics__chart {
    height: 5.35rem;
    margin-bottom: .8rem;
    padding: .55rem;
  }
  .lp-analytics__foot {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
  }
  .lp-analytics__cta { justify-content: center; }
  .lp-kpi-chip__body {
    flex-wrap: wrap;
    padding: .5rem .7rem .7rem;
    gap: .6rem;
  }
  .lp-kpi-chip__panel {
    width: 100%;
    padding: .6rem .7rem;
  }
  .lp-kpi-chip__value { font-size: 1rem; }
  .lp-kpi-chip__side {
    width: 100%;
    justify-content: space-between;
    gap: .65rem;
  }
  .lp-kpi-chip__meters { order: 2; }
  .lp-kpi-chip__online { order: 1; }
  .lp-analytics { padding: .85rem; }
}
[data-theme="aurore"] .lp-kpi-chip__body {
  border-color: rgba(15, 23, 42, .12);
}

@media (prefers-reduced-motion: reduce) {
  .lp-flip-card__inner,
  .lp-ticket,
  .lp-ticket__holographic::after,
  .lp-analytics,
  .lp-metric,
  .mc-stat,
  .org-stats-hl,
  .org-qr-kpi,
  .lp-analytics__live-dot,
  .lp-metric__icon,
  .mc-stat-label::before,
  .org-stats-hl__label::before,
  .org-qr-kpi__label::before,
  .lp-metric__fill,
  .org-stats-bar__fill,
  .lp-notify__ping,
  .mm-icon-btn__badge::before,
  .mbank-bell__badge::before { animation: none !important; transition: none; }
  .lp-metric, .org .mc-stat, .org .org-stats-hl, .org .org-qr-kpi { opacity: 1; transform: none; }
}

/* —— Scènes auth (connexion / inscription / adhésion) —— */
.pl-auth {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: auto;
  color: #f7f4ef;
  background: linear-gradient(135deg, #e85d4c 0%, #7b3a8a 48%, #0b3d4a 100%);
}
.pl-auth,
.pl-auth * {
  box-sizing: border-box;
}
.pl-auth--page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.pl-auth--login {
  background:
    radial-gradient(78% 58% at 8% 6%, rgba(255, 196, 176, .38), transparent 58%),
    radial-gradient(62% 48% at 92% 88%, rgba(45, 212, 191, .22), transparent 60%),
    linear-gradient(135deg, #e85d4c 0%, #8b3a7a 46%, #0b3d4a 100%);
}
.pl-auth--signup {
  background:
    radial-gradient(70% 52% at 90% 8%, rgba(255, 210, 190, .32), transparent 54%),
    radial-gradient(56% 46% at 8% 92%, rgba(196, 94, 255, .22), transparent 58%),
    linear-gradient(135deg, #ff8a65 0%, #c44569 40%, #2d1b4e 100%);
}
.pl-auth--join {
  background:
    radial-gradient(70% 50% at 10% 88%, rgba(80, 220, 210, .3), transparent 56%),
    radial-gradient(54% 44% at 92% 10%, rgba(167, 139, 250, .26), transparent 58%),
    linear-gradient(135deg, #2ec4b6 0%, #3d5a80 48%, #1b1464 100%);
}
.pl-auth--recover {
  background:
    radial-gradient(64% 48% at 12% 10%, rgba(196, 181, 253, .32), transparent 56%),
    linear-gradient(135deg, #7c3aed 0%, #c44569 48%, #16324f 100%);
}
.pl-auth__waves {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
}
.pl-auth__waves-svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: plAuthWaves 36s linear infinite;
}
.pl-auth__marks {
  position: absolute;
  inset: 1.1rem 1.25rem;
  z-index: 0;
  pointer-events: none;
  border: 0;
}
.pl-auth__nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .65rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding:
    calc(1.15rem + env(safe-area-inset-top, 0px))
    calc(1.5rem + env(safe-area-inset-right, 0px))
    0
    calc(1.5rem + env(safe-area-inset-left, 0px));
}
.pl-auth__nav-spacer {
  flex: 1 1 auto;
  min-width: .5rem;
  height: 1px;
}
.pl-auth__nav-btn,
.pl-auth__nav-link,
.pl-auth__nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.pl-auth__nav-btn {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14);
  color: #fff !important;
  padding: .55rem 1rem;
  border-radius: 999px;
  letter-spacing: .04em;
}
.pl-auth__nav-btn:hover { background: rgba(255,255,255,.22); }
.pl-auth__nav-link {
  border: 0;
  background: transparent;
  color: #fff !important;
  padding: .45rem .35rem;
}
.pl-auth__nav-cta {
  border: 0;
  border-radius: .85rem;
  padding: .6rem 1rem;
  color: #16120a !important;
  background: #f5c451;
  box-shadow: 0 10px 24px -12px rgba(245,196,81,.7);
}
@media (max-width: 479px) {
  .pl-auth__nav {
    gap: .4rem;
    padding:
      calc(.85rem + env(safe-area-inset-top, 0px))
      max(.75rem, env(safe-area-inset-right, 0px))
      0
      max(.75rem, env(safe-area-inset-left, 0px));
  }
  .pl-auth__nav-btn,
  .pl-auth__nav-link,
  .pl-auth__nav-cta {
    font-size: .7rem;
    max-width: min(48vw, 11.5rem);
  }
  .pl-auth__nav-btn {
    padding: .42rem .7rem;
  }
  .pl-auth__nav-cta {
    padding: .45rem .7rem;
    border-radius: .7rem;
  }
  /* Accueil + Connexion + S’inscrire : trop large → masquer le lien milieu */
  .pl-auth__nav:has(.pl-auth__nav-cta):has(.pl-auth__nav-link) .pl-auth__nav-link {
    display: none;
  }
}
.pl-auth__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    2.25rem
    calc(1.5rem + env(safe-area-inset-right, 0px))
    calc(3.25rem + env(safe-area-inset-bottom, 0px))
    calc(1.5rem + env(safe-area-inset-left, 0px));
}
.pl-auth__stage--split {
  display: grid;
  gap: 2.5rem;
  width: min(68rem, 100%);
  align-items: center;
}
@media (min-width: 1024px) {
  .pl-auth__stage--split { grid-template-columns: 1fr 1fr; }
}
.pl-auth__copy { color: #fff; max-width: 32rem; }
.pl-auth__copy h2,
.pl-auth__copy .pl-auth__title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: #fff;
}
.pl-auth__copy p { color: rgba(255,255,255,.82); }
.pl-auth__eyebrow {
  margin: 0 0 .65rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.pl-auth__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  padding: 1.05rem;
  border: 1px solid rgba(255,255,255,.38);
  border-right-style: dashed;
  border-radius: 1.75rem;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
}
.pl-auth__frame::before,
.pl-auth__frame::after {
  content: "";
  position: absolute;
  width: .42rem;
  height: .42rem;
  background: #fff;
  box-shadow: .7rem 0 0 #fff, 1.4rem 0 0 #fff;
}
.pl-auth__frame::before { top: .55rem; left: .7rem; }
.pl-auth__frame::after { right: .7rem; bottom: .55rem; box-shadow: -.7rem 0 0 #fff, -1.4rem 0 0 #fff; }
.pl-auth__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 1.35rem;
  background: rgba(12, 10, 24, .34);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  color: #f7f4ef;
}
.pl-auth--light .pl-auth__sheet,
.pl-auth__sheet--light {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15,23,42,.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pl-auth--light .pl-auth__nav-btn,
.pl-auth--light .pl-auth__nav-link {
  color: #fff !important;
}
.pl-auth--light .pl-auth__nav-btn {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.16);
}
.pl-auth--light .pl-auth__sheet h1,
.pl-auth--light .pl-auth__sheet h2,
.pl-auth--light .pl-auth__sheet p,
.pl-auth--light .pl-auth__sheet .text-slate-900,
.pl-auth--light .pl-auth__sheet .text-slate-600,
.pl-auth--light .pl-auth__sheet .text-slate-500 {
  color: #0f172a;
}
.pl-auth--light .pl-auth__sheet .pl-auth__eyebrow {
  color: #7c3aed;
}
.pl-auth__tabs {
  display: flex;
  gap: .25rem;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}
.pl-auth__tab {
  flex: 1 1 0;
  border: 0;
  border-radius: .65rem;
  padding: .55rem .45rem;
  font-size: .7rem;
  font-weight: 800;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  color: rgba(255,255,255,.92) !important;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
@media (min-width: 640px) {
  .pl-auth__tab { font-size: .75rem; padding: .6rem .5rem; }
}
.pl-auth__tab.is-active {
  color: #fff !important;
  background: rgba(255,255,255,.24);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
/* Champs dans la feuille auth — style cohérent avec le thème sombre */
.pl-auth__sheet .pl-surface {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  color: #f0eef7;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.pl-auth__sheet .pl-surface:focus,
.pl-auth__sheet select.pl-surface:focus {
  background: rgba(255,255,255,.13);
  border-color: rgba(167,143,255,.75);
  box-shadow: 0 0 0 3px rgba(110,91,255,.24);
  outline: none !important;
}
.pl-auth__sheet .pl-surface::placeholder {
  color: rgba(240,238,247,.36);
}
/* Padding réduit sur mobile pour éviter le débordement */
@media (max-width: 479px) {
  .pl-auth__sheet { padding: 1.25rem !important; }
  .pl-auth__frame { padding: .55rem; }
  .pl-auth__stage {
    padding-top: 1.35rem;
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
  .pl-auth__sheet h2 { font-size: 1.35rem !important; }
}
/* Bandeau cookies fixe : réserver toute la hauteur du bandeau (~170px) */
body.pl:has(#cookie-notice) .pl-auth__stage {
  padding-bottom: calc(13rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 479px) {
  body.pl:has(#cookie-notice) .pl-auth__stage {
    padding-bottom: calc(14.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Neutralise le fond jaune/beige du navigateur lors de l'autofill */
.pl-surface:-webkit-autofill,
.pl-surface:-webkit-autofill:hover,
.pl-surface:-webkit-autofill:focus,
.pl-surface:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 9999px var(--surface, #100c1e) inset !important;
  box-shadow: 0 0 0 9999px var(--surface, #100c1e) inset !important;
  -webkit-text-fill-color: var(--text, #f0eef7) !important;
  caret-color: var(--text, #f0eef7);
  background-clip: content-box !important;
}
/* Même chose pour les inputs de la feuille auth (fond légèrement différent) */
.pl-auth__sheet input:-webkit-autofill,
.pl-auth__sheet input:-webkit-autofill:hover,
.pl-auth__sheet input:-webkit-autofill:focus,
.pl-auth__sheet input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 9999px rgba(12, 10, 24, .85) inset !important;
  box-shadow: 0 0 0 9999px rgba(12, 10, 24, .85) inset !important;
  -webkit-text-fill-color: #f0eef7 !important;
  caret-color: #f0eef7;
  border-color: rgba(255,255,255,.22) !important;
}
.pl-auth--light .pl-auth__sheet input:-webkit-autofill,
.pl-auth--light .pl-auth__sheet input:-webkit-autofill:hover,
.pl-auth--light .pl-auth__sheet input:-webkit-autofill:focus,
.pl-auth--light .pl-auth__sheet input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 9999px #fff inset !important;
  box-shadow: 0 0 0 9999px #fff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a;
  border-color: #cbd5e1 !important;
}
.pl-auth__sheet .pl-muted { color: rgba(255,255,255,.72); }
.pl-auth--light .pl-auth__sheet .pl-muted { color: #64748b; }
.pl-auth__sheet a[style*="--primary2"] { color: #fff !important; }
@keyframes plAuthWaves {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-6%, -3%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pl-auth__waves-svg { animation: none !important; }
}
