/* === Referral Link Modern UI === */
/* Desain: Neumorphism + Glassmorphism (Fintech Look) */

:root {
  --primary: #4f46e5;
  --primary-hover: #3730a3;
  --success: #10b981;
  --wa: #25D366;
  --bg: #f8f9ff;
  --card-bg: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 0, 0, 0.05);
  --text: #1f2937;
  --text-light: #6b7280;
  --radius: 18px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Mode gelap otomatis mengikuti preferensi perangkat */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.8);
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  }
}

body {
  background: var(--bg);
  font-family: "Inter", "SF Pro Display", system-ui, sans-serif;
}

/* === CARD WRAPPER === */
.referral-card {
  max-width: 600px;
  margin: 40px auto;
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease;
}

/* === TITLE === */
.referral-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.referral-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* === INPUT === */
.referral-link-input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

@media (prefers-color-scheme: dark) {
  .referral-link-input {
    background: rgba(51, 65, 85, 0.6);
    color: #f9fafb;
  }
}

.referral-link-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* === BUTTONS === */
.referral-btns {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.referral-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.referral-btn:active {
  transform: scale(0.96);
}

/* Warna tombol */
.referral-btn.copy {
  background: var(--primary);
  color: #fff;
}
.referral-btn.copy:hover {
  background: var(--primary-hover);
}

.referral-btn.share {
  background: var(--success);
  color: #fff;
}
.referral-btn.share:hover {
  background: #059669;
}

.referral-btn.wa {
  background: var(--wa);
  color: #fff;
}
.referral-btn.wa:hover {
  background: #1DA955;
}

/* === EFFECTS & ANIMATION === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .referral-card {
    padding: 24px 18px;
  }
  .referral-card h3 {
    font-size: 1.25rem;
  }
  .referral-btn {
    flex: 1;
    justify-content: center;
  }
}
