/* ============================================================================
   NEXOO APP — BRIQUE 11C : STRIPE B2C (CHF / EUR · 29 / 290)
   Dark Mode exclusif · Mobile-first · FR / EN / DE
   ============================================================================ */

.nexoo-b2c-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nexoo-b2c-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.nexoo-b2c-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #f8fafc;
}

/* Sélecteur de devise CHF / EUR */
.nexoo-b2c-currency {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #080e1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 3px;
}

.nexoo-b2c-curr-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nexoo-b2c-curr-btn.active {
  background: #18243f;
  color: #39ff14;
}

/* Grille 2 plans : Mensuel & Annuel */
.nexoo-b2c-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nexoo-b2c-plan {
  position: relative;
  text-align: left;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1426;
  border-radius: 14px;
  padding: 13px 12px;
  color: #f8fafc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.nexoo-b2c-plan:hover {
  border-color: rgba(34, 197, 94, 0.45);
}

.nexoo-b2c-plan.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.nexoo-b2c-plan-badge {
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #39ff14;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nexoo-b2c-plan-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.nexoo-b2c-plan-price {
  font-size: 21px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.nexoo-b2c-plan-price span {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.nexoo-b2c-plan-sub {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.nexoo-b2c-cta {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #04130a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.nexoo-b2c-cta:hover:not(:disabled) {
  filter: brightness(1.07);
}

.nexoo-b2c-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nexoo-b2c-note {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.45;
}

.nexoo-b2c-error {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 12.5px;
  line-height: 1.4;
}

/* Carte Abonnement & Facturation dans ⚙️ Paramètres */
.param-billing-card {
  background: rgba(17, 26, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.param-billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.param-billing-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #f8fafc;
}

.param-billing-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.param-billing-pill.active {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #4ade80;
}

.param-billing-pill.warn {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fcd34d;
}

.param-billing-pill.neutral {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.param-billing-desc {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.param-billing-btn {
  align-self: flex-start;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
  color: #39ff14;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.param-billing-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.24);
  border-color: #22c55e;
}

.param-billing-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Bannière discrète de retour Stripe (succès / annulation) */
.nexoo-stripe-banner {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9600;
  max-width: min(92vw, 440px);
  padding: 12px 16px;
  border-radius: 14px;
  background: #111a2e;
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.nexoo-stripe-banner.warn {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

@media (max-width: 460px) {
  .nexoo-b2c-plans {
    grid-template-columns: 1fr;
  }
}