.upgrade-header {
    text-align: center;
    margin-bottom: 28px;
}

.upgrade-header h1 {
  font-size: 1.35rem;
}

@media (min-width: 768px) {
  .upgrade-header {
    margin-bottom: 40px;
  }
  .upgrade-header h1 {
    font-size: 1.75rem;
  }
}

.plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 520px) {
  .plans {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
}

.plan {
    background: #17171c;
    border: 1px solid #26262c;
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
}

.plan h2 {
    text-align: center;
}

.plan ul {
    text-align: left;
    flex: 1;
    margin-bottom: 20px;
}

.plan button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
}

@media (min-width: 768px) {
  .plan {
    border-radius: 16px;
    padding: 24px 20px;
  }
}

.plan h2 {
    margin-bottom: 6px;
}

.plan-desc {
    margin: 0 0 14px 0;
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    line-height: 1.35;
}

.plan ul {
    list-style: none;
    padding: 0;
}

.plan li {
    margin-bottom: 8px;
    color: #ccc;
}

.plan button {
    width: 100%;
    padding: 14px 16px;
    min-height: 48px;
    border-radius: 12px;
    border: none;
    background: #ff4d8d;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.plan button.secondary {
    background: #333;
}

.plan button:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Bouton Premium : rose qui brille */
.plan .btn-premium-cta {
    background: linear-gradient(135deg, #ff4d8d 0%, #ff6b8a 50%, #ff8fa3 100%);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.5),
                0 0 40px rgba(255, 77, 109, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.plan .btn-premium-cta:hover {
    box-shadow: 0 0 28px rgba(255, 77, 109, 0.6),
                0 0 56px rgba(255, 77, 109, 0.3);
}

/* Compte gratuit : rose (bordure + fond léger) */
.plan-free {
    border-color: #ff4d8d;
    background: linear-gradient(180deg, rgba(255, 77, 109, 0.08) 0%, #17171c 100%);
}

.plan-free h2 {
    color: #ff4d8d;
}

/* Premium : rose qui brille (bordure un peu plus épaisse que le gratuit) */
.plan-premium {
    border: 2px solid #ff4d8d;
    background: linear-gradient(180deg, rgba(255, 77, 109, 0.12) 0%, #17171c 100%);
    box-shadow: 0 0 24px rgba(255, 77, 109, 0.25),
                0 0 48px rgba(255, 77, 109, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
}

.plan-premium::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 77, 109, 0.4) 0%,
        rgba(255, 140, 170, 0.2) 50%,
        rgba(255, 77, 109, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.8;
}

.plan-premium h2 {
    color: #ff6b8a;
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.4);
}

.plan-premium li {
    color: #e0e0e0;
}

.premium-offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.premium-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.premium-offer-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.premium-offer-price {
    display: none;
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
}

.premium-offer-price-sub {
    font-size: 0.9em;
    color: #aaa;
}

.premium-offer .btn-premium-cta {
    width: 100%;
}

.premium-offer-annual .btn-premium-cta {
    border-color: rgba(255, 200, 100, 0.4);
    box-shadow: 0 0 16px rgba(255, 180, 80, 0.35),
                0 0 32px rgba(255, 180, 80, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-offer-annual .btn-premium-cta:hover {
    box-shadow: 0 0 22px rgba(255, 180, 80, 0.45),
                0 0 44px rgba(255, 180, 80, 0.25);
}

@media (max-width: 380px) {
  .premium-offers {
    grid-template-columns: 1fr;
  }
}

.upgrade-footer {
    margin-top: 40px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

#upgradeError.error {
    margin-top: 12px;
    color: #e66;
    font-size: 0.95rem;
}

#upgradeError[hidden] {
    display: none;
}
