
/* Referrals — auth theme */
.teamref3.kx-ref,
body.kx-on-ref,
body.kx-on-ref .shell,
body.kx-on-ref .shell-main {
  background: radial-gradient(120% 80% at 50% 0%, #FFF1D6 0%, #FFD9A3 100%) !important;
}
body.kx-on-ref .shell-main { padding-top: 0 !important; }
.kx-ref {
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(28px + var(--nav-h, 64px)) !important;
  font-family: "Space Grotesk", Inter, sans-serif !important;
}
.kx-ref > *:not(.kx-rf) { display: none !important; }

.kx-rf { color: #14213D; }
.kx-rf-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.kx-rf-top .kh-logo { width: 40px; height: 40px; object-fit: contain; }
.kx-rf-top b {
  display: block;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.kx-rf-top span { display: block; color: #8A7A5E; font-size: 12px; }
.kx-rf-ics { margin-left: auto; display: flex; gap: 6px; }
.kx-rf-ics button {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #14213D !important;
  color: #fff !important;
  box-shadow: none !important;
}

.kx-rf-hero {
  background: #14213D;
  color: #fff;
  border-radius: 20px;
  padding: 18px 16px 16px;
  margin-bottom: 12px;
}
.kx-rf-kicker {
  color: #FF6B1A;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kx-rf-big {
  margin: 6px 0 8px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
}
.kx-rf-hero p { color: #ffffffb8; font-size: 13px; margin: 0 0 14px; }
.kx-rf-cta {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #FF8A3D 0%, #FF6B1A 100%);
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(255,107,26,.28);
}

.kx-rf-card {
  background: #fff;
  border: 1.5px solid #E5D6B5;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.kx-rf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F3E6C8;
}
.kx-rf-row:last-child { border: 0; }
.kx-rf-row > span { color: #8A7A5E; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.kx-rf-row > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kx-rf-row b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.kx-rf-row button {
  border: 0;
  background: #FFF1D6;
  color: #14213D;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}

.kx-rf-lvls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.kx-rf-lvls > div {
  background: #fff;
  border: 1.5px solid #E5D6B5;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}
.kx-rf-lvls span {
  display: block;
  color: #FF6B1A;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kx-rf-lvls b { display: block; margin: 4px 0 2px; font-size: 16px; }
.kx-rf-lvls em { color: #8A7A5E; font-style: normal; font-size: 11px; }

.kx-rf-money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.kx-rf-money span {
  display: block;
  color: #FF6B1A;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kx-rf-money b { display: block; margin-top: 3px; font-size: 15px; }

.kx-rf-tabs { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.kx-rf-tabs button {
  background: #fff;
  color: #8A7A5E;
  border: 1.5px solid #E5D6B5;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}
.kx-rf-tabs button.on {
  background: linear-gradient(180deg, #FF8A3D 0%, #FF6B1A 100%);
  border-color: transparent;
  color: #fff;
}

.kx-rf-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.kx-rf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #E5D6B5;
  border-radius: 14px;
  padding: 10px 12px;
}
.kx-rf-item i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #14213D;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 36px;
}
.kx-rf-item div { flex: 1; min-width: 0; }
.kx-rf-item b { display: block; font-size: 13px; }
.kx-rf-item span { display: block; color: #8A7A5E; font-size: 11px; }
.kx-rf-item em { font-style: normal; color: #FF6B1A; font-weight: 800; font-size: 13px; }
.kx-rf-empty {
  text-align: center;
  color: #8A7A5E;
  padding: 18px;
  background: #fff;
  border: 1.5px solid #E5D6B5;
  border-radius: 14px;
}

.kx-rf-how {
  background: #fff;
  border: 1.5px solid #E5D6B5;
  border-radius: 16px;
  padding: 16px;
}
.kx-rf-how > b {
  display: block;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin: 6px 0 12px;
}
.kx-rf-steps { display: flex; flex-direction: column; gap: 8px; }
.kx-rf-steps > div { display: flex; align-items: center; gap: 10px; }
.kx-rf-steps i {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #14213D;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.kx-rf-steps span { font-size: 13px; }

body.kx-on-ref .bottomnav {
  background: #FFF1D6 !important;
  border-top: 1px solid #E5D6B5 !important;
}
body.kx-on-ref .nav-pill { background: #14213D !important; }
body.kx-on-ref .nav-content.active,
body.kx-on-ref .nav-item:has(.active) .nav-content,
body.kx-on-ref .nav-content.active .nav-label { color: #FF6B1A !important; }

/* My Plans: drop the All / Working / Stopped pills */
.kx-mp-tabs { display: none !important; }
