/**
 * ============================================================
 *  YNA SWHD - public/css/referral.css
 * ============================================================
 * Stylesheet Modern, Sleek, Ringkas & Padat untuk Dashboard Referral
 * Zero Emojis | High Contrast | Anti-Slop
 * ============================================================
 */

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #070a13;
  color: #f1f5f9;
}

/* Card Styling - Sleek & Compact */
.ref-card {
  background-color: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ref-card:hover {
  border-color: #334155;
}

/* Chest Card - Compact, Dense, Modern */
.chest-card {
  background-color: #0d1424;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 0.875rem 1rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
}
.chest-card:hover {
  border-color: #334155;
  background-color: #0f182c;
  transform: translateY(-1px);
}

.chest-card.state-ready {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(145deg, #121a2d, #1a1728);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.chest-card.state-claimed {
  border-color: rgba(16, 185, 129, 0.35);
  background-color: #0a1320;
}

.chest-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-ref-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-ref-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-ref-claim {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  font-weight: 800;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  transition: all 0.2s ease;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.btn-ref-claim:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-ref-outline {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-ref-outline:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #475569;
}

/* Progress Bar */
.ref-progress-bg {
  background-color: #1e293b;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}
.ref-progress-fill {
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

/* Modals */
.ref-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ref-modal-overlay.hidden,
.hidden {
  display: none !important;
}

.ref-modal-content {
  background-color: #0b1120;
  border: 1px solid #334155;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}
