/* ═══════════════════════════════════════════════
   CEVIO STEAM IDLER — PRICING PAGE (PREMIUM)
   public/css/pricing.css
   ═══════════════════════════════════════════════ */

/* ═══ PAGE WRAPPER ═══ */
.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* ═══ AMBIENT BACKGROUND GLOW ═══ */
.pricing-page::before {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse at center,
    rgba(79, 70, 255, 0.08) 0%,
    rgba(192, 38, 255, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .pricing-page::before {
  background: radial-gradient(ellipse at center,
    rgba(79, 70, 255, 0.15) 0%,
    rgba(192, 38, 255, 0.08) 40%,
    transparent 70%
  );
}

/* ═══ NAV ═══ */
.pricing-nav {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* ═══ HEADER ═══ */
.pricing-header {
  text-align: center;
  padding: 40px 0 50px;
  position: relative;
  z-index: 2;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 2em;
  margin-bottom: 16px;
  animation: fadeUp 0.5s var(--ease) both;
}
.pricing-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pricePulse 2s ease-in-out infinite;
}
@keyframes pricePulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50% { opacity: 0.5; transform: scale(0.7) }
}
.pricing-header h1 {
  font-family: var(--font);
  font-size: clamp(1.8em, 4vw, 2.6em);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  animation: fadeUp 0.5s var(--ease) 0.05s both;
}
.pricing-header p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 0.92em;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  animation: fadeUp 0.5s var(--ease) 0.1s both;
}

/* ═══ GRID — 4 COLUMNS ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* ═══ CARD BASE ═══ */
.price-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: priceCardIn 0.6s var(--ease) both;
  overflow: hidden;
}
.price-card:nth-child(1) { animation-delay: 0.1s }
.price-card:nth-child(2) { animation-delay: 0.18s }
.price-card:nth-child(3) { animation-delay: 0.26s }
.price-card:nth-child(4) { animation-delay: 0.34s }

@keyframes priceCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .price-card {
  background: rgba(22, 18, 36, 0.75);
  border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .price-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ═══ CARD GLOW (subtle hover glow) ═══ */
.price-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(79, 70, 255, 0.06) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.price-card:hover::before { opacity: 1 }
[data-theme="dark"] .price-card::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(79, 70, 255, 0.12) 0%,
    transparent 50%
  );
}

/* ═══ POPULAR CARD — ANIMATED GRADIENT BORDER ═══ */
.price-card--pop {
  border: none;
  background: linear-gradient(135deg, #4f46ff, #7a3cff, #c026ff, #7a3cff, #4f46ff) border-box;
  background-size: 300% 300%;
  animation: priceCardIn 0.6s var(--ease) 0.26s both, gradientShift 6s ease infinite;
  position: relative;
  z-index: 1;
}
.price-card--pop::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  z-index: -1;
}
[data-theme="dark"] .price-card--pop::after {
  background: rgba(18, 14, 30, 0.95);
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
}

/* Popular glow underneath */
.price-card--pop .price-card-glow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 40px;
  background: linear-gradient(135deg, rgba(79, 70, 255, 0.25), rgba(192, 38, 255, 0.25));
  filter: blur(30px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
}

.price-card--pop:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(79, 70, 255, 0.15);
}
[data-theme="dark"] .price-card--pop:hover {
  box-shadow: 0 25px 60px rgba(79, 70, 255, 0.25);
}

/* ═══ POPULAR BADGE ═══ */
.price-pop-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #4f46ff, #c026ff);
  color: #fff;
  padding: 5px 16px;
  border-radius: 0 0 10px 10px;
  z-index: 5;
}

