/* ===== Painel afiliado — estilos compartilhados ===== */

/* --- Wordmark "WinRush Affiliates" --- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.brand .brand-main {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--text, #f1f5f9);
}
.brand .brand-main .brand-accent-letter {
  color: var(--accent, #c8ff3e);
}
.brand .brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.brand.brand-lg {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.brand.brand-lg .brand-main { font-size: 32px; }
.brand.brand-lg .brand-sub  { font-size: 12px; letter-spacing: .22em; }

.brand.brand-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}


.painel-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

/* --- Top tabs (Dashboard / Meus Ganhos / Minha Rede / Solicitar Link) --- */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  transition: all .15s;
}
.tabs a:hover { color: var(--text, #f1f5f9); }
.tabs a.active {
  background: var(--accent, #c8ff3e);
  color: #0a0d10;
  font-weight: 600;
}

/* --- Seletor de plataforma --- */
.plataformas {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.plataformas::-webkit-scrollbar { display: none; }
.plataformas a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}
.plataformas a.active {
  background: var(--accent, #c8ff3e);
  color: #0a0d10;
}

/* --- Cabeçalho com tema + nome --- */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.user-bar .theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.user-bar .user-info { text-align: right; }
.user-bar .user-name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.user-bar .user-role {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--text-muted, #94a3b8); margin-top: 2px;
}

/* --- Saudação --- */
.greet {
  margin-top: 22px;
}
.greet h1 { margin: 0; font-size: 28px; font-weight: 700; }
.greet .meta {
  margin-top: 6px; font-size: 13px; color: var(--text-muted, #94a3b8);
}
.greet .meta strong { color: var(--text); font-weight: 600; }
.greet .meta .cpa { color: var(--accent, #c8ff3e); font-weight: 700; }

/* --- Cards de valores --- */
.value-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 12px;
}
.value-card.highlight {
  border-color: rgba(200,255,62,.5);
  box-shadow: 0 0 0 1px rgba(200,255,62,.25) inset;
}
.value-card .label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}
.value-card .value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent, #c8ff3e);
}
.value-card .desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

/* --- "Sua conta nesta plataforma" --- */
.account-box {
  margin-top: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px;
}
.account-box h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.account-box .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}
.account-box .row:first-of-type { border-top: 0; }
.account-box .row .k { color: var(--text-muted, #94a3b8); }
.account-box .row .v { color: var(--text); text-align: right; }
.account-box .row .v.accent { color: var(--accent, #c8ff3e); }

/* --- Botões de ação --- */
.actions-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.btn-pill {
  flex: 1 1 auto;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.btn-pill.primary {
  background: var(--accent, #c8ff3e);
  color: #0a0d10;
  border-color: transparent;
}
.btn-pill.danger {
  color: #ff4e6b;
  border-color: rgba(255,78,107,.3);
}

/* --- Status badges --- */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-badge.nao_solicitado { background: rgba(255,255,255,.06); color: var(--text-muted); }
.status-badge.solicitado     { background: rgba(255,193,7,.12); color: #ffc107; }
.status-badge.aprovado       { background: rgba(46,204,113,.14); color: #2ecc71; }
.status-badge.rejeitado      { background: rgba(255,78,107,.12); color: #ff4e6b; }

/* --- Form genérico --- */
.form-section { margin-top: 24px; }
.form-section h2 {
  font-size: 15px; margin: 0 0 12px; font-weight: 600;
}
.form-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.form-grid.cols-1 { grid-template-columns: 1fr; }
.field label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 4px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text); font-size: 14px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent, #c8ff3e);
}

/* Em telas grandes, expande o painel */
@media (min-width: 768px) {
  .painel-wrap { max-width: 720px; }
}

/* "Em construção" placeholder */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 40px; margin-bottom: 8px; opacity: .5; }
