/* ==================== REFERRAL ENGINE ==================== */

.ref-dashboard {
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.ref-header {
  text-align: center;
  margin-bottom: 28px;
}

.ref-title {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 6px;
}

.ref-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* ==================== LINK CARD ==================== */

.ref-link-card {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.ref-link-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 212, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

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

.ref-link-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 10px 12px;
  outline: none;
}

.ref-copy-btn {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border: none;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.ref-copy-btn:hover { opacity: 0.9; }

.ref-code {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.ref-code strong {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Mono', monospace;
}

/* ==================== REWARD CARDS ==================== */

.ref-rewards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ref-reward-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.ref-reward-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.ref-reward-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.ref-reward-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.ref-reward-detail {
  text-align: left;
}

.ref-reward-line {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 3px;
}

.ref-highlight {
  color: #34d399;
  font-weight: 600;
}

/* ==================== SHARE ==================== */

.ref-share-section {
  margin-bottom: 24px;
}

.ref-share-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.ref-share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-share-btn {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
}

.ref-share-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

.ref-share-twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.ref-share-reddit:hover { border-color: #ff4500; color: #ff4500; }
.ref-share-discord:hover { border-color: #5865f2; color: #5865f2; }
.ref-share-email:hover { border-color: #34d399; color: #34d399; }

/* ==================== STATS ==================== */

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

.ref-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.ref-stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.ref-stat-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

/* ==================== HISTORY ==================== */

.ref-history {
  margin-top: 24px;
}

.ref-history-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px;
}

.ref-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ref-history-icon { font-size: 16px; flex-shrink: 0; }

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

.ref-history-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.ref-history-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.ref-history-status {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.ref-history-status.is-converted {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.ref-history-status.is-pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

/* ==================== EMPTY ==================== */

.ref-empty {
  text-align: center;
  padding: 32px;
}

.ref-empty-icon { font-size: 32px; margin-bottom: 8px; }

.ref-empty-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 480px) {
  .ref-rewards-grid { grid-template-columns: 1fr; }
  .ref-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
