/* reset & variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --secondary: #6366f1;
  --bg-dark: #1a1a1a;
  --text-light: #f3f4f6;
  --text-gray: #9ca3af;
  --card-bg: #252525;
  --card-hover: #2e2e2e;
  --radius: 12px;
}

body {
  background: linear-gradient(135deg, #4b5563 0%, #4b5563 50%, var(--primary) 100%);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px;
  line-height: 1.6;
}

/* container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* header */
header {
  text-align: center;
  margin-bottom: 50px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary));
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

header p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* pricing cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  background: var(--card-hover);
}

/* card header */
.card-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.plan-icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.price { margin-bottom: 15px; }

.currency {
  font-size: 1.5rem;
  margin-right: 2px;
  color: var(--primary);
  vertical-align: top;
}

.amount {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

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

.description {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* card body */
.card-body {
  padding: 30px;
  flex-grow: 1;
}

.features { list-style: none; }

.features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.features li i {
  margin-right: 10px;
  font-size: 0.9rem;
}

.features li i.fa-check { color: var(--primary); }

.features li i.fa-times { color: #ef4444; }

.features li.disabled {
  opacity: 0.7;
  color: var(--text-gray);
}

/* card footer */
.card-footer { padding: 20px 30px 30px; }

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  border-color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
}

.btn-accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  animation: pulse 2s infinite;
}

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

/* popular card */
.popular {
  transform: scale(1.05);
  border: 2px solid var(--primary);
  z-index: 2;
}

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

.popular-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 3;
}

/* testimonial */
.testimonial {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.quote {
  max-width: 700px;
  background: var(--card-bg);
  border-radius: 0 20px 0 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.quote i {
  color: var(--primary);
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
}

.quote p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  position: relative;
  padding-left: 15px;
}

/* author */
.author {
  display: flex;
  align-items: center;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid var(--primary);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info h4 {
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.info p {
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary);
}

/* animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* responsive */
@media (max-width: 768px) {
  body { padding: 30px 15px; }
  header { margin-bottom: 30px; }
  header h1 { font-size: 2rem; }
  .pricing-cards {
    grid-template-columns: 1fr;
    margin: 0 auto 40px;
  }
  .card, .popular { transform: none; }
  .card:hover, .popular:hover { transform: translateY(-5px); }
  .testimonial { margin-top: 40px; }
  .quote { padding: 30px; }
}