/* ===== Affiliates Page ===== */

/* Hero Banner */
.aff-hero {
  background: linear-gradient(135deg, #0f1724 0%, #152035 50%, #0a1628 100%);
  border: 1px solid rgba(92, 184, 230, 0.15);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.aff-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(92, 184, 230, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.aff-hero-content h1 {
  font-size: 28px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 12px;
  line-height: 1.3;
}
.aff-hero-content h1 .accent {
  color: #5cb8e6;
}
.aff-hero-content p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}
.aff-hero-graphic {
  flex-shrink: 0;
  margin-left: 32px;
  opacity: 0.8;
}

/* Section */
.aff-section {
  margin-bottom: 24px;
}
.aff-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 16px;
}

/* Referral Link */
.aff-link-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.aff-link-box {
  flex: 1;
  display: flex;
  gap: 8px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 4px;
}
.aff-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 10px 12px;
  outline: none;
}
.aff-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #5cb8e6;
  color: #0a0e17;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.aff-copy-btn:hover {
  background: #7dcbf0;
}

/* QR Code */
.aff-qr-placeholder {
  flex-shrink: 0;
}
.aff-qr-box {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.aff-qr-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stats Grid */
.aff-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.aff-stat-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 20px;
}
.aff-stat-icon {
  margin-bottom: 12px;
}
.aff-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.aff-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #e2e8f0;
}

/* Tiers */
.aff-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aff-tier-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}
.aff-tier-card:has(.current) {
  border-color: #5cb8e6;
  box-shadow: 0 0 20px rgba(92, 184, 230, 0.1);
}
.aff-tier-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.aff-tier-badge.bronze {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
}
.aff-tier-badge.silver {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
}
.aff-tier-badge.silver.current {
  background: rgba(92, 184, 230, 0.15);
  color: #5cb8e6;
}
.aff-tier-badge.gold {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}
.aff-tier-name {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.aff-tier-rate {
  font-size: 28px;
  font-weight: 700;
  color: #5cb8e6;
  margin-bottom: 4px;
}
.aff-tier-range {
  font-size: 13px;
  color: #64748b;
}
.aff-tier-current-label {
  display: inline-block;
  margin-top: 12px;
  background: rgba(92, 184, 230, 0.15);
  color: #5cb8e6;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table */
.aff-table-wrap {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
}
.aff-table {
  width: 100%;
  border-collapse: collapse;
}
.aff-table thead th {
  background: #0d1320;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid #1e293b;
}
.aff-table tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}
.aff-table tbody tr:last-child td {
  border-bottom: none;
}
.aff-table tbody tr:hover {
  background: rgba(92, 184, 230, 0.03);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.status-badge.inactive {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
  .aff-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aff-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .aff-hero {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  .aff-hero-graphic {
    margin-left: 0;
    margin-top: 20px;
  }
  .aff-link-row {
    flex-direction: column;
  }
  .aff-stats-grid {
    grid-template-columns: 1fr;
  }
  .aff-tiers-grid {
    grid-template-columns: 1fr;
  }
  .aff-table-wrap {
    overflow-x: auto;
  }
  .aff-table {
    min-width: 600px;
  }
}
