/* Referrals — elegant SFE-blue dashboard (no carnival scene) */
.referral-module-shell .sfe-module-shell__body:has([data-ref-odo-dash]),
.referral-module-shell .sfe-module-shell__body:has([data-ref-odo-jobs]) {
  padding: 0;
  overflow: hidden;
}

.ref-odo-dash {
  --ref-brand: var(--sfe-primary, #007BFF);
  --ref-brand-dark: var(--sfe-primary-dark, #0056CC);
  --ref-brand-soft: var(--sfe-primary-light, #E8F4FF);
  position: relative;
  min-height: min(58vh, 520px);
  display: flex;
  flex-direction: column;
  color: #0f172a;
  background:
    linear-gradient(165deg, #f7fbff 0%, #eef5fc 42%, #e3eef9 100%);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.ref-odo-dash__hero-panel {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 0.75rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% -10%, rgba(0, 123, 255, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, #dceaf8 0%, transparent 100%);
  border-bottom: 1px solid rgba(0, 86, 204, 0.08);
}

.ref-odo-dash__player {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ref-odo-dash__stat {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  min-width: 8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin-top: 1.35rem;
}

.ref-odo-dash__stat-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.ref-odo-dash__stat-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.ref-odo-dash__star {
  width: 1rem;
  height: 1rem;
  color: var(--ref-brand);
  opacity: 0.9;
}

.ref-odo-dash__avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.ref-odo-dash__avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #f3f8fe 100%);
  color: var(--ref-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid rgba(0, 123, 255, 0.28);
  box-shadow:
    0 0 0 4px rgba(0, 123, 255, 0.08),
    0 10px 22px rgba(15, 23, 42, 0.08);
}

.ref-odo-dash__level {
  margin-top: 0.15rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ref-brand-dark);
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

.ref-odo-dash__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem 1.75rem;
}

.ref-odo-dash__counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.ref-odo-dash__counter {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ref-odo-dash__counter strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ref-brand-dark);
}

.ref-odo-dash__counter span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}

.ref-odo-dash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.ref-odo-dash__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.ref-odo-dash__btn--primary {
  background: var(--ref-brand);
  color: #fff;
}

.ref-odo-dash__btn--primary:hover {
  background: var(--ref-brand-dark);
  color: #fff;
}

.ref-odo-dash__btn--outline {
  background: #fff;
  color: var(--ref-brand-dark);
  border-color: rgba(0, 86, 204, 0.28);
}

.ref-odo-dash__btn--outline:hover {
  background: var(--ref-brand-soft);
  color: var(--ref-brand-dark);
}

/* Jobs / vacantes */
.ref-odo-jobs {
  min-height: min(68vh, 580px);
  display: flex;
  flex-direction: column;
}

.ref-odo-jobs__search {
  position: relative;
  max-width: 420px;
  margin: 1rem auto 0.5rem;
  width: calc(100% - 2rem);
}

.ref-odo-jobs__search input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.4rem;
  border: 1px solid var(--sfe-border, #d8d8d8);
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
}

.ref-odo-jobs__search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: #888;
  pointer-events: none;
}

.ref-odo-jobs__empty {
  position: relative;
  flex: 1;
  min-height: 360px;
  margin: 0.5rem 1rem 1rem;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 123, 255, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #f4f9ff 0%, #e8f1fb 100%);
  border: 1px solid rgba(0, 86, 204, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  gap: 0.75rem;
}

.ref-odo-jobs__empty-sky,
.ref-odo-jobs__empty-rays,
.ref-odo-jobs__empty-skyline,
.ref-odo-jobs__heroes {
  display: none !important;
}

.ref-odo-jobs__empty-msg {
  position: relative;
  z-index: 2;
  margin: 0 1rem;
  text-align: center;
  color: #0f172a;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  letter-spacing: 0.01em;
  max-width: 28rem;
}

.ref-odo-jobs__empty-hint {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

.ref-odo-jobs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem 1.25rem 1.5rem;
}

.ref-odo-jobs__card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sfe-border, #ddd);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.ref-odo-jobs__card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.ref-odo-jobs__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ref-odo-jobs__card p {
  margin: 0;
  color: #666;
  font-size: 0.875rem;
}

.ref-odo-stub {
  padding: 1.25rem 1.5rem 2rem;
}

.ref-odo-stub__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .ref-odo-dash__player {
    gap: 0.65rem;
  }
  .ref-odo-dash__stat {
    min-width: 5.75rem;
    padding: 0.5rem 0.65rem;
    margin-top: 0.85rem;
  }
  .ref-odo-dash__stat-value {
    font-size: 1.15rem;
  }
  .ref-odo-dash__avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: 14px;
  }
  .ref-odo-dash__counters {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ref-odo-dash__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ref-odo-dash__btn {
    width: 100%;
  }
}
