/* =============================================
   UNBAN.LIVE - Referrals Page Styles
   ============================================= */

/* Hero Banner */
.ref-hero {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 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(--primary-light);
  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: white;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 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: rgba(139, 92, 246, 0.1);
  border-color: var(--primary);
}

.ref-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  margin-bottom: 4px;
}

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

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

/* Referral Link Card */
.ref-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.ref-link-card .card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.ref-link-card .card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

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

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

.ref-link-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary-light);
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
}

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

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

.ref-copy-btn:hover {
  transform: scale(1.02);
}

.ref-copy-btn.copied {
  background: var(--success);
}

.ref-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: 20px;
  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-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.ref-card .card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.ref-card .card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.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: white;
  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-empty {
  text-align: center;
  padding: 40px 20px;
}

.ref-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ref-empty h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

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

.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(139, 92, 246, 0.05);
}

.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: white;
}

.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: 'Space Mono', monospace;
  font-weight: 600;
  color: var(--success);
}

/* 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;
  }
}
