/* ================================
   REFERRALS PAGE STYLES
   ================================ */

/* Hero Banner */
.ref-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ref-hero-content h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.ref-hero-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.ref-hero-content strong {
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.reward-badge {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
}

/* Stats */
.ref-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ref-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.ref-stat.highlight {
  background: var(--gradient-glow);
  border-color: var(--accent-primary);
}

.ref-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.ref-stat.highlight .ref-stat-value {
  color: var(--accent-primary);
}

.ref-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Referral Link Card */
.ref-link-card {
  margin-bottom: 24px;
}

.ref-link-content {
  padding: 24px;
}

.ref-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.ref-link-input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.ref-link-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  filter: brightness(1.1);
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.share-btn.telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
}

.share-btn.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
}

/* How It Works Steps */
.ref-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
}

.ref-step {
  text-align: center;
  padding: 20px;
}

.ref-step-num {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  margin: 0 auto 12px;
}

.ref-step h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.ref-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Referrals List */
.ref-list {
  padding: 20px;
  min-height: 150px;
}

.ref-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.ref-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ref-item-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
}

.ref-item-info {
  flex: 1;
}

.ref-item-email {
  font-weight: 500;
  font-size: 0.9rem;
}

.ref-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ref-item-earned {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .ref-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ref-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ref-hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .ref-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .ref-stat-value {
    font-size: 1.25rem;
  }
  
  .ref-link-box {
    flex-direction: column;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .ref-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .ref-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 12px;
  }
  
  .ref-step-num {
    margin: 0;
    flex-shrink: 0;
  }
}
