/* apps/frontend/src/styles/pricing.css */
:root {
  --bg-primary: #0a0a0f;
  --bg-card: #16161d;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #8b5cf6;
  --success: #10b981;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --border: #2a2a35;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
}

.pricing-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-header h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.pricing-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px 25px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card.highlight {
  border-top: 3px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  text-align: center;
  z-index: 2;
}

.plan-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}

.plan-header h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: normal;
}

.features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  flex-grow: 1;
}

.features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
}

.features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1rem;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: transparent;
  color: var(--text-primary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

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

.btn.primary:hover {
  background: var(--primary-dark);
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .pricing-header {
    margin-bottom: 40px;
  }
  
  .pricing-header h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .pricing-container {
    padding: 40px 15px;
  }
  
  .pricing-header h1 {
    font-size: 1.7rem;
  }
  
  .pricing-header p {
    font-size: 1rem;
  }
  
  .price {
    font-size: 2rem;
  }
}