/* ============================================================
   CareWheel — badge offre Free / Premium / Pro (Paramètres)
   ============================================================ */

.cw-plan-badge-slot {
  margin: 0.65rem 0 0.85rem;
}

.cloud-account-card .cw-plan-badge-slot:first-of-type {
  margin-top: 0.35rem;
}

.cw-plan-badge {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(18, 28, 40, 0.96) 0%, rgba(10, 16, 24, 0.98) 100%);
}

.cw-plan-badge-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, rgba(0, 255, 150, 0.14), transparent 55%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03));
}

.cw-plan-badge--free {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.cw-plan-badge--free .cw-plan-badge-glow {
  background: radial-gradient(ellipse 70% 50% at 10% 0%, rgba(148, 163, 184, 0.18), transparent 60%);
}

.cw-plan-badge--premium,
.cw-plan-badge--cloud_active {
  border-color: rgba(245, 188, 78, 0.55);
  /* Fond or calme : un seul dégradé chaud, sans halos croisés */
  background: linear-gradient(160deg, rgba(38, 28, 14, 0.97) 0%, rgba(14, 16, 22, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 150, 0.14),
    0 0 20px rgba(232, 168, 56, 0.12);
}

.cw-plan-badge--premium .cw-plan-badge-glow,
.cw-plan-badge--cloud_active .cw-plan-badge-glow {
  opacity: 0.7;
  background: radial-gradient(ellipse 70% 55% at 12% 0%, rgba(245, 188, 78, 0.28), transparent 65%);
}

.cw-plan-badge--pro {
  border-color: rgba(0, 220, 180, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 150, 0.12);
}

.cw-plan-badge--pro .cw-plan-badge-glow {
  background: radial-gradient(ellipse 75% 55% at 8% -10%, rgba(0, 255, 180, 0.26), transparent 58%);
}

.cw-plan-badge--unknown {
  border-color: rgba(100, 140, 180, 0.28);
}

.cw-plan-badge-body {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.15rem 1.15rem;
}

.cw-plan-badge-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: rgba(230, 240, 250, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.55rem;
}

.cw-plan-badge--premium .cw-plan-badge-pill,
.cw-plan-badge--cloud_active .cw-plan-badge-pill {
  color: #1a1208;
  background: linear-gradient(120deg, #ffe09a 0%, #f5c76a 42%, #e8a838 78%, #d4922a 100%);
  border-color: rgba(255, 236, 180, 0.35);
  box-shadow:
    0 0 14px rgba(245, 199, 106, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cw-plan-badge--pro .cw-plan-badge-pill {
  color: #041510;
  background: linear-gradient(120deg, #5dffc2, #00d9a0);
  border-color: transparent;
}

.cw-plan-badge-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f3f7fb;
}

/* Titre or après la règle générique — clip + fill pour un doré bien visible */
.cw-plan-badge--premium .cw-plan-badge-title,
.cw-plan-badge--cloud_active .cw-plan-badge-title {
  color: #f0c35a;
  background: linear-gradient(105deg, #ffe29a 0%, #f0c35a 38%, #e8a838 72%, #d4922a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(245, 180, 70, 0.45));
}

.cw-plan-badge-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(200, 214, 228, 0.88);
  max-width: 36rem;
}

.cw-plan-badge-perks {
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.cw-plan-badge-perks li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.84rem;
  color: rgba(220, 232, 242, 0.9);
}

.cw-plan-badge-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent, #00ff96);
  box-shadow: 0 0 8px rgba(0, 255, 150, 0.35);
}

.cw-plan-badge--premium .cw-plan-badge-perks li::before,
.cw-plan-badge--cloud_active .cw-plan-badge-perks li::before {
  background: linear-gradient(135deg, #ffe09a, #e8a838);
  box-shadow: 0 0 10px rgba(245, 188, 78, 0.55);
}

.cw-plan-badge-hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.8rem;
}

.cw-plan-badge-cta {
  margin-top: 0.35rem;
  text-decoration: none;
}

.cw-plan-badge--loading .cw-plan-badge-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 5.5rem;
}

.cw-plan-badge-skeleton {
  display: block;
  height: 0.7rem;
  width: 5.5rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: cw-plan-skel 1.2s ease-in-out infinite;
}

.cw-plan-badge-skeleton--title {
  width: 8rem;
  height: 1.35rem;
}

.cw-plan-badge-skeleton--line {
  width: min(100%, 22rem);
  height: 0.85rem;
}

@keyframes cw-plan-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.history-measures-cta--session {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid rgba(0, 200, 160, 0.28);
  background: linear-gradient(145deg, rgba(0, 40, 36, 0.55), rgba(12, 20, 28, 0.9));
}

.history-measures-cta--session .history-empty {
  margin: 0;
}

.history-measures-cloud-login-btn {
  text-decoration: none;
}

/* ============================================================
   ORBITAL HABITAT — badge offre Paramètres (itération 3)
   Scopé #tab-access — index.html uniquement
   Premium / cloud_active exclus : gardent le traitement or de base
   ============================================================ */

#tab-access .cw-plan-badge:not(.cw-plan-badge--premium):not(.cw-plan-badge--cloud_active) {
  border-color: var(--glass-border);
  background: var(--card-gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#tab-access .cw-plan-badge:not(.cw-plan-badge--premium):not(.cw-plan-badge--cloud_active) .cw-plan-badge-glow {
  opacity: 0.48;
}

#tab-access .cw-plan-badge--free {
  border-color: rgba(148, 163, 184, 0.22);
}

#tab-access .cw-plan-badge--pro {
  border-color: rgba(92, 184, 168, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 16px var(--halo-accent);
}

#tab-access .cw-plan-badge:not(.cw-plan-badge--premium):not(.cw-plan-badge--cloud_active) .cw-plan-badge-perks li::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--halo-accent);
}
