/* ==========================================================================
   Reusable pricing grid + card component
   All 4 cards: blue-tinted solid surface + 3D tilt on hover
   Featured card: elevated glow + animated border + depth treatment
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  perspective: 1200px; /* enables 3D context for all children */
}

/* ── BASE CARD ── */
.price-card {
  position: relative;
  background: #eef2fb;
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow:
    0 2px 12px rgba(37, 99, 235, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* top inner highlight line */
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.5) 100%);
  z-index: 1;
}

/* subtle inner blue radial */
.price-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.price-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    0 16px 40px rgba(37, 99, 235, 0.12),
    0 4px 12px rgba(37, 99, 235, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* ── FEATURED CARD — special treatment ── */
.price-card--featured {
  background: linear-gradient(145deg, #dce8ff 0%, #e8f0fe 50%, #dce8ff 100%);
  border-color: rgba(37, 99, 235, 0.3);
  padding-top: 52px;
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.15),
    0 2px 8px rgba(37, 99, 235, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(37, 99, 235, 0.08) inset;
  transform-style: preserve-3d;
}

/* animated border glow on featured */
.price-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(37,99,235,0.6) 0%,
    rgba(96,165,250,0.3) 35%,
    rgba(255,255,255,0.1) 50%,
    rgba(96,165,250,0.3) 65%,
    rgba(37,99,235,0.6) 100%
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: featured-border-shift 4s linear infinite;
  z-index: 1;
}

@keyframes featured-border-shift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 300%; }
}

/* deeper blue glow corner on featured */
.price-card--featured::after {
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 65%);
}

.price-card--featured:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    0 24px 60px rgba(37, 99, 235, 0.22),
    0 8px 20px rgba(37, 99, 235, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* ── FEATURED BADGE ── */
.price-featured-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 16px 7px;
  border-radius: 0 0 12px 12px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  z-index: 3;
}

.price-badge-pulse {
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: price-badge-blink 1.5s ease-in-out infinite;
}
@keyframes price-badge-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ── TIER ROW ── */
.price-tier { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.price-tier-icon { font-size: 14px; color: #a0b0cc; }
.price-tier-icon--blue { color: var(--color-accent); }
.price-tier-icon--slate { color: #64748b; }

/* ── AMOUNT ── */
.price-amount-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 6px; }

/* ── INACTIVITY NOTE ── */
.price-inactivity-note { font-size: 10.5px; color: #94a3b8; margin: 0 0 14px; line-height: 1.4; }

/* ── FEATURES LIST ── */
.price-features { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.price-features li { display: flex; align-items: center; gap: 8px; }

.price-feature-check {
  font-size: 10px; font-weight: 800; color: #94a3b8;
  flex-shrink: 0; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 50%;
}
.price-feature-check--featured {
  color: var(--color-accent);
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.25);
}

/* ── FOOTER ── */
.price-footer { text-align: center; margin-top: 40px; }
.price-compare-link {
  display: inline-block;
  font-size: 13.5px; font-weight: 600; color: #4b5a78;
  border: 1.5px solid rgba(37,99,235,0.15);
  padding: 10px 28px; border-radius: 50px;
  background: #eef2fb;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.price-compare-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #e0eaff;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card { align-items: center; text-align: center; }
  .price-features li { justify-content: center; }
  .price-card:hover,
  .price-card--featured:hover { transform: translateY(-4px); }
}