/* ==========================================================================
   XPLOROO · Creator VIP Subscription (Phase 38)
   Scoped to [data-dash-section="vip-membership"] and the admin VIP Creators
   tab. Deliberately purple/cherry/blue/titanium — no gold/yellow, per the
   explicit "no cheap gold" design direction. Works in both themes: the dark
   luxury surface is the SAME in day/night (a premium card is allowed to
   stay dark even on a light page, like a physical membership card would),
   but text/border contrast is tuned for both surrounding themes.
   ========================================================================== */

.vip-card {
  position: relative;
  border-radius: var(--radius-xl, 20px);
  padding: var(--space-6, 2rem);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1030 0%, #170f28 40%, #0d1024 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #f4f2fb;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 20px 60px -20px rgba(124, 58, 237, 0.55);
}

.vip-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 15% 10%, rgba(168, 85, 247, 0.35), transparent 55%), radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(225, 29, 72, 0.18), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.vip-card > * {
  position: relative;
  z-index: 1;
}

.vip-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-2xs, 0.7rem);
  font-weight: 700;
  letter-spacing: var(--ls-wide, 0.08em);
  text-transform: uppercase;
  color: #d8b4fe;
  margin: 0 0 var(--space-3, 0.75rem);
}

.vip-card__title {
  margin: 0 0 var(--space-2, 0.5rem);
  font-size: var(--fs-2xl, 1.75rem);
  font-weight: 800;
  background: linear-gradient(90deg, #f4f2fb 0%, #e9d5ff 45%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vip-card__price {
  margin: 0 0 var(--space-5, 1.5rem);
  font-size: var(--fs-lg, 1.1rem);
  color: #cbd5e1;
}

.vip-card__price strong {
  font-size: var(--fs-3xl, 2.1rem);
  color: #ffffff;
  margin-right: 0.35rem;
}

.vip-benefit-list {
  list-style: none;
  margin: 0 0 var(--space-6, 2rem);
  padding: 0;
  display: grid;
  gap: var(--space-4, 1rem);
}

.vip-benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3, 0.75rem);
  align-items: start;
}

.vip-benefit__num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs, 0.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(203, 213, 225, 0.35);
  color: #f4f2fb;
  flex-shrink: 0;
}

.vip-benefit__title {
  margin: 0 0 0.2rem;
  font-size: var(--fs-sm, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f2fb;
}

.vip-benefit__desc {
  margin: 0;
  font-size: var(--fs-sm, 0.9rem);
  color: #cbd5e1;
  line-height: 1.5;
}

.vip-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: var(--fs-sm, 0.95rem);
  letter-spacing: 0.02em;
  color: #0d1024;
  background: linear-gradient(90deg, #e9d5ff 0%, #c4b5fd 40%, #93c5fd 100%);
  cursor: pointer;
  box-shadow: 0 8px 30px -8px rgba(168, 85, 247, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vip-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px -8px rgba(168, 85, 247, 0.75);
}

.vip-card__cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.vip-card__cta--ghost {
  background: transparent;
  color: #f4f2fb;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: none;
}

/* --- Promo banner (compact, sits above the full detail view) --- */
.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5, 1.5rem);
  flex-wrap: wrap;
  margin-bottom: var(--space-5, 1.5rem);
}

.vip-banner__copy {
  flex: 1 1 260px;
}

/* --- Status card (active/past_due/cancellation-scheduled membership) --- */
.vip-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4, 1rem);
  margin: 0 0 var(--space-6, 2rem);
}

.vip-status-item__label {
  margin: 0 0 0.25rem;
  font-size: var(--fs-2xs, 0.7rem);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide, 0.06em);
  color: #a5b4cf;
}

.vip-status-item__value {
  margin: 0;
  font-size: var(--fs-md, 1rem);
  font-weight: 700;
  color: #f4f2fb;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: var(--fs-2xs, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d1024;
  background: linear-gradient(90deg, #e9d5ff 0%, #93c5fd 100%);
  box-shadow: 0 2px 10px -2px rgba(168, 85, 247, 0.5);
  white-space: nowrap;
}

.vip-billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm, 0.9rem);
}

.vip-billing-table th,
.vip-billing-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.vip-billing-table th {
  font-size: var(--fs-2xs, 0.7rem);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide, 0.05em);
  color: var(--color-text-subtle, #888);
}

@media (max-width: 640px) {
  .vip-billing-table {
    display: block;
    overflow-x: auto;
  }
  .vip-card {
    padding: var(--space-5, 1.5rem);
  }
}