/* ═══ PLAN ICON ═══ */
.price-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.price-icon svg {
  width: 26px;
  height: 26px;
}
.price-icon--free {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.08), rgba(107, 114, 128, 0.15));
  color: #6b7280;
}
.price-icon--starter {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.15));
  color: #3b82f6;
}
.price-icon--premium {
  background: linear-gradient(135deg, rgba(79, 70, 255, 0.08), rgba(192, 38, 255, 0.15));
  color: #7a3cff;
}
.price-icon--business {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.15));
  color: #f59e0b;
}
[data-theme="dark"] .price-icon--free { background: linear-gradient(135deg, rgba(107, 114, 128, 0.15), rgba(107, 114, 128, 0.25)); color: #9ca3af }
[data-theme="dark"] .price-icon--starter { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.25)); color: #60a5fa }
[data-theme="dark"] .price-icon--premium { background: linear-gradient(135deg, rgba(79, 70, 255, 0.15), rgba(192, 38, 255, 0.25)); color: #a78bfa }
[data-theme="dark"] .price-icon--business { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.25)); color: #fbbf24 }

/* ═══ PLAN NAME ═══ */
.price-name {
  font-family: var(--font);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

/* ═══ PRICE AMOUNT ═══ */
.price-amount {
  font-family: var(--font);
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 2px;
  position: relative;
  z-index: 2;
}
.price-amount span {
  font-size: 0.3em;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}
.price-amount--free {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ DESCRIPTION ═══ */
.price-desc {
  font-size: 0.78em;
  color: var(--text-2);
  margin-top: 2px;
  position: relative;
  z-index: 2;
}

/* ═══ DIVIDER ═══ */
.price-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
  position: relative;
  z-index: 2;
}
.price-card--pop .price-divider {
  background: linear-gradient(90deg, transparent, rgba(79, 70, 255, 0.2), transparent);
}

/* ═══ FEATURES LIST ═══ */
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.price-features li {
  font-size: 0.78em;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.price-features .check {
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
  margin-top: 0;
}
.price-features .check svg {
  width: 11px;
  height: 11px;
}
.price-card--pop .price-features .check {
  background: linear-gradient(135deg, rgba(79, 70, 255, 0.15), rgba(192, 38, 255, 0.15));
  color: #7a3cff;
}
/* Highlight key feature */
.price-features .feat-highlight {
  font-weight: 600;
  color: var(--text);
}

/* ═══ CTA BUTTON ═══ */
.price-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
/* Default (non-popular) */
.price-btn.btn-secondary {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
}
.price-btn.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(79, 70, 255, 0.1);
}
/* Popular */
.price-btn.btn-primary {
  background: linear-gradient(135deg, #4f46ff, #7a3cff, #c026ff);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 70, 255, 0.3);
  animation: gradientShift 4s ease infinite;
}
.price-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 255, 0.4);
}
.price-btn.btn-primary:active {
  transform: translateY(0);
}
/* Free button */
.price-btn--free {
  background: transparent !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #10b981 !important;
}
.price-btn--free:hover {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: #10b981 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15) !important;
}
/* Disabled / Current */
.price-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══ TRUST BAR ═══ */
.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 50px;
  animation: fadeUp 0.5s var(--ease) 0.5s both;
}
.pricing-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72em;
  color: var(--text-3);
  font-weight: 500;
}
.pricing-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.pricing-trust-icon svg {
  width: 16px;
  height: 16px;
}

/* ═══ GUARANTEE BANNER ═══ */
.pricing-guarantee {
  text-align: center;
  margin-top: 36px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.1);
  animation: fadeUp 0.5s var(--ease) 0.55s both;
}
.pricing-guarantee-text {
  font-size: 0.8em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pricing-guarantee-text strong {
  color: #10b981;
}
.pricing-guarantee-icon {
  color: #10b981;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pricing-guarantee-icon svg {
  width: 20px;
  height: 20px;
}
[data-theme="dark"] .pricing-guarantee {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.12);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1050px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
  }
  /* Make popular card span top-right */
  .price-card--pop { order: -1 }
}
@media (max-width: 560px) {
  .pricing-page { padding: 16px 16px 80px }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .pricing-trust {
    flex-direction: column;
    gap: 12px;
  }
  .price-card { padding: 24px 20px }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px) }
  to   { opacity: 1; transform: translateY(0) }
}