/* BetZap - Indicacoes V3
   Layout denso em duas colunas (referencia visual: pagina de afiliados arena10bet)
   Escopo: classes .refx-* ; nao altera as regras antigas .referral-*  */

body:not(.admin) .referral-page.refx {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 0 40px !important;
  color: #eaf6ef !important;
  font-family: Montserrat, system-ui, sans-serif !important;
}

body:not(.admin) .refx *,
body:not(.admin) .refx *::before,
body:not(.admin) .refx *::after {
  box-sizing: border-box !important;
}

/* ---------- cabecalho ---------- */
.refx-page-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 14px;
}

.refx-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6f8c7e;
}

.refx-page-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #fff;
}

/* ---------- abas da conta ---------- */
.refx-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid #1d3a2d;
  border-radius: 12px;
  background: #0a1712;
  -webkit-overflow-scrolling: touch;
}

.refx-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #9db8aa;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.refx-tab:hover {
  color: #e6f5ec;
  background: #12241c;
}

.refx-tab.is-active {
  background: #00dda0;
  color: #04140e;
  font-weight: 800;
}

/* ---------- grade principal ---------- */
.refx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* a coluna de estatisticas acompanha a altura da coluna esquerda
   e mantem o botao de resgate ancorado no rodape do cartao */
.refx-aside {
  display: flex;
  flex-direction: column;
}

.refx-aside .refx-cta {
  margin-top: auto;
}

.refx-card {
  border: 1px solid #1d3a2d;
  border-radius: 14px;
  background: #0a1712;
  padding: 20px;
}

/* ---------- coluna esquerda ---------- */
.refx-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #00dda0;
}

.refx-h2 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.3px;
  color: #fff;
}

.refx-desc {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #a8c4b6;
}

.refx-desc b {
  color: #fff;
}

.refx-warn {
  display: block;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid #45632f;
  border-radius: 9px;
  background: #16240f;
  color: #d3e8b0;
  font-size: 11.5px;
  line-height: 1.5;
}

.refx-label {
  display: block;
  margin: 0 0 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7e9c8d;
}

.refx-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 14px;
  border: 1px solid #234436;
  border-radius: 11px;
  background: #0e1d16;
}

.refx-field input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0 !important;
  background: transparent !important;
  color: #dff3ea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: .2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refx-field input:focus {
  outline: none;
  color: #fff;
}

.refx-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: #00dda0;
  color: #04140e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .16s ease;
}

.refx-copy:hover {
  filter: brightness(1.07);
}

.refx-copy:disabled {
  opacity: .6;
  cursor: default;
}

.refx-share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.refx-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #234436;
  border-radius: 10px;
  background: #0e1d16;
  color: #cfe6da;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}

.refx-share a:hover {
  border-color: #2e5a45;
  color: #fff;
}

/* ---------- coluna direita ---------- */
.refx-card-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
}

.refx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.refx-stat {
  padding: 12px;
  border: 1px solid #1f3b2e;
  border-radius: 10px;
  background: #0c1a14;
}

.refx-stat span {
  display: block;
  margin-bottom: 6px;
  min-height: 26px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #7e9c8d;
}

.refx-stat b {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

.refx-stat b.accent {
  color: #00dda0;
}

.refx-stat small {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.4;
  color: #6f8c7e;
}

.refx-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #00dda0;
  color: #04140e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: filter .16s ease;
}

.refx-cta:hover {
  filter: brightness(1.07);
}

.refx-cta:disabled {
  opacity: .65;
  cursor: default;
}

.refx-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border: 1px solid #234436;
  border-radius: 10px;
  background: transparent;
  color: #cfe6da;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

.refx-ghost:hover {
  border-color: #2e5a45;
  color: #fff;
}

.refx-note {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  color: #6f8c7e;
}

/* ---------- como funciona ---------- */
.refx-how {
  margin-top: 14px;
}

.refx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.refx-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #1f3b2e;
  border-radius: 10px;
  background: #0c1a14;
}

.refx-step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #103e2b;
  color: #00dda0;
  font-size: 11px;
  font-weight: 800;
}

.refx-steps h3 {
  margin: 0 0 3px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
}

.refx-steps p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #96b3a5;
}

/* ---------- historico ---------- */
.refx-history {
  margin-top: 14px;
}

.refx-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #1f3b2e;
  border-radius: 10px;
  background: #0c1a14;
}

.refx-row-main {
  min-width: 0;
}

.refx-row-main strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.refx-row-main small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8fae9f;
}

.refx-row-side {
  flex: 0 0 auto;
  text-align: right;
}

.refx-row-side b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #eaf6ef;
}

.refx-row-side b.accent {
  color: #00dda0;
}

.refx-claim {
  margin-top: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #00dda0;
  color: #04140e;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .16s ease;
}

.refx-claim:hover {
  filter: brightness(1.07);
}

.refx-empty {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  font-size: 12px;
  color: #8fae9f;
}

.refx-foot {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
  color: #6f8c7e;
}

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .refx-grid {
    grid-template-columns: 1fr;
  }

  .refx-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .refx-page-head h1 {
    font-size: 21px;
  }

  .refx-h2 {
    font-size: 18px;
  }

  .refx-card {
    padding: 15px;
  }

  .refx-stat b {
    font-size: 17px;
  }

  .refx-field {
    flex-wrap: nowrap;
  }

  .refx-copy {
    padding: 0 12px;
    font-size: 11.5px;
  }
}
