/* Referral Page Styles */
.referral-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e88c7 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
  margin-top: 80px;
}

.referral-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  animation: fadeInUp 0.6s ease-out;
}

.referral-content > p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.reward-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.reward-box {
  background: white;
  color: var(--text);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.reward-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.reward-box h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.reward-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 1rem 0;
  line-height: 1;
}

.reward-box > p:last-child {
  color: var(--text-light);
  font-size: 1rem;
}

.how-it-works {
  padding: 100px 0;
  background: #f8f9fa;
}

.how-it-works .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: fadeInUp 0.6s ease-out both;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}
.step-item:nth-child(2) {
  animation-delay: 0.2s;
}
.step-item:nth-child(3) {
  animation-delay: 0.3s;
}

.step-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(253, 193, 42, 0.4);
}

.step-item i {
  font-size: 3rem;
  color: var(--primary);
  margin: 2rem 0 1.5rem;
}

.step-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.step-item p {
  color: var(--text-light);
  line-height: 1.7;
}

.referral-dashboard {
  padding: 80px 0;
  background: white;
}

.referral-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.referral-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.referral-card > p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.referral-link-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.referral-link-box input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background: #f8f9fa;
}

.btn-copy {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy:hover {
  background: #1e88c7;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(41, 171, 226, 0.3);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.share-btn {
  flex: 1;
  min-width: 150px;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.facebook:hover {
  background: #0d65d9;
  transform: translateY(-2px);
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.twitter:hover {
  background: #0c8dd9;
  transform: translateY(-2px);
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.stat-box h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-box p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.referral-terms {
  padding: 80px 0;
  background: #f8f9fa;
}

.referral-terms h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.referral-terms ul {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.referral-terms li {
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

.referral-terms li:before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .referral-content h2 {
    font-size: 2rem;
  }

  .reward-amount {
    font-size: 2.5rem;
  }

  .referral-card {
    padding: 2rem 1.5rem;
  }

  .referral-link-box {
    flex-direction: column;
  }

  .share-buttons {
    flex-direction: column;
  }
}
