:root {
  --bg-color: #0f1115;
  --card-bg: rgba(25, 28, 35, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f0f2f5;
  --text-muted: #9ba1a6;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #ec4899;
  --secondary-hover: #db2777;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Background Gradients */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite alternate;
}

.glow-1 {
  background: var(--accent-glow);
  top: -100px;
  left: -100px;
}

.glow-2 {
  background: rgba(236, 72, 153, 0.1);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.container {
  width: 100%;
  max-width: 1000px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pro-card:hover {
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.lifetime-card:hover {
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.popular {
  border-color: var(--primary);
  transform: scale(1.05);
}

.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.btn-disabled {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.footer {
  margin-top: 6rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.support-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text-main);
}

.hidden {
  display: none !important;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }
  .popular {
    transform: none;
  }
  .popular:hover {
    transform: translateY(-8px);
  }
}
