*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}
/* ═══════════════════════════════════════════════════════════════
   Tela de Login — layout escuro (escopo .lg)
   Isolado do Login.css, que segue em uso pelo Register.
═══════════════════════════════════════════════════════════════ */
.lg {
  --lg-bg:      #2b2b2b;
  --lg-green:   #45b757;
  --lg-green-2: #3aa84b;
  --lg-purple:  #7d5fe0;
  --lg-muted:   #8d8d8d;
  --lg-input:   #ffffff;
  --lg-text:    #ffffff;

  min-height: 100vh;
  width: 100%;
  background: var(--lg-bg) url('/images/login-bg.png') center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 320px 16px 40px;
}

.lg__wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

/* Título acessível, visível só para leitores de tela */
.lg .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══ Banner de aviso ═══ */
.lg__banner {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 26px;
}

.lg__banner p {
  margin: 0;
  color: var(--lg-green-2);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ═══ Aba ═══ */
.lg__tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
}

.lg__tab {
  position: relative;
  border: none;
  background: transparent;
  color: var(--lg-muted);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0 0 9px;
  cursor: pointer;
}

.lg__tab.is-active {
  color: var(--lg-green);
}

.lg__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--lg-green);
}

/* ═══ Formulário ═══ */
.lg__form {
  display: flex;
  flex-direction: column;
}

.lg__label {
  display: block;
  color: var(--lg-green);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 9px;
}

/* Marcador de campo opcional, ao lado do rótulo */
.lg__opt {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--lg-muted);
}

.lg__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lg-input);
  border-radius: 8px;
  height: 50px;
  padding: 0 12px;
  margin-bottom: 22px;
}

/* Texto de apoio abaixo de um campo */
.lg__hint {
  margin: -16px 0 20px;
  font-size: 0.74rem;
  color: #9a9a9a;
  line-height: 1.4;
}

.lg__field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: #1f1f1f;
  height: 100%;
}

.lg__field input::placeholder { color: #9e9e9e; }

/* Prefixo de DDI (seletor de código do país) */
.lg__ddi-wrap {
  position: relative;
  flex-shrink: 0;
}

.lg__ddi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f1f1f;
  padding-right: 10px;
  border: none;
  border-right: 1px solid #e3e3e3;
  background: transparent;
  flex-shrink: 0;
  height: 24px;
  cursor: pointer;
  white-space: nowrap;
}

.lg__ddi svg { width: 14px; height: 14px; color: #6b6b6b; flex-shrink: 0; }

.lg__ddi-list {
  position: absolute;
  top: calc(100% + 6px);
  left: -12px;
  z-index: 40;
  width: 220px;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.lg__ddi-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.86rem;
  color: #1f1f1f;
  cursor: pointer;
  text-align: left;
}

.lg__ddi-item:hover,
.lg__ddi-item.is-active { background: #f0f0f0; }

.lg__ddi-flag { font-size: 1.05rem; flex-shrink: 0; }
.lg__ddi-country { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg__ddi-code { color: #6b6b6b; flex-shrink: 0; }

/* Ícone à esquerda */
.lg__ic {
  display: grid;
  place-items: center;
  color: #9e9e9e;
  flex-shrink: 0;
}

.lg__ic svg { width: 19px; height: 19px; }

/* Olho (mostrar senha) */
.lg__eye {
  border: none;
  background: transparent;
  color: #9e9e9e;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.lg__eye svg { width: 20px; height: 20px; }
.lg__eye:hover { color: #6b6b6b; }

/* ═══ Aceite dos termos ═══ */
.lg__terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 22px;
  user-select: none;
}

.lg__terms input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lg__check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #6b6b6b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lg__check svg {
  width: 11px;
  height: 11px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.lg__terms input:checked + .lg__check {
  background: var(--lg-purple);
  border-color: var(--lg-purple);
}

.lg__terms input:checked + .lg__check svg { opacity: 1; }

.lg__terms-txt {
  font-size: 0.76rem;
  color: #c9c9c9;
  line-height: 1.45;
}

.lg__terms-txt a,
.lg__terms-txt .lg__terms-link {
  color: var(--lg-green);
  text-decoration: none;
}

.lg__terms-txt a:hover { text-decoration: underline; }

/* ═══ Aviso de erro / sucesso (na própria página) ═══ */
.lg__alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  animation: lg-alert-in 0.24s ease;
}

.lg__alert svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

.lg__alert--error {
  background: rgba(246, 70, 93, 0.12);
  border: 1px solid rgba(246, 70, 93, 0.38);
  color: #ff8fa0;
}

.lg__alert--success {
  background: rgba(69, 183, 87, 0.12);
  border: 1px solid rgba(69, 183, 87, 0.42);
  color: #7fe08f;
}

@keyframes lg-alert-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ Botão principal ═══ */
.lg__btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 9px;
  background: #0f1115;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.lg__btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.lg__btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ═══ Divisor ═══ */
.lg__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 18px;
}

.lg__divider::before,
.lg__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #454545;
}

.lg__divider span {
  font-size: 0.78rem;
  color: var(--lg-muted);
  white-space: nowrap;
}

/* ═══ Login social ═══ */
.lg__social {
  display: flex;
  justify-content: center;
}

.lg__google {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lg__google:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.lg__google svg { width: 24px; height: 24px; }

/* ═══ Link para cadastro ═══ */
.lg__alt {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #b0b0b0;
}

.lg__alt a {
  color: var(--lg-green);
  font-weight: 700;
  text-decoration: none;
}

.lg__alt a:hover { text-decoration: underline; }

/* ═══ Desktop: largura centralizada, sem cartão escuro (segue o fundo da página) ═══ */
@media (min-width: 720px) {
  .lg--reg {
    align-items: center;
    padding: 40px 20px;
  }

  .lg--reg .lg__wrap {
    max-width: 420px;
  }

  .lg--login .lg__wrap {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ═══ Estilo escuro específico da tela de cadastro (foto de referência) ═══ */
.lg--reg {
  background: var(--lg-bg) url('/images/register-background.png') center / cover no-repeat;
}

.lg--login {
  padding-top: 210px;
}

.lg--reg .lg__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.lg--reg .lg__tabs { margin-bottom: 0; }

.lg--reg .lg__connect-link {
  color: var(--lg-green);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.lg--reg .lg__connect-link:hover { color: var(--lg-green-2); }

.lg--reg .lg__label { display: none; }
.lg--reg .lg__hint { display: none; }

.lg--reg .lg__check {
  border-color: #6b6b6b;
}
.lg--reg .lg__terms input:checked + .lg__check {
  background: var(--lg-green);
  border-color: var(--lg-green);
}

.lg--reg .lg__btn {
  background: #0f1115;
  color: #ffffff;
}
.lg--reg .lg__btn:hover:not(:disabled) { filter: brightness(1.15); }

/* ═══ Intro de marca ao logar ═══ */
.lg-intro {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #0b1220;
  animation: lgIntroFade 0.35s ease both;
}

.lg-intro__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 70%);
  filter: blur(6px);
  animation: lgIntroGlow 1.8s ease-in-out infinite;
}

.lg-intro__mark {
  position: relative;
  width: 116px;
  height: 116px;
  filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.55));
  animation: lgIntroPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lg-intro__word {
  position: relative;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 1px;
  opacity: 0;
  animation: lgIntroWord 0.6s ease 0.35s forwards;
}
.lg-intro__word-a { color: #a78bfa; }
.lg-intro__word-b { color: #ffffff; }

@keyframes lgIntroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lgIntroPop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes lgIntroGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes lgIntroWord {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ── Sino de notificações (reutilizável em qualquer página) ── */
.bd-bell {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #3a3f47;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.bd-bell:hover {
  background: #f3f5f7;
}

.bd-bell svg {
  width: 21px;
  height: 21px;
}

/* ── Painel de Notificações (drawer de baixo pra cima) ── */
.bd-notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(16, 24, 40, 0.4);
  animation: bd-notif-fade 0.2s ease;
}

@keyframes bd-notif-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bd-notif-panel {
  width: 100%;
  max-width: 460px;
  max-height: min(80vh, 640px);
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(16, 24, 40, 0.25);
  animation: bd-notif-in 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bd-notif-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.bd-notif-handle {
  flex-shrink: 0;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #e2e5e9;
}

.bd-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 16px;
  border-bottom: 1px solid #eef0f2;
  flex-shrink: 0;
}

.bd-notif-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #16181d;
}

.bd-notif-close {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #3a3f47;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bd-notif-close:hover { background: #f3f5f7; }
.bd-notif-close svg { width: 22px; height: 22px; }

.bd-notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 16px;
  -webkit-overflow-scrolling: touch;
}

.bd-notif-item {
  padding: 18px 2px;
  border-bottom: 1px dashed #e6e9ed;
}

.bd-notif-body {
  min-width: 0;
  flex: 1;
}

.bd-notif-item-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #16181d;
}

.bd-notif-item-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #6b7280;
  word-break: break-word;
}

.bd-notif-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #9aa1a9;
}

.bd-notif-foot svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bd-notif-ago::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c3c8ce;
  margin-right: 8px;
  vertical-align: middle;
}

.bd-notif-more {
  flex-shrink: 0;
  margin: 0;
  border: none;
  border-top: 1px solid #eef0f2;
  background: #ffffff;
  color: #16181d;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bd-notif-more:hover { background: #f7f8fa; }

.bd-notif-empty {
  text-align: center;
  padding: 48px 20px;
  color: #9aa1a9;
  font-size: 0.9rem;
}
/* ─── Variáveis (compatibilidade com Dashboard.css) ────────────── */
:root {
  --sb-bg:          #ffffff;
  --sb-border:      #eeeff4;
  --sb-text:        #1e1b4b;
  --sb-muted:       #9ca3af;
  --sb-hover:       #f5f3ff;
  --sb-active-bg:   #7c3aed;
  --sb-active-text: #ffffff;
  --sb-logo-bg:     linear-gradient(135deg, #7c3aed, #6d28d9);

  --gold-primary:   #7c3aed;
  --gold-dark:      #6d28d9;
  --gold-gradient:  linear-gradient(135deg, #7c3aed, #6d28d9);
  --dash-border:    #eeeff4;
  --dash-surface:   #ffffff;
}

/* ─── Sidebar container ─────────────────────────────────────────── */
.dash-sidebar {
  position: fixed !important;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 272px !important;
  background: var(--sb-bg) !important;
  border-right: 1px solid var(--sb-border) !important;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px 14px 16px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 4px 0 20px rgba(79, 70, 229, 0.07);
}

.dash-sidebar.open {
  transform: translateX(0);
}

/* ─── Header: logo + sino ───────────────────────────────────────── */
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 18px;
  border-bottom: 1px solid var(--sb-border);
  margin-bottom: 8px;
}

.sb-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sb-logo-bg);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sb-logo svg {
  width: 20px;
  height: 20px;
}

.sb-logo img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}

/* ─── Navegação — seletores com .dash-sidebar para ganhar em especificidade ── */
.dash-sidebar .dash-nav {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-top: 0 !important;
  padding: 6px 0;
}

.dash-sidebar .dash-nav-item {
  width: 100%;
  border: none !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #374151 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.dash-sidebar .dash-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color 0.18s ease;
}

.dash-sidebar .dash-nav-group-title {
  margin: 14px 0 4px;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.dash-sidebar .dash-nav-group-title:first-child { margin-top: 0; }

.dash-sidebar .dash-nav-item:hover {
  background: var(--sb-hover) !important;
  color: #7c3aed !important;
  border-color: transparent !important;
}

.dash-sidebar .dash-nav-item:hover svg {
  color: #7c3aed;
}

/* ── Item ativo: pill sólido indigo ─────────────────────────────── */
.dash-sidebar .dash-nav-item.active {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.dash-sidebar .dash-nav-item.active svg {
  color: #ffffff !important;
}

/* ─── Rodapé ────────────────────────────────────────────────────── */
.dash-sidebar .dash-foot {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--sb-border) !important;
  margin-top: auto;
}

.dash-sidebar .dash-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none !important;
  background: var(--sb-hover) !important;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.dash-sidebar .dash-account:hover {
  background: #ede9fe !important;
}

.dash-sidebar .dash-account__av {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px;
  background: var(--gold-gradient) !important;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-sidebar .dash-account__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-sidebar .dash-account__txt strong {
  font-size: 0.86rem;
  color: #1e1b4b;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar .dash-account__txt small {
  font-size: 0.72rem;
  color: var(--sb-muted);
}

.dash-sidebar .dash-logout.side {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100%;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
  background: rgba(220, 38, 38, 0.06) !important;
  color: #ef4444 !important;
  border-radius: 12px;
  padding: 11px 14px !important;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.dash-sidebar .dash-logout.side:hover {
  background: rgba(220, 38, 38, 0.12) !important;
}

.dash-sidebar .dash-logout.side svg {
  width: 18px;
  height: 18px;
  color: #ef4444 !important;
}

/* ─── Overlay (mobile) ──────────────────────────────────────────── */
.dash-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

/* ─── Ícones ─────────────────────────────────────────────────────── */
.icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Desktop: sidebar removida — navegação pela barra inferior, igual ao celular ──
   :not(.admin-dash-sidebar) para não afetar o AdminSidebar, que reaproveita a classe .dash-sidebar ── */
@media (min-width: 860px) {
  .dash-sidebar:not(.admin-dash-sidebar) {
    display: none !important;
  }

  .dash-overlay {
    display: none;
  }
}

/* ─── Barra inferior (mobile) ────────────────────────────────────── */
.dash-bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: #ffffff;
  border: 1px solid var(--sb-border);
  display: flex;
  padding: 6px 4px;
  box-shadow: 0 -4px 20px rgba(79, 70, 229, 0.1);
  z-index: 1000;
  gap: 0;
  border-radius: 18px;
}

.dash-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--sb-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  border-radius: 12px;
  margin: 0 2px;
}

.dash-bottom-nav button svg {
  width: 20px;
  height: 20px;
  color: var(--sb-muted);
}

.dash-bottom-nav button.active {
  background: #7c3aed;
  color: #ffffff;
}

.dash-bottom-nav button.active svg {
  color: #ffffff;
}

:root {
  --dash-bg: #ffffff;
  --dash-card: #ffffff;
  --dash-card-2: #f5f5f5;
  --dash-border: #e0e0e0;
  --dash-text: #333333;
  --dash-muted: #666666;
  --dash-gold: #4f46e5;
  --dash-gold-dim: rgba(79, 70, 229, 0.12);
  --dash-green: #34d399;
  --dash-red: #f87171;
}

.dash-app {
  min-height: 100vh;
  padding: 0 16px 120px;
  background: #ffffff;
  color: #333;
  position: relative;
  z-index: 2;
}

.dash-main {
  position: relative;
  z-index: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: inherit;
}


.dash-content {
  display: grid;
  gap: 12px;
  padding-top: env(safe-area-inset-top, 0);
}

/* ── Sidebar (Titan Labs theme) ── */
.dash-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 272px;
  background: #ffffff;
  border-right: 1px solid var(--dash-border);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.dash-sidebar.open {
  transform: translateX(0);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid var(--dash-border);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
}

.brand-logo svg { width: 20px; height: 20px; }

.dash-brand__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-brand strong {
  display: block;
  font-size: 0.98rem;
  color: var(--dash-text);
}

.dash-brand small {
  color: var(--dash-muted);
  font-size: 0.78rem;
}

.dash-nav {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.dash-nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--dash-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
}

.dash-nav-item.active,
.dash-nav-item:hover {
  background: #fde3e6;
  border-color: #f6cdd2;
  color: #e23744;
}

.dash-logout.side {
  width: 100%;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #b91c1c;
  border-radius: 12px;
  padding: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Rodapé do menu lateral (conta + idioma + tema + sair) ── */
.dash-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--dash-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-account:hover { background: #f7f8fa; border-color: #eef0f2; }

.dash-account__av {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #f0444f, #cf2436);
}

.dash-account__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dash-account__txt strong { font-size: 0.9rem; font-weight: 700; color: var(--dash-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-account__txt small { font-size: 0.76rem; color: var(--dash-muted); }

.dash-pref {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eef0f2;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px 8px 4px 12px;
}

.dash-pref__ic { display: grid; place-items: center; color: #6b7280; flex-shrink: 0; }
.dash-pref__ic svg { width: 18px; height: 18px; }

.dash-pref__sel {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dash-text);
  padding: 8px 4px;
  cursor: pointer;
  appearance: auto;
}

.dash-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  border: none;
  background: rgba(49, 46, 129, 0.4);
}

/* ── Titan Labs Hero Banner ── */
.trk-hero-banner {
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100vw;
  height: 200px;
  margin-left: calc(50% - 50vw);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    linear-gradient(135deg, #4f46e5 0%, #6d28d9 50%, #7c3aed 100%);
  color: #fff;
}

/* Pluma marca-d'água */
.trk-hero-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  transform: rotate(10deg);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z'/%3E%3Cline x1='16' y1='8' x2='2' y2='22'/%3E%3Cline x1='17.5' y1='15' x2='9' y2='15'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.trk-hero-banner > * {
  position: relative;
  z-index: 1;
}

.trk-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 70%;
}

.trk-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trk-hero-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.trk-hero-brand-mark svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.trk-hero-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}

.trk-hero-welcome {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.trk-hero-tag {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.trk-hero-vip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trk-hero-vip-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trk-hero-team-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.trk-hero-team-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.3px;
}

.trk-hero-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.trk-hero-sub {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.trk-hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes welcome-banner-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ── Notice marquee bar ── */
.dash-notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: rgba(30, 27, 75, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 10px 12px;
  overflow: hidden;
}

.dash-notice-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--dash-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-notice-icon {
  width: 14px;
  height: 14px;
  color: #1e1b4b;
}

.dash-notice-marquee {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.dash-notice-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  color: var(--dash-muted);
  font-size: 0.78rem;
  animation: dash-marquee 24s linear infinite;
  will-change: transform;
}

.dash-notice-sep {
  color: var(--dash-gold);
  font-weight: 700;
}

@keyframes dash-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  gap: 10px;
}

.mini-card {
  background: rgba(30, 27, 75, 0.9);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 14px;
  padding: 14px;
}

.mini-card h3 {
  margin: 8px 0 4px;
  font-size: 0.96rem;
  color: #eef2ff;
}

.mini-card p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 0.86rem;
}

.money-value {
  color: var(--dash-gold) !important;
  font-weight: 800;
  font-size: 1.05rem !important;
  letter-spacing: 0.2px;
}

/* ── Notice bar (Vant style) ── */
.dash-notice-bar-vant {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 0;
  padding: 10px 14px;
  overflow: hidden;
  margin-top: -1px;
  margin-left: -4px;
  margin-right: -4px;
}

.dash-notice-bar-vant .dash-notice-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 6px;
}

.dash-notice-bar-vant .dash-notice-icon {
  width: 16px;
  height: 16px;
  color: #7c3aed;
}

.dash-notice-bar-vant .dash-notice-marquee {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.dash-notice-bar-vant .dash-notice-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  color: #312e81;
  font-size: 0.82rem;
  animation: van-marquee 150s linear infinite;
  will-change: transform;
}

@keyframes van-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Landscape action buttons ── */
.landscape-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landscape-btn {
  position: relative;
  min-height: 66px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: left;
  padding: 0;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.landscape-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05));
  z-index: 1;
}

.landscape-btn span {
  display: inline-block;
  padding: 22px 105px 24px 30px;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2;
}

/* ── Envelope vermelho modal ── */
@keyframes sparkle-pop {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.4) rotate(180deg); opacity: 1; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes envelope-bounce-in {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(5deg); opacity: 1; }
  80% { transform: scale(0.95) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes badge-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.envelope-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(49, 46, 129, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.envelope-modal-stack {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(100dvh - 32px);
}

/* Argola + correntinha "segurando" o cartão, como um chaveiro */
.envelope-keychain {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -2px;
}

.envelope-keychain-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #d9d9d9;
  background: transparent;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.envelope-keychain-chain {
  width: 3px;
  height: 16px;
  background: #d9d9d9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Cartão "recortado": borda grossa cor de papel, recortada em zigue-zague via clip-path inline */
.envelope-modal-card {
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fdf6e3;
  border: 8px solid #fdf6e3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  animation: envelope-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Foto inteira (sem cortes) — a arte já tem o título embutido */
.envelope-photo {
  display: block;
  width: 100%;
  height: auto;
}

.envelope-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: #6b5620;
  cursor: pointer;
  padding: 0;
}
.envelope-close-x svg { width: 18px; height: 18px; display: block; }

/* Formulário sobreposto na área vazia (parte de baixo) da foto */
.envelope-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.envelope-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7b94a, #e8912a);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 20px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 6px 18px rgba(232, 145, 42, 0.4);
}

.envelope-btn:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}

.envelope-btn:active {
  transform: scale(0.97);
}

.envelope-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.envelope-code-input-wrap {
  margin-bottom: 16px;
}

@keyframes envelope-success-pop {
  0% { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  80% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes envelope-success-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
}

.envelope-success-panel {
  margin-bottom: 14px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(180, 140, 40, 0.3);
  backdrop-filter: blur(2px);
  animation: envelope-success-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.envelope-success-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  animation: envelope-success-badge-glow 1.8s ease-in-out infinite;
}

.envelope-success-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(22, 163, 74, 0.35));
}

.envelope-success-title {
  margin: 0 0 6px;
  color: #3a2c12;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.envelope-success-message {
  margin: 0;
  color: #5a4620;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.envelope-code-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(138, 106, 36, 0.3);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  color: #3a2c12;
  background: rgba(202, 162, 74, 0.28);
  outline: none;
  transition: border-color 0.2s;
}

.envelope-code-input:focus {
  border-color: #8a6a24;
}

.envelope-code-input::placeholder {
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #8a7a4e;
}

/* ── Cartão de erro ao resgatar cupom (código inválido/esgotado) ── */
.envelope-error-card {
  width: 100%;
  background: linear-gradient(180deg, #fdf6e3 0%, #f7ecc6 55%, #f3e2a8 100%);
  border: 1px solid rgba(180, 140, 40, 0.35);
  border-radius: 20px;
  padding: 30px 24px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: envelope-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.envelope-error-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

.envelope-error-title {
  margin: 0 0 20px;
  color: #3a2c12;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.envelope-error-close {
  margin: 18px auto 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(20, 20, 30, 0.35);
  color: #ffffff;
  cursor: pointer;
}
.envelope-error-close svg { width: 18px; height: 18px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Landscape action buttons ── */
.landscape-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landscape-btn.deposit {
  background: linear-gradient(135deg, #4f46e5, #a78bfa);
}

.landscape-btn.withdraw {
  background: linear-gradient(135deg, #4f46e5, #a78bfa);
}

.landscape-btn.deposit::after,
.landscape-btn.withdraw::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 52%);
  background-repeat: no-repeat;
  background-position: 78% 45%;
  background-size: 150px 150px;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.deposit-bg-dollars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.deposit-bg-dollars span {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
  animation: deposit-bg-float 5s ease-in-out infinite;
}

.deposit-bg-dollars span:nth-child(1) { top: 8px; left: 44%; font-size: 18px; animation-delay: 0s; }
.deposit-bg-dollars span:nth-child(2) { top: 30px; left: 58%; font-size: 24px; animation-delay: 0.5s; }
.deposit-bg-dollars span:nth-child(3) { top: 52px; left: 40%; font-size: 20px; animation-delay: 1s; }
.deposit-bg-dollars span:nth-child(4) { top: 14px; left: 70%; font-size: 16px; animation-delay: 1.5s; }
.deposit-bg-dollars span:nth-child(5) { top: 48px; left: 74%; font-size: 18px; animation-delay: 2s; }
.deposit-bg-dollars span:nth-child(6) { top: 28px; left: 84%; font-size: 22px; animation-delay: 2.5s; }

.deposit-visual {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 2;
}

.deposit-coin {
  position: absolute;
  right: 0;
  top: 50%;
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(79, 70, 229, 0.4));
  animation: deposit-coin-float 1.8s ease-in-out infinite;
}

@keyframes deposit-coin-float {
  0%, 100% { transform: translateY(-50%) translateX(0) rotate(-6deg); }
  50% { transform: translateY(-62%) translateX(-6px) rotate(6deg); }
}

@keyframes deposit-bg-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-4px) scale(1.06); opacity: 0.7; }
}

.landscape-btn.withdraw {
  background: linear-gradient(135deg, #4f46e5, #a78bfa);
}

.landscape-btn.roulette {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image:
    radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(129, 140, 248, 0.45)),
    linear-gradient(135deg, #6366f1, #a78bfa);
}

.landscape-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.8);
}

.roulette-visual {
  position: relative;
  margin-right: 12px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.roulette-wheel {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.35) inset,
    0 8px 20px rgba(79, 70, 229, 0.35);
  background:
    conic-gradient(
      #dc2626 0deg 30deg,
      #6366f1 30deg 60deg,
      #6366f1 60deg 90deg,
      #6366f1 90deg 120deg,
      #dc2626 120deg 150deg,
      #6366f1 150deg 180deg,
      #6366f1 180deg 210deg,
      #6366f1 210deg 240deg,
      #dc2626 240deg 270deg,
      #6366f1 270deg 300deg,
      #6366f1 300deg 330deg,
      #6366f1 330deg 360deg
    );
  animation: roulette-spin 2.2s linear infinite;
}

.roulette-wheel-center {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}

.roulette-pointer {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #f5f3ff;
  filter: drop-shadow(0 2px 2px rgba(79, 70, 229, 0.4));
}

@keyframes roulette-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Menu Grid (novo layout de navegação) ── */
.dash-menu-grid {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.dash-menu-replacement-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
}

/* ── Banner promocional Titan Labs ── */
.dash-promo-banner {
  position: relative;
  width: 100%;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 20px 22px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 50%),
    linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.38);
}

.dash-promo-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.dash-promo-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.78);
}

.dash-promo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  max-width: 14ch;
}

.dash-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.dash-promo-cta svg {
  width: 16px;
  height: 16px;
}

.dash-promo-feather {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 130px;
  height: 130px;
  transform: rotate(8deg);
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.dash-promo-feather svg {
  width: 100%;
  height: 100%;
}

/* ── Quick Actions Grid ──────────────────────────── */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 4px;
  padding: 14px 10px 8px;
}

.dash-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 0;
}

.dash-quick-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 12px;
  margin: 0 auto;
  color: #312e81;
  transition: background 0.15s, border-color 0.15s;
}

.dash-quick-item:hover .dash-quick-icon {
  background: rgba(79, 70, 229, 0.22);
  border-color: #4f46e5;
}

.dash-quick-label {
  margin: 8px 0 0;
  font-size: 10px;
  color: #444;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.chromo-shortcuts {
  margin-top: 10px;
  background: linear-gradient(180deg, #1e1b4b, #312e81);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 16px;
  padding: 12px 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  box-shadow: 0 8px 22px rgba(30, 27, 75, 0.35);
}

.chromo-item {
  border: none;
  background: transparent;
  color: #818cf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 2px;
  cursor: pointer;
}

.chromo-icon {
  width: 24px;
  height: 24px;
  line-height: 1;
  color: #c7d2fe;
}

.chromo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chromo-label {
  font-size: 12px;
  color: #c7d2fe;
  letter-spacing: 0.1px;
}

.chromo-item:hover .chromo-icon,
.chromo-item:hover .chromo-label {
  color: #ffffff;
}

.perfume-income-banner {
  position: relative;
  margin-top: 10px;
  min-height: 156px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, #4f46e5 0%, #6d28d9 50%, #7c3aed 100%);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.28);
}

/* Pluma decorativa no banner */
.perfume-income-banner::before {
  content: '';
  position: absolute;
  left: 5%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translateY(-50%) rotate(-12deg);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z'/%3E%3Cline x1='16' y1='8' x2='2' y2='22'/%3E%3Cline x1='17.5' y1='15' x2='9' y2='15'/%3E%3C/svg%3E");
  pointer-events: none;
}

.perfume-income-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%);
  pointer-events: none;
}

.perfume-income-banner__content {
  position: relative;
  z-index: 1;
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px 16px 38%;
}

.perfume-income-banner__content p {
  margin: 0;
  color: #ffffff;
  text-align: left;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  max-width: 520px;
}

.perfume-income-banner__content p span {
  display: inline-block;
}

.dash-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 14px 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.dash-menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.5);
}

.dash-menu-item:active {
  transform: scale(0.97);
}

.dash-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.dash-menu-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-menu-item span {
  font-size: 12px;
  font-weight: 600;
  color: #312e81;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-wrap: break-word;
}

/* ── Cycle section ── */
.welcome-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  padding: 16px;
}

.welcome-card h1 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #312e81;
}

.welcome-card p {
  margin: 0;
  color: #6366f1;
  font-size: 0.9rem;
}

.trk-about-section {
  margin-top: 4px;
  padding: 0 2px;
}

.trk-about-photo-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.trk-about-photo-wrap {
  flex: 1;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.trk-about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trk-about-text {
  background: transparent;
  padding: 0;
}

.trk-about-title {
  margin: 0 0 12px;
  font-size: 20px;
  color: #6366f1;
  font-weight: 700;
}

.trk-about-text p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #312e81;
  line-height: 1.6;
}

.cycle-card-name {
  color: #312e81;
  font-size: 18px;
  font-weight: 600;
}

.cycle-metrics-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.cycle-metric-value {
  color: #6366f1;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.cycle-metric-label {
  color: #6366f1;
  font-size: 14px;
  line-height: 1;
}

.cycle-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cycle-stock-info {
  color: #6366f1;
  font-size: 14px;
  line-height: 1.5;
}

.cycle-stock-highlight {
  color: #6366f1;
  font-weight: 700;
}

.cycle-invest-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #312e81;
  font-weight: 800;
  font-size: 18px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.cycle-invest-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.cycle-invest-btn:disabled {
  background: #ddd6fe;
  color: #6366f1;
  cursor: not-allowed;
}

.cycle-progress-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cycle-progress-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  overflow: hidden;
}

.cycle-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  border-radius: 999px;
}

.cycle-progress-label {
  color: #6366f1;
  font-size: 13px;
}

/* ── Welcome modal ── */
.welcome-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(49, 46, 129, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}

.welcome-modal-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #f5f3ff, #ddd6fe);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
  text-align: center;
}

.welcome-modal-image {
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(99, 102, 241, 0.35);
}

.welcome-modal-title {
  margin: 0;
  color: #312e81;
  font-size: 1.2rem;
}

.welcome-modal-text {
  margin: 10px 0 0;
  color: #6366f1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.welcome-modal-btn {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #312e81;
  font-weight: 800;
  padding: 11px 14px;
  cursor: pointer;
}

.welcome-modal-btn:hover {
  filter: brightness(1.05);
}

/* ── Welcome modal carousel ── */
.welcome-modal-slides {
  position: relative;
  overflow-y: auto;
  width: 100%;
  max-height: 520px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.welcome-modal-slide {
  position: relative;
  text-align: center;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.welcome-modal-slide--down img {
  width: 100%;
  max-height: none;
  display: block;
}

.welcome-modal-feather {
  width: 64px;
  height: 64px;
  margin: 12px auto 4px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4);
}

.welcome-modal-feather svg {
  width: 32px;
  height: 32px;
}

.welcome-modal-commission-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  line-height: 1;
}

.welcome-modal-commission-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.welcome-modal-commission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
}

.wmc-level {
  color: #312e81;
  font-size: 0.9rem;
  font-weight: 600;
}

.wmc-percent {
  color: #6366f1;
  font-size: 1.1rem;
  font-weight: 800;
}

.welcome-modal-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
}

.welcome-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(99, 102, 241, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.welcome-modal-dot.active {
  background: #6366f1;
  transform: scale(1.3);
}

/* ── Cycle drawer (bottom sheet) ── */
.cycle-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 51, 0.45);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cycle-drawer {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -20px 60px rgba(124, 58, 237, 0.18);
  animation: cycleDrawerUp 0.22s ease-out;
}

@keyframes cycleDrawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cycle-drawer-handle {
  margin: 12px auto 0;
  height: 4px;
  width: 90px;
  border-radius: 999px;
  background: #f1edf9;
}

.cycle-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 0;
}

.cycle-drawer-title {
  margin: 0;
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.cycle-drawer-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cycle-drawer-subrate {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 0.7rem;
}

.cycle-drawer-head-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cycle-drawer-badge {
  border: 1px solid #7c3aed;
  background: #efe6fb;
  color: #7c3aed;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
}

.cycle-drawer-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.cycle-drawer-close:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cycle-drawer-body {
  display: grid;
  gap: 12px;
  padding: 12px 16px 24px;
}

.cycle-drawer-label {
  margin: 0;
  color: #9ca3af;
  font-size: 0.75rem;
}

.cycle-drawer-balance {
  margin: 2px 0 0;
  color: #1f2937;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
}

.cycle-drawer-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cycle-drawer-field-head label {
  margin: 0;
}

.cycle-drawer-rules {
  border: none;
  background: transparent;
  color: #7c3aed;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.cycle-drawer-input-wrap {
  margin-top: 4px;
  display: flex;
  align-items: center;
  height: 48px;
  border-radius: 10px;
  background: #f7f5fc;
  border: 1px solid #f1edf9;
  padding: 0 12px;
}

.cycle-drawer-input-wrap input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: #1f2937;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.95rem;
  outline: none;
}

.cycle-drawer-input-wrap input:disabled {
  opacity: 0.7;
}

.cycle-drawer-unit {
  color: #9ca3af;
  font-size: 0.78rem;
}

.cycle-drawer-hint {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 0.72rem;
}

/* ── Drawer: alterar senha ── */
.pw-eye {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}
.pw-eye svg { width: 18px; height: 18px; }
.pw-eye:hover { color: #7c3aed; }

.pw-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pw-feedback svg { width: 18px; height: 18px; flex-shrink: 0; }
.pw-feedback--success { background: rgba(15, 157, 99, 0.1); color: #0f9d63; }
.pw-feedback--error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.cycle-drawer-error {
  margin: 4px 0 0;
  color: #ef4444;
  font-size: 0.72rem;
}

.cycle-drawer-summary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
}

.cycle-drawer-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f2937;
}

.cycle-drawer-muted {
  color: #9ca3af;
}

.cycle-drawer-summary-total span {
  font-weight: 700;
}

.cycle-drawer-summary--return {
  padding-top: 10px;
  border-top: 1px dashed #e5dff8;
}

.cycle-drawer-profit {
  color: #16a34a;
  font-weight: 700;
}

.cycle-drawer-ok {
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.cycle-drawer-ok:hover:not(:disabled) { background: #6d28d9; }

.cycle-drawer-ok:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cycle-drawer-cancel {
  height: 40px;
  width: 100%;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.88rem;
  cursor: pointer;
}

.cycle-drawer-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Settings drawer (reaproveita .cycle-drawer*) ── */
.settings-drawer {
  max-height: 92vh;
}

.settings-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 0;
}

.settings-drawer-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.settings-section-title {
  margin: 0 0 8px;
  padding: 0 2px;
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.settings-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.settings-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f1edf9;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.settings-item:hover {
  background: #f7f5fc;
}

.settings-item-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #efe6fb;
  color: #7c3aed;
}

.settings-item-icon svg {
  width: 16px;
  height: 16px;
}

.settings-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-item-title {
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
}

.settings-item-sub {
  color: #9ca3af;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-item-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.settings-select-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #f1edf9;
  background: #ffffff;
  border-radius: 12px;
  padding: 0 12px;
}

.settings-select-wrap select {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: #1f2937;
  font-size: 0.88rem;
  outline: none;
}

.settings-select-wrap select option {
  background: #ffffff;
  color: #1f2937;
}

.settings-select-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transform: rotate(90deg);
}

.settings-drawer-footer {
  margin-top: auto;
  border-top: 1px solid #f1edf9;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}

.settings-logout {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  background: transparent;
  color: #ef4444;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-logout svg {
  width: 16px;
  height: 16px;
}

/* ── Lista de dados pessoais ── */
.profile-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.profile-info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid #f1edf9;
  font-size: 0.85rem;
}

.profile-info-list li:last-child { border-bottom: none; }

.profile-info-list li span {
  color: #9ca3af;
}

.profile-info-list li strong {
  color: #1f2937;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 60%;
}

/* ID público da conta: código longo — precisa de mais espaço e fonte monoespaçada */
.profile-info-list li.profile-info-id {
  align-items: flex-start;
}

.profile-info-list li.profile-info-id strong {
  max-width: 72%;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

/* ── Bottom nav ── */
.dash-bottom-nav {
  position: fixed;
  z-index: 40;
  left: 10px;
  right: 10px;
  bottom: 24px;
  width: auto;
  height: calc(66px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #ffffff;
  backdrop-filter: blur(12px);
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.dash-bottom-nav button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #666666;
  display: grid;
  place-items: center;
  gap: 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.dash-bottom-nav button.active {
  background: #111111;
  color: #ffffff;
  transform: translateY(-1px);
}

.dash-bottom-nav span {
  font-size: 1.1rem;
}

.dash-bottom-nav small {
  display: none;
}

/* ── Icons ── */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-sm {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-lg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #6366f1;
}

/* ── Responsive ── */
@media (min-width: 860px) {
  .dash-app {
    padding: 0 0 0 0;
  }

  /* Sidebar removida no desktop — navegação segue pela barra inferior, igual ao celular.
     :not(.admin-dash-sidebar) para não afetar o AdminSidebar, que reaproveita a classe .dash-sidebar */
  .dash-sidebar:not(.admin-dash-sidebar),
  .dash-overlay,
  .menu-toggle {
    display: none;
  }

  .dash-main {
    padding: 18px 24px 24px;
    min-height: 100vh;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cycle-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cycle-card-image {
    height: 156px;
  }

  .cycle-card-body {
    padding: 14px;
  }

  .cycle-card-name {
    font-size: 20px;
  }

  .cycle-metric-value {
    font-size: 26px;
  }

  .cycle-invest-btn {
    font-size: 18px;
    padding: 10px 20px;
  }

  .welcome-modal-card {
    max-width: 460px;
    padding: 20px;
  }

  .welcome-modal-slides {
    max-height: 580px;
  }

  .cycle-modal-card {
    max-width: 560px;
    padding: 22px;
  }

  .cycle-modal-title {
    font-size: 1.3rem;
  }

  .cycle-modal-details {
    font-size: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

  .cycle-modal-actions {
    margin-top: 18px;
  }

  .cycle-modal-btn {
    min-width: 140px;
    padding: 11px 16px;
  }
}

@media (min-width: 1240px) {
  .cycle-plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dash-menu-grid {
    margin-top: 6px;
  }

  .dash-menu-icon {
    width: 32px;
    height: 32px;
  }

  .dash-menu-item span {
    font-size: 11px;
  }

  .dash-menu-item {
    padding: 12px 4px;
  }
}

@media (max-width: 360px) {
  .dash-menu-grid {
    margin-top: 4px;
  }
}

/* ── Botão flutuante de suporte ── */
.support-float-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.support-float-btn:active {
  transform: scale(0.95);
}

/* ── Página de Suporte ── */
.support-cards {
  display: flex;
  gap: 16px;
  padding: 16px;
  flex-wrap: wrap;
}

.support-card {
  flex: 1;
  min-width: 240px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.support-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.support-card__icon--gerente {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
}

.support-card__icon--grupo {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.support-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.support-card__desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.6;
}

.support-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.support-card__btn:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.support-card__btn--gerente {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.support-card__btn--grupo {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* ── Cycle Products Section ── */
.dash-cycle-products {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  margin: 12px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dash-cycle-products-title {
  font-size: 1rem;
  font-weight: 800;
  color: #333333;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.dash-cycle-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.dash-cycle-product-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-cycle-product-card:hover {
  border-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.dash-cycle-product-image {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dash-cycle-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-cycle-product-placeholder {
  color: #4f46e5;
  opacity: 0.5;
}

.dash-cycle-product-placeholder svg {
  width: 32px;
  height: 32px;
}

.dash-cycle-product-info {
  padding: 10px;
}

.dash-cycle-product-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-cycle-product-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.dash-cycle-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.dash-cycle-stat-label {
  color: #666666;
  font-weight: 500;
}

.dash-cycle-stat-value {
  color: #2d3b44;
  font-weight: 700;
}

.dash-cycle-product-desc {
  font-size: 0.72rem;
  color: #666666;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.dash-cycle-product-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.dash-cycle-product-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #4f46e5;
}

.dash-cycle-product-profit {
  font-size: 0.75rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.dash-cycle-product-duration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #666666;
  font-weight: 600;
}

.dash-cycle-product-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(135deg, #4f46e5, #a78bfa);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.dash-cycle-product-buy:hover {
  filter: brightness(1.05);
}

.dash-cycle-products-more {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #4f46e5;
  border-radius: 10px;
  background: transparent;
  color: #4f46e5;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-cycle-products-more:hover {
  background: rgba(79, 70, 229, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   Titan Labs — Dashboard estilo investimento (tema verde/clean)
   Escopo: .bdash  (não afeta outras páginas)
═══════════════════════════════════════════════════════════════ */
.bdash {
  --bd-green: #e23744;
  --bd-green-dark: #c01f2e;
  --bd-badge-bg: #fbd9dd;
  --bd-ink: #16181d;
  --bd-muted: #6b7280;
  --bd-subcard: #f3f5f7;
  --bd-line: #ecedf0;
  --bd-nav-off: #9aa1a9;
  background: #ffffff;
}

/* Conteúdo centralizado como no mock mobile */
.bdash .dash-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 2px 0;
}

/* ── Top bar ── */
.bd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 2px;
}

.bd-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.bd-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #e23744;
}

.bd-logo svg {
  width: 25px;
  height: 25px;
}

.bd-logo img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.bd-username {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bd-ink);
  letter-spacing: -0.2px;
}

/* ── Card de CTA ── */
@property --bd-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.bd-promo {
  position: relative;
  border-radius: 18px;
  padding: 16px 16px 18px;
  background: linear-gradient(160deg, #fdebed 0%, #fef5f6 55%, #ffffff 100%);
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(226, 55, 68, 0.09);
}

/* Linha verde correndo ao redor da borda */
.bd-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--bd-angle),
    rgba(226, 55, 68, 0.15) 0deg,
    rgba(226, 55, 68, 0.15) 235deg,
    #ee4a59 300deg,
    #ffc2c9 332deg,
    #ee4a59 350deg,
    rgba(226, 55, 68, 0.15) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: bd-border-run 3s linear infinite;
}

@keyframes bd-border-run {
  to {
    --bd-angle: 360deg;
  }
}

/* Fallback p/ navegadores sem @property: anel verde estático suave */
@supports not (background: conic-gradient(from var(--bd-angle), red, blue)) {
  .bd-promo {
    border-color: #f3c5cb;
  }
  .bd-promo::after {
    display: none;
  }
}

.bd-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bd-badge-bg);
  color: var(--bd-green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bd-promo__badge svg {
  width: 13px;
  height: 13px;
}

.bd-promo__title {
  margin: 0 0 7px;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--bd-ink);
  letter-spacing: -0.3px;
}

.bd-promo__text {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--bd-muted);
  max-width: 34ch;
}

.bd-promo__btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(180deg, #f0444f 0%, #cf2436 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(192, 31, 46, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bd-promo__btn svg {
  width: 17px;
  height: 17px;
}

.bd-promo__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px rgba(192, 31, 46, 0.4);
}

.bd-promo__btn:active {
  transform: translateY(0);
}

/* ── Blocos de saldo ── */
.bd-balance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px;
}

.bd-balance__label {
  margin: 0;
  font-size: 0.9rem;
  color: #6f757d;
  font-weight: 500;
}

.bd-balance__value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bd-ink);
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.bd-balance__sub {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bd-subcard);
  border-radius: 12px;
  padding: 11px 13px;
}

.bd-balance__sub-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6f757d;
  font-size: 0.85rem;
}

.bd-balance__sub-left svg {
  width: 18px;
  height: 18px;
  color: #9aa1a9;
}

.bd-balance__sub-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bd-ink);
}

.bd-divider {
  height: 1px;
  background: var(--bd-line);
  margin: 2px 0;
}

/* ── Navegação inferior ── */
.bd-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  background: #ffffff;
  border-top: 1px solid #ecedf0;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}

.bd-nav-item {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 2px;
  cursor: pointer;
  color: #9aa1a9;
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.12s ease;
}

.bd-nav-item svg {
  width: 27px;
  height: 27px;
  transition: transform 0.18s ease;
}

.bd-nav-item:active {
  transform: scale(0.9);
}

.bd-nav-item.active {
  color: #7c3aed;
  font-weight: 700;
}

.bd-nav-item.active svg {
  transform: translateY(-1px) scale(1.06);
}

.bd-nav-avatar {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6e8eb;
  color: #6f757d;
  font-size: 0.72rem;
  font-weight: 800;
}

.bd-nav-item.active .bd-nav-avatar {
  background: #7c3aed;
  color: #fff;
}

/* Esconde a nav compartilhada (indigo) apenas na dashboard */
.bdash .dash-bottom-nav {
  display: none !important;
}

/* ── Extras da dashboard (chip "Hoje", aviso de saque, card do app) ── */
.bd-balance__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bd-chip {
  flex-shrink: 0;
  background: #fde3e6;
  color: #c01f2e;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.bd-note {
  margin-top: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fdeaec;
  border: 1px solid #f6cdd2;
  border-radius: 13px;
  padding: 12px 14px;
  color: #d12d3c;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bd-note:hover {
  background: #fbdde1;
  border-color: #efb7bf;
}

.bd-note__left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
}

.bd-note__left svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bd-note__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Card "Baixe nosso aplicativo" */
.bd-appcard {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 18px 20px;
  margin-top: 2px;
  background:
    radial-gradient(130% 130% at 90% 10%, rgba(224, 80, 90, 0.22) 0%, transparent 45%),
    linear-gradient(135deg, #3a1014 0%, #4a161c 55%, #5c1d25 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(58, 16, 20, 0.28);
}

/* pontilhado decorativo */
.bd-appcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.bd-appcard > * {
  position: relative;
  z-index: 1;
}

.bd-appcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e23744;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.bd-appcard__badge svg {
  width: 13px;
  height: 13px;
}

.bd-appcard__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.bd-appcard__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  max-width: 34ch;
}

/* ── Dados da Rede ── */
.bd-net {
  border: 1px solid #eef0f2;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.bd-net__title {
  margin: 0 0 16px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #475569;
}

.bd-net__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bd-net__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f7f8fa;
  border-radius: 14px;
  padding: 14px;
}

.bd-net__ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.bd-net__ic svg { width: 17px; height: 17px; }

.bd-net__ic--green  { background: #e7f7ec; color: #1fa463; }
.bd-net__ic--red    { background: #fdeaea; color: #ef4444; }
.bd-net__ic--blue   { background: #e8eefb; color: #3b6fe0; }
.bd-net__ic--purple { background: #f2e9fb; color: #8b46d4; }

.bd-net__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #16181d;
  letter-spacing: -0.4px;
  line-height: 1.1;
  margin-top: 2px;
}

.bd-net__num--money {
  font-size: 1.15rem;
}

.bd-net__lbl {
  font-size: 0.82rem;
  color: #9aa1a9;
}

/* Patrocinador */
.bd-net__sponsor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef0f2;
}

.bd-net__sponsor-av {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #e6e8eb;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #6b7280;
  background: #fff;
}

.bd-net__sponsor-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bd-net__sponsor-lbl {
  font-size: 0.78rem;
  color: #9aa1a9;
}

.bd-net__sponsor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #16181d;
}

.bd-net__wpp {
  margin-left: auto;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.bd-net__wpp:hover { transform: translateY(-1px); filter: brightness(1.04); }
.bd-net__wpp svg { width: 22px; height: 22px; }

/* Acessar a Rede */
.bd-net__access {
  width: 100%;
  margin-top: 16px;
  padding: 16px 2px 2px;
  border: none;
  border-top: 1px solid #eef0f2;
  background: transparent;
  color: #16181d;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bd-net__access svg { width: 18px; height: 18px; color: #6b7280; }
.bd-net__access:hover { color: #e23744; }
.bd-net__access:hover svg { color: #e23744; }

/* ── Dados da Rede: gráfico (donut + barras por nível) ── */
.bd-net__overview {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bd-net__donut {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

.bd-net__donut svg { width: 100%; height: 100%; }

.bd-donut-track,
.bd-donut-seg {
  fill: none;
  stroke-width: 3.6;
}

.bd-donut-track { stroke: #eef0f2; }

.bd-donut-seg {
  stroke: #e23744;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.bd-net__donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bd-net__donut-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #16181d;
  line-height: 1;
}

.bd-net__donut-lbl {
  font-size: 0.72rem;
  color: #9aa1a9;
  margin-top: 2px;
}

.bd-net__legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bd-net__leg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #6b7280;
}

.bd-net__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bd-net__dot--active { background: #e23744; }
.bd-net__dot--inactive { background: #cbd2da; }
.bd-net__dot--inv { background: #8b5cf6; }

.bd-net__leg-lbl { flex: 1; }

.bd-net__leg-val { font-weight: 800; color: #16181d; }

.bd-net__leg-val em {
  font-style: normal;
  font-weight: 600;
  color: #9aa1a9;
  font-size: 0.8rem;
}

.bd-net__levels {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef0f2;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bd-net__levels-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 2px;
}

.bd-net__bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-net__bar-lbl {
  width: 56px;
  flex-shrink: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.bd-net__bar-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #f1f3f5;
  overflow: hidden;
}

.bd-net__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #e8ebef;
  transition: width 0.5s ease;
  display: flex;
}

.bd-net__bar-active {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0444f, #e23744);
  transition: width 0.5s ease;
}

.bd-net__bar-val {
  width: 22px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 800;
  color: #16181d;
}

/* ── Comunidade ── */
.bd-comm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-comm-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  border: 1px solid #eef0f2;
  background: #ffffff;
  border-radius: 14px;
  padding: 13px 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bd-comm-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.bd-comm-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.bd-comm-ic svg { width: 21px; height: 21px; }
.bd-comm-ic--wpp { background: #e7f7ec; color: #25d366; }
.bd-comm-ic--tg { background: #e8f1fb; color: #2aabee; }

.bd-comm-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-comm-txt strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #16181d;
}

.bd-comm-txt span {
  font-size: 0.82rem;
  color: #9aa1a9;
}

.bd-comm-chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #c3c8ce;
}

/* ── Card de indicação ── */
.bd-ref {
  border: 1px solid #eef0f2;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.bd-ref__hero {
  position: relative;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 50% 30%, rgba(226, 55, 68, 0.10), transparent 70%),
    linear-gradient(135deg, #eef4ff 0%, #fdeef0 100%);
}

.bd-ref__share {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #3a3f47;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
  transition: transform 0.15s ease;
}

.bd-ref__share:hover { transform: translateY(-1px); }
.bd-ref__share svg { width: 18px; height: 18px; }

.bd-ref__emoji {
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.bd-ref__img {
  max-width: 92%;
  max-height: 138px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(16, 24, 40, 0.18));
}

.bd-ref__title {
  margin: 16px 2px 14px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #16181d;
}

.bd-ref__label {
  display: block;
  margin: 0 2px 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #6b7280;
}

.bd-ref__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f5f7;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
}

.bd-ref__field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: #4b5563;
  padding: 10px 0;
}

.bd-ref__copy {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background: #ffffff;
  color: #6b7280;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
  transition: color 0.15s ease;
}

.bd-ref__copy:hover { color: #e23744; }
.bd-ref__copy svg { width: 19px; height: 19px; }

.bd-ref__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.bd-ref__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  border-radius: 13px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.bd-ref__btn svg { width: 21px; height: 21px; }
.bd-ref__btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.bd-ref__btn:active { transform: translateY(0); }

.bd-ref__btn--wpp { background: #25d366; box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3); }
.bd-ref__btn--tg { background: #2aabee; box-shadow: 0 8px 18px rgba(42, 171, 238, 0.3); }

/* ═══════════════════════════════════════════════════════════════
   Desktop — dashboard em largura cheia (layout estilo computador)
═══════════════════════════════════════════════════════════════ */
.bd-balgrid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 860px) {
  /* a dashboard ocupa toda a largura ao lado da sidebar */
  .bdash .dash-content {
    max-width: none;
    margin: 0;
    padding-top: 6px;
  }

  /* 3 saldos lado a lado */
  .bd-balgrid {
    flex-direction: row;
    gap: 16px;
  }
  .bd-balgrid > .bd-balance { flex: 1; min-width: 0; }
  .bd-balgrid > .bd-divider { display: none; }

  /* Dados da Rede: 4 colunas */
  .bd-net__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Comunidade lado a lado */
  .bd-comm { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Desktop — demais páginas usam a largura da tela
   (seletores .dash-app.X-page para vencer o CSS de cada página)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 860px) {
  /* Páginas de LISTA preenchem a largura ao lado da sidebar */
  .dash-app.inv-page .dash-content,
  .dash-app.pf-page .dash-content,
  .dash-app.wd-page .dash-content,
  .dash-app.st-page .dash-content,
  .dash-app.co-page .dash-content {
    max-width: none;
    margin: 0;
  }

  /* Páginas de FORMULÁRIO ficam num bloco central confortável */
  .dash-app.nw-page .dash-content,
  .dash-app.bc-page .dash-content,
  .dash-app.cp-page .dash-content {
    max-width: 640px;
    margin: 0 auto;
  }

  /* Listas viram grade multi-coluna (responsiva) no desktop */
  .inv-page .inv-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
  }
  .pf-page .pf-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
  }
  .wd-page .wd-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
  }
  .st-page .st-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 11px;
    align-items: start;
  }
  .co-page .co-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Dashboard "Mercados estratégicos" — tema escuro
   Escopo: .mk-root (sobrepõe o tema claro do Dashboard.css)
═══════════════════════════════════════════════════════════════ */
.mk-root {
  --mk-bg:       #ffffff;
  --mk-panel:    #0f1922;
  --mk-card:     #121d28;
  --mk-card-2:   #16222e;
  --mk-line:     #1e2c3a;
  --mk-txt:      #ffffff;
  --mk-muted:    #7b8a9a;
  --mk-green:    #16c47f;
  --mk-green-2:  #1ed98d;
  --mk-red:      #f6465d;
  --mk-gold:     #f0b90b;
}

/* ── Reset do tema claro herdado ── */
.mk-root,
.mk-root .dash-main {
  background: var(--mk-bg) !important;
  color: var(--mk-txt) !important;
}

.mk-root {
  min-height: 100vh;
  padding: 0 !important;
}

/* Seletor com .mk-root para vencer `.bdash .dash-content { max-width: 420px }` */
.mk-root .mk-content {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 10px 14px 110px !important;
  background: var(--mk-bg);
}

/* ═══ Card de saldo total (header embutido, igual à referência) ═══ */
.mk-hero {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #201335;
  isolation: isolate;
}

/* Fundo: foto real (moedas USDT + skyline dourado/roxo) */
.mk-hero__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Insígnia decorativa (moedas), canto superior esquerdo */
.mk-hero__flower {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 54px;
  height: 54px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Gradiente escuro por cima do fundo, para o texto ficar legível */
.mk-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 8, 36, 0.35), rgba(18, 8, 36, 0.3), rgba(18, 8, 36, 0.6));
}

/* ── Header embutido (insígnia + ações) ── */
.mk-hero__header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 0;
}

/* Botão da insígnia do plano de carreira */
.mk-hero__badge-btn {
  position: relative;
  margin: -8px 0 0 -12px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.mk-hero__badge-btn:active { transform: scale(0.95); }

.mk-hero__badge-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(53, 230, 138, 0.2);
  filter: blur(18px);
  opacity: 0.7;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.mk-hero__badge-btn:hover .mk-hero__badge-glow { opacity: 1; }

.mk-hero__badge-img {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 92px;
  object-fit: contain;
  display: block;
  transform: scale(0.9);
  transition: transform 0.15s ease;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(203, 213, 225, 0.7));
}
.mk-hero__badge-btn:hover .mk-hero__badge-img { transform: scale(0.94); }

.mk-hero__header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

/* Link "VIP Grupo" */
.mk-hero__viplink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Pílula "VIP Grupo" — fundo escuro translúcido, como na foto */
.mk-hero__viplink {
  background: rgba(90, 40, 30, 0.55);
  border-radius: 16px;
  padding: 4px 10px 4px 4px;
}

.mk-hero__viplink-badge {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fde047, #eab308);
  color: #713f12;
  font-size: 7px;
  font-weight: 800;
  box-shadow: 0 0 4px rgba(250, 204, 21, 0.6);
  flex-shrink: 0;
}

/* Ícones do header (cupom / whatsapp / sino / configurações) */
.mk-hero__hic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}
.mk-hero__hic svg { width: 18px; height: 18px; }

/* Cupom e WhatsApp: botão verde preenchido, ícone branco */
.mk-hero__hic--fill {
  width: 27px;
  height: 24px;
  border-radius: 6px;
  background: #16c47f;
}
.mk-hero__hic--fill:hover { background: #1ed98d; }
.mk-hero__hic--fill svg { width: 14px; height: 14px; }

.mk-hero__wa {
  width: 27px;
  height: 27px;
  border-radius: 50%;
}
.mk-hero__wa svg { width: 13px; height: 13px; color: #ffffff; }
.mk-hero__wa-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 1.5px #070b1a;
}


/* Sino de notificações — reaproveita o componente, recolorido para o header */
.mk-hero__bell { display: inline-flex; }
.mk-hero__bell .bd-bell {
  width: 18px;
  height: 18px;
  color: #ffffff;
  padding: 0;
  border-radius: 0;
}
.mk-hero__bell .bd-bell svg { width: 18px; height: 18px; }
.mk-hero__bell .bd-bell:hover { background: transparent; opacity: 0.8; }

/* ── Conteúdo: Ontem · Saldo total · expandir ── */
.mk-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto) 40px;
  align-items: end;
  gap: 16px;
  padding: 96px 18px 18px;
}

.mk-hero__yesterday { min-width: 0; }
.mk-hero__yesterday-val { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.mk-hero__yesterday-num {
  font-weight: 700;
  color: #24d88a;
  font-size: 20px;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(36, 216, 138, 0.2);
}

.mk-hero__sub-lbl {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}

.mk-hero__balance {
  min-width: 0;
  text-align: left;
  transform: translateX(6px);
}
.mk-hero__balance-row { display: flex; align-items: center; gap: 6px; }

.mk-hero__balance-num {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 700;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.12);
}

.mk-hero__eye-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -9px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.mk-hero__eye {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  pointer-events: none;
}

/* Chevron duplo verde — abre/recolhe o painel de estatísticas */
.mk-hero__more {
  justify-self: end;
  align-self: end;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #24d88a;
  cursor: pointer;
  transition: transform 0.28s ease, background 0.18s ease;
}

.mk-hero__more svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 8px rgba(36, 216, 138, 0.26));
}
.mk-hero__more:hover { color: #35e68a; background: rgba(36, 216, 138, 0.12); }
.mk-hero__more:active { background: rgba(36, 216, 138, 0.2); }
.mk-hero__more.is-open { transform: rotate(180deg); }

/* Painel de estatísticas extra (expansível) */
.mk-hero__stats {
  position: relative;
  z-index: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 18px;
  transition: max-height 0.32s ease, opacity 0.28s ease, padding-bottom 0.32s ease;
}

.mk-hero__stats.is-open {
  max-height: 320px;
  opacity: 1;
  padding-bottom: 18px;
}

.mk-hero__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mk-hero__stat-val {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mk-hero__stat-val--pos { color: #1ed98d; }

.mk-hero__stat-lbl {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Rodapé "Rendimento | Histórico" do painel expandido */
.mk-hero__stats-foot {
  display: flex;
  align-items: stretch;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-hero__stats-foot button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.mk-hero__stats-foot button svg { width: 17px; height: 17px; color: rgba(255, 255, 255, 0.7); }
.mk-hero__stats-foot button:hover { color: var(--mk-green-2); }
.mk-hero__stats-foot button:hover svg { color: var(--mk-green-2); }

.mk-hero__stats-foot-div {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

/* ═══ Aviso: ticker vertical de lucros ═══ */
.mk-notice {
  height: 37px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f1edf9;
  font-size: 0.78rem;
  color: #6b7280;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}

.mk-notice__viewport {
  height: 37px;
  overflow: hidden;
}

.mk-notice__col {
  display: flex;
  flex-direction: column;
}

.mk-notice__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 12px;
}

.mk-notice__ic {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #7c3aed;
}

.mk-notice__text {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mk-notice__member {
  color: #4b5563;
  font-weight: 600;
}

.mk-notice__tag {
  margin: 0 8px;
  color: #9ca3af;
}

.mk-notice__val {
  font-weight: 700;
  color: #7c3aed;
}

/* ═══ Painel único: abas + chips (como na foto) ═══ */
.mk-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(124, 58, 237, 0.08);
}

/* ═══ Abas ═══ */
.mk-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 16px 0;
}

.mk-panel--has-chips .mk-tabs { padding-bottom: 12px; }

.mk-tab {
  position: relative;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.18s ease;
}

.mk-tab:hover { color: #4b5563; }

.mk-tab.is-active {
  color: #1f2937;
  font-weight: 800;
}

.mk-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 3px;
  background: #7c3aed;
}

.mk-tab__count {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}

/* ═══ Chips de filtro (3 colunas iguais, como na foto) ═══ */
.mk-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 16px 16px;
  background: #ffffff;
}

.mk-chip {
  position: relative;
  border: 1.5px solid #ece7f6;
  border-radius: 999px;
  background: #f7f5fc;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.mk-chip:hover { color: #1f2937; }

/* Ativo = contornado em roxo, fundo lilás translúcido */
.mk-chip.is-active {
  background: #efe6fb;
  border-color: #7c3aed;
  color: #7c3aed;
}

/* Etiqueta "Hot" — cantinho vermelho no topo esquerdo */
.mk-chip__tag {
  position: absolute;
  top: -7px;
  left: -6px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f43f5e;
  color: #ffffff;
  line-height: 1.3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ═══ Botão Subscrever ═══ */
.mk-sub {
  border: none;
  border-radius: 7px;
  background: var(--mk-green);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.mk-sub:hover { filter: brightness(1.12); transform: translateY(-1px); }
.mk-sub:active { transform: translateY(0); }

.mk-sub--sm {
  font-size: 0.77rem;
  padding: 8px 13px;
  border-radius: 6px;
}

/* ═══ Lista de planos ═══ */
.mk-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0 12px 14px;
  list-style: none;
  background: #ffffff;
}

.mk-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 26px 10px;
  color: #9ca3af;
  font-size: 0.87rem;
}

/* Marca de fim da lista de depósitos */
.mk-end {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 10px 10px;
}
.mk-end svg { width: 46px; height: 46px; }
.mk-end span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mk-muted);
}

.mk-card {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #f1edf9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mk-card:hover { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.14); transform: translateY(-1px); }
.mk-card:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }

.mk-card.is-locked { opacity: 0.55; cursor: default; }
.mk-card.is-locked:hover { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07); transform: none; }

/* Cards de "Meus depósitos" ocupam a linha inteira do grid */
.mk-card.mk-dep {
  grid-column: 1 / -1;
  background: #ffffff;
  border-color: #f1edf9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
}
.mk-card.mk-dep:hover { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.14); transform: translateY(-1px); }

.mk-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-card__av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.mk-card__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mk-card__name-wrap { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-card__name {
  margin: 0;
  overflow-wrap: break-word;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2937;
}

.mk-card__term {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.3;
}

/* Botão Subscrever (lilás cheio de largura) / travado (cinza-claro) */
.mk-card__sub {
  width: 100%;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c3aed;
  background: #efe6fb;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.mk-card__sub:hover:not(:disabled) { background: #e4d6f9; transform: translateY(-1px); }

.mk-card__sub--locked {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.mk-card__sub--locked:hover { background: #f3f4f6; transform: none; }

.mk-card__gate {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #b8860b;
}

/* Métricas (2 colunas, como na foto) */
.mk-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
  gap: 6px;
}

.mk-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* "Meus depósitos": cards claros, valores em verde legível sobre branco */
.mk-dep .mk-metric strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f9d63;
  letter-spacing: -0.2px;
}

/* Lista de planos: cards claros, valores em roxo-escuro */
.mk-card:not(.mk-dep) .mk-metric strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.2px;
}

.mk-metric p {
  margin: 0;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #ffffff;
}

.mk-metric small {
  margin-top: 1px;
  font-size: 0.656rem;
  color: #9ca3af;
  line-height: 1.25;
}

.mk-card:not(.mk-dep) .mk-metric small { color: #9ca3af; }


/* ═══ Cards de "Meus depósitos" ═══ */
.mk-dep__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mk-dep__title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mk-dep__title strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.mk-dep__date {
  font-size: 0.74rem;
  color: #9ca3af;
}

.mk-dep__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.mk-dep__status {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(22, 196, 127, 0.12);
  color: #0f9d63;
  border: 1px solid rgba(22, 196, 127, 0.35);
}

.mk-dep__status.is-done {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.mk-dep .mk-card__metrics {
  border-top: 1px solid #f1edf9;
  padding-top: 14px;
}

.mk-dep__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.mk-dep__progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1edf9;
}

.mk-dep__progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #7c3aed;
}

.mk-dep__stats-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.mk-dep__stats svg { width: 14px; height: 14px; }
.mk-dep__stats:hover { color: #7c3aed; }

/* alinha o link "Estatísticas" à direita do card */
.mk-dep { display: flex; flex-direction: column; }

/* ═══ Navegação inferior (branca, como na referência) ═══ */
.mk-root .bd-bottomnav {
  background: #ffffff;
  border-top: 1px solid #ecedf0;
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}

.mk-root .bd-bottomnav .bd-nav-item {
  color: #9aa1a9;
  background: transparent;
}

.mk-root .bd-bottomnav .bd-nav-item.active {
  color: #7c3aed;
  background: transparent;
}

/* Ícone ativo: roxo, como na referência */
.mk-root .bd-bottomnav .bd-nav-item.active svg {
  color: #7c3aed;
  filter: none;
}

.mk-root .bd-bottomnav .bd-nav-avatar {
  background: #e6e8eb;
  color: #6f757d;
}

/* ═══ Desktop ═══ */
@media (min-width: 860px) {
  .mk-root .dash-main {
    padding: 0 24px 24px !important;
    min-height: 100vh;
  }

  .mk-root .mk-content {
    max-width: 100% !important;
    margin: 0;
    padding: 18px 4px 40px !important;
  }

  .mk-hero {
    min-height: 240px;
  }

  .mk-hero__header { padding: 12px 28px 0; }
  .mk-hero__grid { padding: 112px 28px 28px; }
  .mk-hero__yesterday-num { font-size: 27px; }
  .mk-hero__sub-lbl { font-size: 13px; }
  .mk-hero__balance-num { font-size: 30px; }
  .mk-hero__eye { width: 16px; height: 16px; }
  .mk-metric strong { font-size: 1.05rem; }
  .mk-metric small { font-size: 0.71rem; }
  .mk-card { padding: 17px 20px; }

  /* Chips do tamanho do texto (não esticados a 1/3 da largura cada) — mantém os 2 cards por linha do celular */
  .mk-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .mk-chip {
    flex: 0 0 auto;
    padding: 10px 22px;
  }
}

/* ═══ Telas pequenas ═══ */
@media (max-width: 360px) {
  .mk-hero__badge-btn { width: 76px; height: 76px; }
  .mk-hero__badge-img { width: 64px; height: 76px; }
  .mk-hero__balance-num { font-size: 18px; }
  .mk-hero__yesterday-num { font-size: 17px; }
  .mk-metric strong { font-size: 0.87rem; }
  .mk-metric small { font-size: 0.63rem; }
  .mk-card__term { font-size: 0.68rem; }
}
.roleta-pro {
  min-height: 100dvh;
  background: #ffffff !important;
  color: #2f343a;
  padding: 10px 0 24px;
  position: relative;
  z-index: 2;
}

.roleta-pro::before {
  content: '';
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

.roleta-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.roleta-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.95), rgba(245, 246, 248, 0.65));
  backdrop-filter: blur(4px);
  color: #2f343a;
  border-radius: 14px;
}

.roleta-head h1 {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f343a;
}

.lucky-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
  position: relative;
}

.lucky-title::before,
.lucky-title::after {
  content: '';
  position: absolute;
  left: 50%;
  width: min(86%, 360px);
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #b8c0cb 18%, #f5f8ff 50%, #b8c0cb 82%, transparent 100%);
  box-shadow:
    0 0 8px rgba(180, 191, 203, 0.7),
    0 0 18px rgba(214, 223, 234, 0.55),
    0 0 26px rgba(160, 172, 186, 0.45);
  animation: titleLineShine 2.2s ease-in-out infinite;
  pointer-events: none;
}

.lucky-title::before {
  top: -6px;
}

.lucky-title::after {
  bottom: -6px;
  animation-delay: 1.1s;
}

.lucky-title__text {
  display: inline-block;
  font-family: 'Arial Black', 'Impact', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #4b525a, #7b848d, #4b525a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 6px rgba(120, 128, 138, 0.4),
    0 0 14px rgba(95, 103, 112, 0.3);
  animation: luckyTitleGlow 1.4s ease-in-out infinite alternate;
  padding: 4px 14px;
  border-radius: 999px;
  background-color: transparent;
  position: relative;
}

.lucky-title__text::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: linear-gradient(90deg, #5f6670, #9aa3ad, #5f6670) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: luckyTitleGlow 1.4s ease-in-out infinite alternate;
}

@keyframes luckyTitleGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(95, 103, 112, 0.45));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(154, 163, 173, 0.55));
  }
}

@keyframes titleLineShine {
  0%, 100% {
    opacity: 0.75;
    filter: brightness(0.95);
  }
  50% {
    opacity: 1;
    filter: brightness(1.22);
  }
}


@keyframes wheelConnectorPulse {
  0%, 100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 4px rgba(219, 228, 240, 0.35)) brightness(0.95);
  }
  50% {
    opacity: 0.92;
    filter: drop-shadow(0 0 10px rgba(238, 245, 255, 0.65)) brightness(1.2);
  }
}

.roleta-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(95, 103, 112, 0.28);
  background: #f5f7fa;
  color: #2f343a;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(95, 103, 112, 0.14);
}

.roleta-head-spacer {
  width: 36px;
  height: 36px;
}

.wheel-stage {
  width: min(100%, 620px);
  height: min(100vw, 620px);
  margin: 8px auto 0;
  position: relative;
}

.wheel-pointer {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 24px solid #59616a;
  filter: drop-shadow(0 8px 12px rgba(85, 93, 102, 0.35));
}

.wheel-ring {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 12px solid rgba(113, 121, 130, 0.34);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    0 30px 70px rgba(120, 130, 141, 0.2);
  z-index: 4;
}

.wheel-disc {
  position: absolute;
  width: 78%;
  height: 78%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 8px rgba(197, 205, 214, 0.5),
    0 18px 40px rgba(108, 118, 128, 0.26);
  transition: transform 4.7s cubic-bezier(0.12, 0.95, 0.2, 1);
  z-index: 5;
}

.wheel-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  background:
    repeating-conic-gradient(
      from -90deg,
      rgba(240, 246, 255, 0.55) 0deg 1.1deg,
      rgba(255, 255, 255, 0) 1.1deg 45deg
    );
  mix-blend-mode: screen;
  opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(225, 233, 245, 0.45));
  animation: wheelConnectorPulse 1.25s ease-in-out infinite;
}

.wheel-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 50%;
  transform-origin: bottom center;
  background: rgba(255, 255, 255, 0.85);
  z-index: 6;
}

.wheel-label {
  position: absolute;
  z-index: 7;
  color: #2f343a;
  font-size: 0.9rem;
  font-weight: 800;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(255, 255, 255, 0.7);
}

.wheel-line {
  background: rgba(79, 87, 96, 0.38);
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #8d959e, #5a616a);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow:
    0 14px 30px rgba(95, 103, 112, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  z-index: 9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.spins-badge {
  position: absolute;
  top: 84%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid rgba(95, 103, 112, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  z-index: 10;
  color: #2f343a;
  box-shadow: 0 4px 12px rgba(95, 103, 112, 0.14);
}

.spins-badge strong {
  color: #525a63;
  font-size: 1.15rem;
}

.spin-cta {
  padding: 0 16px;
  margin-top: 6px;
}

.spin-cta button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2e6ea, #c5ccd3);
  color: #5d646d;
  font-weight: 800;
  cursor: not-allowed;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.spin-cta button.ready {
  background: linear-gradient(90deg, #7a838d, #58606a);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(90, 98, 108, 0.32);
}

.spin-cta button.ready:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.spin-cta button.ready:active {
  transform: translateY(0);
}

.winner-text {
  margin: 10px 0 0;
  text-align: center;
  color: #525a63;
  font-weight: 700;
}

.redeem-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(47, 52, 58, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  backdrop-filter: blur(3px);
  animation: roletaFadeIn 180ms ease-out;
}

.redeem-modal {
  width: min(92vw, 440px);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: celebrationPop 380ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.redeem-modal--success {
  border: 1px solid rgba(95, 103, 112, 0.35);
  background: linear-gradient(160deg, #f7f9fb 0%, #eceff3 100%);
  color: #2f343a;
}

.redeem-modal--error {
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(160deg, #fef2f2 0%, #fde4e4 100%);
  color: #7a2a2a;
}

.redeem-modal-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(95, 103, 112, 0.25));
}

.redeem-modal h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.redeem-modal--success h2 { color: #4f5760; }
.redeem-modal--error h2   { color: #b91c1c; }

.redeem-modal-code {
  margin: 0;
  font-size: 0.9rem;
  color: #5f6770;
}

.redeem-modal-code strong {
  color: #2f343a;
  font-size: 1rem;
  letter-spacing: 1px;
}

.redeem-modal-reward {
  margin: 0;
  font-size: 1.05rem;
  color: #2f343a;
  font-weight: 600;
}

.redeem-modal-reward strong {
  color: #4d555e;
  font-size: 1.25rem;
}

.redeem-modal-spins {
  margin: 0;
  font-size: 0.88rem;
  color: #5f6770;
}

.redeem-modal-spins strong {
  color: #4d555e;
  font-weight: 700;
}

.redeem-modal-message {
  margin: 0;
  font-size: 0.98rem;
  color: #b91c1c;
  font-weight: 600;
  line-height: 1.5;
}

.redeem-modal-btn {
  margin-top: 6px;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.redeem-modal-btn:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.redeem-modal-btn:active { transform: translateY(0); }

.redeem-modal-btn--success {
  background: linear-gradient(90deg, #7c8590, #5a616b);
  color: #fff;
  box-shadow: 0 8px 22px rgba(90, 98, 107, 0.35);
}

.redeem-modal-btn--error {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.3);
}

.records-card {
  margin: 16px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(95, 103, 112, 0.22);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(95, 103, 112, 0.12);
  color: #2f343a;
}

.records-tabs {
  display: flex;
  gap: 8px;
}

.records-tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #eef1f4;
  color: #5f6770;
  font-weight: 700;
}

.records-tabs button.active {
  background: linear-gradient(90deg, #7b848e, #5b636c);
  color: #fff;
}

.records-list {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.record-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f5f7fa;
  border: 1px solid rgba(95, 103, 112, 0.16);
}

.record-row small {
  color: #6b7380;
  font-size: 0.72rem;
  display: block;
}

.record-row p {
  margin: 2px 0 0;
  color: #2f343a;
  font-size: 0.88rem;
}

.record-row strong {
  font-size: 1rem;
  background: linear-gradient(90deg, #545c65, #7b858f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.empty-state {
  text-align: center;
  color: #6b7380;
  padding: 24px 10px;
}

.rules-card {
  margin: 16px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(95, 103, 112, 0.2);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(95, 103, 112, 0.1);
  color: #2f343a;
  position: relative;
  isolation: isolate;
}

.rules-card::before,
.rules-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  pointer-events: none;
}

.rules-card::before {
  background: linear-gradient(
    120deg,
    rgba(166, 176, 190, 0.2),
    rgba(223, 230, 240, 0.75),
    rgba(166, 176, 190, 0.2)
  );
  z-index: -1;
  filter: blur(0.4px);
  animation: rulesCardPulse 1.9s ease-in-out infinite;
}

.rules-card::after {
  inset: -7px;
  border-radius: 22px;
  background: radial-gradient(circle at center, rgba(214, 223, 235, 0.4), transparent 70%);
  z-index: -2;
  filter: blur(8px);
  opacity: 0.65;
  animation: rulesCardAuraPulse 1.9s ease-in-out infinite;
}

.rules-card__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #4f5760;
  text-align: center;
  letter-spacing: 0.3px;
}

.spins-badge--inline {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 14px;
  width: max-content;
  left: auto;
  top: auto;
}

.rules-card .spins-badge--inline {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.spins-token {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 18px;
  padding: 10px 18px 10px 12px;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(135deg, #f4f6f8 0%, #e8edf1 100%);
  border: 1px solid rgba(95, 103, 112, 0.3);
  border-radius: 14px;
  box-shadow:
    0 6px 18px rgba(95, 103, 112, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
}

.spins-token::before,
.spins-token::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 1px solid rgba(95, 103, 112, 0.3);
  border-radius: 50%;
  transform: translateY(-50%);
}

.spins-token::before {
  left: -6px;
  border-right-color: transparent;
}

.spins-token::after {
  right: -6px;
  border-left-color: transparent;
}

.spins-token__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b848f, #59616b);
  color: #fff;
  box-shadow: 0 4px 10px rgba(90, 98, 108, 0.3);
}

.spins-token__icon svg {
  width: 22px;
  height: 22px;
}

.spins-token__info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.spins-token__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6770;
}

.spins-token__count {
  font-size: 1.4rem;
  font-weight: 800;
  color: #4f5760;
  font-variant-numeric: tabular-nums;
}

.rules-card__list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3d434a;
}

.rules-card__list li {
  padding-left: 4px;
}

.rules-card__list li::marker {
  color: #5d6570;
  font-weight: 800;
}

.rules-card__list strong {
  color: #2f343a;
  font-weight: 700;
}

.roleta-celebration {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(47, 52, 58, 0.35);
  pointer-events: none;
  animation: roletaFadeIn 220ms ease-out;
}

.roleta-celebration-card {
  position: relative;
  overflow: hidden;
  width: min(92vw, 520px);
  border-radius: 20px;
  border: 1px solid rgba(95, 103, 112, 0.42);
  background: radial-gradient(circle at top, rgba(223, 228, 233, 0.95), #ffffff 58%);
  color: #2f343a;
  text-align: center;
  padding: 20px 18px 18px;
  box-shadow:
    0 0 0 2px rgba(136, 145, 154, 0.25),
    0 20px 60px rgba(95, 103, 112, 0.25);
  animation: celebrationPop 520ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.roleta-celebration-card h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.3px;
  color: #4f5760;
  text-shadow: 0 0 14px rgba(95, 103, 112, 0.28);
}

.roleta-celebration-card p {
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: #2f343a;
}

.roleta-celebration-card p strong {
  color: #525a63;
  font-size: 1.2rem;
  text-shadow: 0 0 12px rgba(95, 103, 112, 0.25);
}

.roleta-confetti {
  position: absolute;
  inset: -30% -10%;
  background-image:
    radial-gradient(circle, rgba(140, 149, 160, 0.9) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(193, 201, 210, 0.9) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(150, 160, 171, 0.9) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(116, 126, 137, 0.9) 0 2px, transparent 2.4px);
  background-size: 56px 56px, 62px 62px, 68px 68px, 74px 74px;
  background-position: 0 0, 24px 18px, 12px 34px, 30px 8px;
  opacity: 0.55;
  animation: confettiMove 1800ms linear infinite;
}

@keyframes celebrationPop {
  0% {
    transform: scale(0.72) translateY(18px);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes roletaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes confettiMove {
  0% { transform: translateY(-6px) rotate(0deg); }
  100% { transform: translateY(22px) rotate(6deg); }
}

@keyframes rulesCardPulse {
  0%, 100% {
    opacity: 0.45;
    filter: blur(0.4px) brightness(0.95);
  }
  50% {
    opacity: 0.95;
    filter: blur(0.8px) brightness(1.15);
  }
}

@keyframes rulesCardAuraPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.995);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.01);
  }
}
.sinuca-page {
  min-height: 100vh;
  padding: 20px;
  background: inherit;
  color: #5a3d1a;
}

.sinuca-shell {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(255, 138, 3, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sinuca-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sinuca-header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  color: #5a3d1a;
}

.sinuca-header p {
  margin: 6px 0 0;
  color: #8a6b3f;
  font-size: 0.92rem;
}

.sinuca-actions {
  display: flex;
  gap: 8px;
}

.sinuca-link,
.sinuca-reset {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sinuca-link {
  color: #5a3d1a;
  background: linear-gradient(135deg, #ff8a03, #f7d981);
}

.sinuca-reset {
  color: #5a3d1a;
  background: rgba(255, 138, 3, 0.15);
}

.sinuca-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: start;
}

.sinuca-table-area {
  display: grid;
  gap: 10px;
}

.sinuca-board canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(255, 138, 3, 0.25);
  box-shadow: 0 8px 24px rgba(255, 138, 3, 0.15);
  background: #0f6b3b;
  cursor: crosshair;
}

.pocket-lane {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 12px;
  min-height: 100%;
  box-shadow: 0 4px 16px rgba(255, 138, 3, 0.08);
}

.pocket-lane h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #5a3d1a;
}

.pocket-sub {
  margin: 6px 0 10px;
  color: #8a6b3f;
  font-size: 0.78rem;
}

.pocket-track {
  border-radius: 10px;
  border: 1px dashed rgba(255, 138, 3, 0.28);
  background: rgba(255, 245, 235, 0.6);
  padding: 10px;
  min-height: 220px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.pocket-empty {
  color: #8a6b3f;
  font-size: 0.8rem;
}

.pocket-ball {
  --ball-color: #e2e8f0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #5a3d1a;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, rgba(255, 255, 255, 0.88) 20%, var(--ball-color) 58%, #c9a96e 100%);
  box-shadow: 0 5px 12px rgba(180, 83, 9, 0.3);
  animation: pocketDrop 0.5s ease both;
}

.pocket-ball.stripe {
  position: relative;
  color: #5a3d1a;
  overflow: hidden;
}

.pocket-ball.stripe::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 11px;
  height: 8px;
  background: #fff;
  border-radius: 999px;
}

.pocket-ball.stripe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

@keyframes pocketDrop {
  0% {
    transform: translateY(-18px) scale(0.85);
    opacity: 0;
  }
  70% {
    transform: translateY(2px) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hud p {
  margin: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 10px;
  padding: 9px 10px;
  color: #5a3d1a;
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .sinuca-board {
    grid-template-columns: 1fr;
  }

  .pocket-track {
    min-height: 120px;
  }
}

@media (max-width: 900px) {
  .sinuca-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hud {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Titan Labs — Checkout de pagamento (/cashin/checkout) — tema vermelho
   Escopo: .ck-page
═══════════════════════════════════════════════════════════════ */
/* host = Dashboard ao fundo + drawer por cima */
.ck-host { position: relative; }

/* backdrop só aparece no mobile (cobre a dashboard atrás) */
.ck-backdrop { display: none; }

/* Drawer "Novo Investimento" */
.ck-page-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #ffffff;
  overflow-y: auto;
}

.ck-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px 28px;
}

/* ── Header ── */
.ck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 2px;
}

.ck-back {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #16181d;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ck-back:hover { background: #e9edf1; }
.ck-back svg { width: 22px; height: 22px; }

.ck-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #16181d;
}

.ck-spacer { width: 38px; flex-shrink: 0; }

.ck-status {
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.ck-status--ok { background: #e7f7ec; color: #16a34a; }
.ck-status--wait { background: #fff4e0; color: #d98a00; }
.ck-status--bad { background: #fdeaea; color: #dc2626; }

/* ── Banner pago ── */
.ck-paid {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e7f7ec, #d6f3e0);
  border: 1px solid #b7e9c6;
  border-radius: 16px;
  padding: 14px 16px;
  animation: ck-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ck-pop {
  from { transform: translateY(-6px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.ck-paid__ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: grid;
  place-items: center;
}

.ck-paid__ic svg { width: 22px; height: 22px; }

.ck-paid__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-paid__txt strong { font-size: 0.98rem; font-weight: 800; color: #0f7a39; }
.ck-paid__txt span { font-size: 0.8rem; color: #2f9e57; }

/* ── Card principal ── */
.ck-card {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  text-align: center;
}

.ck-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ck-method {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.ck-method--pix { background: #d7f4ec; color: #0a9b7d; }
.ck-method--usdt { background: #ddf3e6; color: #15a05a; }

.ck-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e23744;
  background: #fde3e6;
  padding: 6px 11px;
  border-radius: 999px;
}

.ck-timer svg { width: 15px; height: 15px; }

.ck-amount__label {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #8a9099;
}

.ck-amount__value {
  margin: 2px 0 14px;
  font-size: 2rem;
  font-weight: 800;
  color: #16181d;
  letter-spacing: -0.5px;
}

/* ── QR ── */
.ck-qr {
  width: 230px;
  height: 230px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
}

.ck-qr__img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.ck-qr__fallback {
  font-size: 0.85rem;
  color: #9aa1a9;
  text-align: center;
}

.ck-qr__hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

/* ── Linha de aviso (memo) ── */
.ck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.ck-row span { color: #6b7280; }
.ck-row strong { color: #16181d; font-weight: 800; word-break: break-all; text-align: right; }
.ck-row--warn { background: #fff4e0; border: 1px solid #fbe2b8; }

/* ── Divisor "ou" ── */
.ck-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.ck-or span { flex: 1; height: 1px; background: #ecedf0; }
.ck-or em { font-size: 0.78rem; color: #9aa1a9; font-style: normal; }

/* ── Copiar ── */
.ck-copy__label {
  display: block;
  text-align: left;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
}

.ck-copy {
  background: #f7f8fa;
  border: 1px dashed #d6dbe1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ck-copy__code {
  display: block;
  font-size: 0.82rem;
  color: #16181d;
  word-break: break-all;
  text-align: left;
  line-height: 1.45;
  max-height: 96px;
  overflow-y: auto;
}

/* ── Botões ── */
.ck-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 13px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-decoration: none;
}

.ck-btn svg { width: 18px; height: 18px; }

.ck-btn--primary {
  background: linear-gradient(180deg, #f0444f 0%, #cf2436 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(207, 36, 54, 0.3);
}
.ck-btn--primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 28px rgba(207, 36, 54, 0.4); }

.ck-btn--link { margin-top: 14px; }

.ck-btn--copy {
  background: #16181d;
  color: #fff;
}
.ck-btn--copy:hover { transform: translateY(-2px); }
.ck-btn--copy.is-copied { background: #16a34a; }

.ck-btn--ghost {
  background: #f0f2f4;
  color: #5b626b;
}
.ck-btn--ghost:hover { background: #e6e9ed; }

.ck-btn--ok {
  width: auto;
  flex-shrink: 0;
  height: 42px;
  padding: 0 16px;
  font-size: 0.86rem;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}
.ck-btn--ok:hover { transform: translateY(-2px); }

/* ── Como pagar ── */
.ck-steps {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.ck-steps__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #16181d;
}

.ck-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.ck-step__num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fde3e6;
  color: #e23744;
  font-size: 0.82rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ck-step__text { font-size: 0.86rem; color: #4b5563; line-height: 1.45; }

/* ── ID da transação ── */
.ck-txid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 0.82rem;
}

.ck-txid span { color: #9aa1a9; }
.ck-txid strong { color: #16181d; font-weight: 700; word-break: break-all; text-align: right; }

/* ── Ações ── */
.ck-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Estado vazio ── */
.ck-empty {
  text-align: center;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 18px;
  padding: 32px 20px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.ck-empty__ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fdeaea;
  color: #dc2626;
  display: grid;
  place-items: center;
}

.ck-empty__ic svg { width: 32px; height: 32px; }
.ck-empty h2 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: #16181d; }
.ck-empty p { margin: 0 0 18px; font-size: 0.9rem; color: #6b7280; line-height: 1.5; }

/* ── Estilo "foto" do checkout (PIX) ── */
.ck-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #16181d;
}

.ck-brand__check { color: #16a34a; display: grid; place-items: center; }
.ck-brand__check svg { width: 20px; height: 20px; }

/* timer neutro como na foto */
.ck-timer {
  color: #6b7280;
  background: #f1f3f5;
}

.ck-amount__value--green { color: #16a34a; }

.ck-codebox {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #16181d;
  background: #f7f8fa;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  text-align: left;
  word-break: break-all;
  max-height: 124px;
  overflow-y: auto;
}

.ck-copylink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: #16a34a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.ck-copylink svg { width: 18px; height: 18px; }
.ck-copylink:hover { filter: brightness(0.92); }

.ck-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #fbe7b3;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8a6d1a;
}

.ck-note__ic { flex-shrink: 0; color: #e0a400; display: grid; place-items: center; }
.ck-note__ic svg { width: 18px; height: 18px; }

/* ── Botão fechar (X) + título à esquerda ── */
.ck-title--start { text-align: left; flex: 1; }

.ck-close {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #3a3f47;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.ck-close:hover { background: #eef0f2; }
.ck-close svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════════════════════
   Desktop — Dashboard ao vivo ao fundo + drawer "Novo Investimento"
   ancorado logo após a sidebar (lado a lado, sem sobrepor)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 860px) {
  /* empurra o conteúdo da dashboard para a direita do drawer */
  .ck-host .dash-main { padding-left: 700px !important; }

  /* drawer ancorado após a sidebar (272px) */
  .ck-page-drawer {
    inset: 0 auto 0 272px;
    width: 408px;
    border-right: 1px solid #eef0f2;
    box-shadow: 22px 0 50px rgba(16, 24, 40, 0.07);
  }

  .ck-page-drawer .ck-drawer-inner {
    max-width: none;
    margin: 0;
    gap: 12px;
    padding: 12px 22px 28px;
  }

  /* conteúdo liso dentro do drawer (sem moldura de card) */
  .ck-host .ck-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 0;
  }

  .ck-host .ck-header {
    border-bottom: 1px solid #eef0f2;
    padding: 6px 0 12px;
    margin-bottom: 2px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Página Carteira / Depósito — tema claro (escopo .wl)
═══════════════════════════════════════════════════════════════ */
.wl {
  --wl-bg:     #ffffff;
  --wl-card:   #ffffff;
  --wl-line:   #f1edf9;
  --wl-txt:    #1f2937;
  --wl-muted:  #9ca3af;
  --wl-green:  #16c47f;
  --wl-green2: #0f9d63;
  --wl-teal:   #7c3aed;

  min-height: 100vh;
  background: var(--wl-bg);
  color: var(--wl-txt);
  padding-bottom: 90px;
}

.wl__wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ═══ Topo: e-mail da conta ═══ */
.wl__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wl__acc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--wl-txt);
  cursor: pointer;
  padding: 0;
}
.wl__acc:disabled { cursor: default; }

.wl__acc-ic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--wl-green);
}
.wl__acc-ic svg { width: 18px; height: 18px; }

.wl__acc-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
}

.wl__acc-copy {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wl-green);
}

.wl__topbar-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wl__topbar-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f7f5fc;
  color: var(--wl-muted);
  cursor: pointer;
}
.wl__topbar-ic:hover { color: #7c3aed; background: #efe6fb; }
.wl__topbar-ic svg { width: 16px; height: 16px; }

/* ═══ Card de saldo ═══ */
.wl__card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(0deg, rgba(30, 8, 74, 0.55), rgba(30, 8, 74, 0.55)),
    url('/images/wallet-total-assets-bg.png') center / cover no-repeat,
    #7b2ff7;
  border: 1px solid transparent;
}

.wl__card-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.wl__label {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.wl__total {
  display: block;
  margin: 4px 0 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.wl__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wl__btn {
  height: 44px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.wl__btn:hover { transform: translateY(-1px); }

.wl__btn--out {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.wl__btn--out:hover { background: rgba(255, 255, 255, 0.2); }

.wl__btn--fill {
  background: #ffffff;
  border: none;
  color: #7c3aed;
}
.wl__btn--fill:hover { filter: brightness(0.97); }

.wl__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.wl__sub-val {
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.wl__btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.84rem;
  flex-shrink: 0;
}

/* ═══ Banner de foto promocional (gerenciado no admin) ═══ */
.wl__photo-banner {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.wl__photo-banner-link { display: block; }

.wl__photo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ═══ Transações ═══ */
.wl__tx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--wl-txt);
}

.wl__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--wl-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.wl__more svg { width: 15px; height: 15px; }
.wl__more:hover { color: #7c3aed; }

.wl__tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wl__tx-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--wl-muted);
  font-size: 0.86rem;
}

.wl__tx-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 10px;
}
.wl__tx-end svg { width: 46px; height: 46px; }
.wl__tx-end span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wl-muted);
}

.wl__tx {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 11px;
  background: var(--wl-card);
  border: 1px solid var(--wl-line);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
}

.wl__tx--clickable {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wl__tx--clickable:hover,
.wl__tx--clickable:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.12);
}

.wl__tx-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wl__tx-title {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wl-txt);
}
.wl__tx-title svg { width: 15px; height: 15px; color: var(--wl-muted); }

.wl__tx-amt { font-size: 0.95rem; font-weight: 800; color: #ef4444; white-space: nowrap; }
.wl__tx-amt.is-pos { color: var(--wl-green2); }

.wl__tx-date { font-size: 0.74rem; color: var(--wl-muted); }

.wl__tx-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.wl__tx-status--aprovado { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.wl__tx-status--pendente { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.wl__tx-status--processando { background: rgba(124, 58, 237, 0.12); color: var(--wl-teal); }
.wl__tx-status--falhou { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.wl__tx-status--expirado { background: rgba(107, 114, 128, 0.14); color: #6b7280; }

.wl__tx-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.wl__tx-order-code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: var(--wl-muted);
}

.wl__tx-order button {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--wl-teal);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.wl__tx-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--wl-line);
}

.wl__tx-address-label {
  font-size: 0.74rem;
  color: var(--wl-muted);
}

.wl__tx-address-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--wl-txt);
  word-break: break-all;
}

/* ═══ QR do PIX inline (bottom sheet de depósito) ═══ */
.wds__pixresult { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wds__pixresult-amt { font-size: 0.88rem; color: #6b7280; margin: 0 0 14px; }
.wds__pixresult-amt b { color: #1f2937; font-weight: 800; }
.wds__pixresult-qr {
  width: 220px; height: 220px;
  display: grid; place-items: center;
  padding: 12px; border-radius: 14px; background: #ffffff;
  border: 1px solid #f1edf9;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}
.wds__pixresult-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wds__pixresult-txt { margin: 14px 0 0; font-size: 0.8rem; color: #6b7280; max-width: 300px; }

.wds__pixresult-code {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin-top: 14px;
  border: 1px solid #f1edf9; border-radius: 10px; background: #f7f5fc;
  padding: 4px 4px 4px 12px;
}
.wds__pixresult-code span {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.78rem; color: #6b7280; text-align: left;
}
.wds__pixresult-code button {
  flex-shrink: 0; border: none; border-radius: 8px;
  background: #7c3aed; color: #ffffff;
  font-size: 0.8rem; font-weight: 700; padding: 9px 15px; cursor: pointer;
}
.wds__pixresult-code button:hover { background: #6d28d9; }

.wds__hint--ok { color: #0f9d63; margin-top: 14px; }
.wds__pixresult .wds__submit { margin-top: 6px; }

/* Info (bloco "Pagamento automático") */
.wds__info {
  border-radius: 8px; border: 1px solid #f1edf9; background: #f7f5fc;
  padding: 12px 14px;
}
.wds__info-title { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; color: #1f2937; }
.wds__info p:not(.wds__info-title) { margin: 0; font-size: 0.74rem; line-height: 1.5; color: #6b7280; }

/* ═══════════════════════════════════════════════════════════════
   Retirada — bottom sheet (escopo .wds)
═══════════════════════════════════════════════════════════════ */
.wds-back {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(31, 20, 51, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wds {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 672px;
  max-height: 94dvh;
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(124, 58, 237, 0.18);
  animation: wds-up 0.2s ease-out;
}

@keyframes wds-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.wds__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1edf9;
  background: #ffffff;
}
.wds__head h2 { margin: 0; font-size: 1rem; font-weight: 700; color: #1f2937; }
.wds__head button {
  border: none; background: transparent; color: #1f2937; cursor: pointer;
  display: grid; place-items: center; padding: 2px;
}
.wds__head button svg { width: 20px; height: 20px; }
.wds__head .wds__x { color: #9ca3af; }

.wds__scroll {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
  padding-bottom: 20px;
}

.wds__tab {
  padding: 10px 0;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: #7c3aed;
  background: #f7f5fc;
  border-bottom: 1.5px solid #ddd1f7;
}

.wds__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.wds__sec { display: flex; flex-direction: column; }
.wds__lbl-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.wds__lbl { font-size: 0.86rem; font-weight: 500; color: #374151; }
.wds__note { font-size: 0.66rem; color: #9ca3af; text-align: right; white-space: nowrap; }

/* Caixas gerais (saldo, receberei) */
.wds__box {
  border-radius: 8px;
  border: 1px solid #f1edf9;
  background: #f7f5fc;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.04);
}
.wds__box-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wds__mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; color: #1f2937; }
.wds__mono--lg { font-size: 1.25rem; }
.wds__mono--green { color: #0f9d63; }
.wds__cur { font-size: 0.9rem; font-weight: 700; color: #1f2937; }
.wds__box-hint { margin: 6px 0 0; font-size: 0.68rem; line-height: 1.35; color: #9ca3af; }

/* Caixa com chips selecionáveis (saldo de origem / método) */
.wds__box--chips { display: flex; gap: 12px; padding: 12px; background: #f7f5fc; border-color: #f1edf9; }
.wds__chip {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.wds__chip b { font-size: 0.76rem; font-weight: 700; color: #9ca3af; }
.wds__chip.is-active { border-color: #7c3aed; background: #efe6fb; color: #7c3aed; }
.wds__chip.is-active b { color: #7c3aed; }

/* Chave PIX cadastrada */
.wds__pixinfo {
  border-radius: 8px; border: 1px solid #f1edf9; background: #f7f5fc; padding: 12px;
}
.wds__pixinfo p { margin: 0; font-size: 0.8rem; font-weight: 600; color: #1f2937; }
.wds__pixinfo-key { margin-top: 4px !important; font-size: 0.76rem !important; font-weight: 500 !important; color: #6b7280 !important; }

/* Sem chave cadastrada */
.wds__empty {
  border-radius: 8px; border: 1px dashed #ddd1f7; background: #f7f5fc;
  padding: 14px 12px; text-align: center;
}
.wds__empty-ic {
  width: 36px; height: 36px; margin: 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: #efe6fb; color: #7c3aed;
}
.wds__empty-ic svg { width: 16px; height: 16px; }
.wds__empty-title { margin: 10px 0 0; font-size: 0.86rem; font-weight: 600; color: #1f2937; }
.wds__empty-txt { margin: 4px 0 0; font-size: 0.76rem; line-height: 1.4; color: #9ca3af; }
.wds__empty button {
  margin-top: 10px; border: none; background: transparent;
  color: #7c3aed; font-size: 0.86rem; font-weight: 600; cursor: pointer;
}
.wds__empty button:hover { text-decoration: underline; }

/* Inputs (endereço / valor) */
.wds__input {
  position: relative;
  border-radius: 8px; border: 1px solid #e5dff8; background: #ffffff;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.04);
  transition: border-color 0.15s ease;
}
.wds__input:focus-within { border-color: #7c3aed; }
.wds__input input {
  width: 100%; height: 44px; padding: 0 14px;
  border: none; background: transparent; outline: none;
  color: #1f2937; font-size: 0.9rem;
}
.wds__input input::placeholder { color: #9ca3af; }
.wds__input select {
  width: 100%; height: 44px; padding: 0 14px;
  border: none; background: transparent; outline: none;
  color: #1f2937; font-size: 0.9rem; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.wds__input--amt input { height: 52px; padding-right: 56px; font-family: ui-monospace, monospace; font-size: 1.25rem; font-weight: 600; }
.wds__cur--suffix {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; font-size: 0.86rem; font-weight: 700; color: #1f2937;
}

.wds__hint { margin: 6px 0 0; font-size: 0.68rem; color: #9ca3af; }

.wds__warn {
  border-radius: 8px; border: 1px solid #f1edf9; background: #f7f5fc;
  padding: 8px 12px; font-size: 0.68rem; line-height: 1.4; color: #6b7280;
}

.wds__err { margin: 0; font-size: 0.78rem; color: #ef4444; }

.wds__submit {
  height: 44px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 6px;
  background: #7c3aed; color: #ffffff;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease;
}
.wds__submit:hover:not(:disabled) { background: #6d28d9; }
.wds__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══ Barra inferior (branca, como na referência) ═══ */
.wl .bd-bottomnav {
  background: #ffffff;
  border-top: 1px solid #ecedf0;
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}
.wl .bd-bottomnav .bd-nav-item { color: #9aa1a9; }
.wl .bd-bottomnav .bd-nav-item.active { color: #7c3aed; }
.wl .bd-bottomnav .bd-nav-item.active svg {
  color: #7c3aed;
  filter: none;
}

/* Desktop: cartão central */
@media (min-width: 860px) {
  .wl { padding-bottom: 40px; }
  .wl__wrap { max-width: 560px; padding-top: 28px; }
  .wl .bd-bottomnav { display: none; }
}
/* ═══════════════════════════════════════════════════════════════
   Extrato detalhado (/wallet/transactions) — tema claro (lavanda/roxo), igual ao resto do app
═══════════════════════════════════════════════════════════════ */
.wtx {
  min-height: 100vh;
  background: #f7f5fc;
  color: #1f2937;
  padding-bottom: 32px;
}

.wtx__topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #f1edf9;
}

.wtx__back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -6px;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}
.wtx__back svg { width: 22px; height: 22px; }

.wtx__topbar-title {
  flex: 1;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 800;
  color: #7c3aed;
}

.wtx__topbar-spacer { width: 32px; }

.wtx__tabs {
  display: flex;
  margin: 12px 14px 0;
  padding: 4px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #f1edf9;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.06);
}

.wtx__tab {
  flex: 1;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 6px;
  cursor: pointer;
}

.wtx__tab.is-active {
  background: #7c3aed;
  color: #ffffff;
  font-weight: 800;
}

.wtx__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 0;
}

.wtx__empty {
  text-align: center;
  color: #9ca3af;
  padding: 60px 20px;
}

.wtx__item {
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wtx__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wtx__title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
}
.wtx__title svg { width: 15px; height: 15px; color: #7c3aed; }

.wtx__amt {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}
.wtx__amt.is-pos { color: #0f9d63; }

.wtx__date {
  font-size: 0.74rem;
  color: #9ca3af;
}

.wtx__order {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed #f1edf9;
}

.wtx__order-code {
  font-size: 0.74rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtx__order button {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}
.cp-page {
  min-height: 100vh;
  background: #f4f4f5;
}

.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px;
  background: #ffffff;
  border-bottom: 1px solid #eceef1;
  position: sticky;
  top: 0;
  z-index: 5;
}

.cp-back {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}
.cp-back svg { width: 20px; height: 20px; }

.cp-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.cp-header-spacer {
  width: 30px;
  flex-shrink: 0;
}

.cp-tabs {
  display: flex;
  gap: 28px;
  padding: 14px 18px 0;
  background: #ffffff;
  border-bottom: 1px solid #eceef1;
}

.cp-tab {
  border: none;
  background: transparent;
  padding: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
}

.cp-tab.is-active {
  color: #1f2937;
  font-weight: 700;
}

.cp-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #f59e0b;
}

.cp-content {
  min-height: calc(100vh - 110px);
  padding: 24px 14px;
}

.cp-loading {
  text-align: center;
  color: #9ca3af;
  font-size: 0.86rem;
  padding: 60px 0;
}

.cp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
}
.cp-empty svg { width: 64px; height: 64px; }

.cp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-item {
  background: #ffffff;
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cp-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
}

.cp-item-amt {
  font-size: 0.9rem;
  font-weight: 800;
  color: #16a34a;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.cp-item-date {
  font-size: 0.72rem;
  color: #9ca3af;
}

.cp-ticket {
  position: relative;
  display: flex;
  align-items: center;
  background: #1f2739;
  border-radius: 14px;
  padding: 18px 20px;
  overflow: hidden;
}

.cp-ticket-notch {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4f4f5;
  transform: translateY(-50%);
}
.cp-ticket-notch--left { left: -10px; }
.cp-ticket-notch--right { right: -10px; }

.cp-ticket-amount {
  flex: 0 0 auto;
  min-width: 88px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #22c55e;
}

.cp-ticket-divider {
  flex: 0 0 auto;
  align-self: stretch;
  width: 0;
  margin: 0 16px;
  border-left: 1.5px dashed #3f4658;
}

.cp-ticket-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cp-ticket-valid {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #9aa1b4;
}

.cp-ticket-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  background: #22c55e;
  cursor: pointer;
}

.cp-ticket-btn:disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
}
/* ═══════════════════════════════════════════════════════════════
   Página Equipe / Indicação — tema escuro (escopo .eq)
═══════════════════════════════════════════════════════════════ */
.eq {
  --eq-bg:    #ffffff;
  --eq-card:  #ffffff;
  --eq-line:  #f1edf9;
  --eq-txt:   #1f2937;
  --eq-muted: #9ca3af;
  --eq-green: #16c47f;
  --eq-red:   #f6465d;
  --eq-purple: #7c3aed;

  min-height: 100vh;
  background: var(--eq-bg);
  color: var(--eq-txt);
  padding-bottom: 90px;
}

.eq__wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ═══ Cabeçalho ═══ */
.eq__hero {
  position: relative;
  padding: 18px 18px 16px;
  background:
    linear-gradient(135deg, rgba(123, 47, 247, 0.55) 0%, rgba(76, 29, 149, 0.75) 60%, rgba(30, 12, 70, 0.85) 100%),
    url('/images/equipe-hero-bg.png') center / cover no-repeat,
    #7b2ff7;
  overflow: hidden;
}

.eq__hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eq__hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.eq__rules-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px 5px 12px;
  cursor: pointer;
}
.eq__rules-link svg { width: 13px; height: 13px; }

/* ── Painel: taxas por nível (empilhadas, à esquerda) + emblema/nível atual (à direita) ── */
.eq__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;          /* espaço para o emblema "saltar" para cima */
  padding: 18px 16px 16px;
  border-radius: 16px;
}

/* Taxas por nível — empilhadas de cima pra baixo */
.eq__rates {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eq__rate {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.eq__rate-val {
  margin: 0;
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}
.eq__rate-val span {
  font-size: 12px;
  font-weight: 700;
  margin-left: 1px;
}
.eq__rate-lbl {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

/* Coluna do emblema + nível atual */
.eq__badge-col {
  position: relative;
  width: 128px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-14px);
}

.eq__current-pill {
  position: relative;
  z-index: 11;
  white-space: nowrap;
  background: #ffffff;
  color: #151936;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(21, 25, 54, 0.18);
  margin-bottom: 6px;
}

.eq__badge-img,
.eq__badge-fallback {
  position: relative;
  z-index: 10;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28)) brightness(1.04) saturate(1.08);
}
.eq__badge-fallback svg { width: 96px; height: 96px; display: block; }

/* Nome do nível + próximo nível — abaixo do emblema, centralizado */
.eq__level-info {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  text-align: center;
}

.eq__level-name {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}
.eq__level-name span {
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.eq__level-next {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}
.eq__level-next span {
  color: #ffffff;
  font-weight: 800;
}
.eq__level-next--max {
  color: #ffffff;
  font-weight: 700;
}

/* Camadas de brilho atrás do emblema */
.eq__glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.eq__glow--circle {
  top: 34px;
  width: 118px;
  height: 118px;
  background: radial-gradient(circle, rgba(255,255,255,0.34), rgba(142,188,255,0.15) 55%, transparent 75%);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0% 50%);
  filter: blur(0.5px);
  z-index: 1;
}
.eq__glow--white {
  top: 40px;
  width: 74px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(20px);
  z-index: 2;
}
.eq__glow--lime {
  top: 92px;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(190, 242, 100, 0.42);
  filter: blur(1px);
  z-index: 3;
}

/* Banner "Convide amigos" — cartão normal, sem sobrepor nada */
.eq__promo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #efe6fb;
  border: 1px solid #ddd1f7;
}
.eq__promo-banner-img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.eq__promo-banner-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.eq__promo-banner-copy strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: #6d28d9;
}
.eq__promo-banner-copy span {
  font-size: 0.72rem;
  color: #7c5fb0;
  line-height: 1.3;
}
.eq__promo-banner-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.eq__promo-banner-btn:hover { background: #6d28d9; }

/* Ícone de ajuda "?" ao lado de alguns rótulos */
.eq__hint {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border-radius: 50%;
  border: 1px solid var(--eq-muted);
  color: var(--eq-muted);
  font-size: 9px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}

/* ═══ Resumo de comissão ═══ */
.eq__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  margin: 0 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--eq-card);
  border: 1px solid var(--eq-line);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
}

.eq__stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.eq__stat--full { grid-column: 1 / -1; }
.eq__stat-lbl { font-size: 0.76rem; color: var(--eq-muted); }
.eq__stat-val { font-size: 1.3rem; font-weight: 800; color: var(--eq-txt); letter-spacing: -0.4px; }

.eq__link {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--eq-green);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: 1px;
}
.eq__link--red { color: var(--eq-red); }
.eq__link:hover { filter: brightness(1.15); }

/* ═══ Botões de ação ═══ */
.eq__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 14px;
}

.eq__cta-copy, .eq__cta-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border: none;
  border-radius: 11px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}
.eq__cta-copy svg, .eq__cta-more svg { width: 18px; height: 18px; }
.eq__cta-copy { background: linear-gradient(135deg, #23c56b, #16a34a); }
.eq__cta-more { background: linear-gradient(135deg, #ff7a45, #f0562a); }
.eq__cta-copy:hover, .eq__cta-more:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ═══ Tabela por nível ═══ */
.eq__table { margin: 0 14px; }

.eq__table-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.eq__tab {
  border: 1px solid var(--eq-line);
  border-radius: 8px;
  background: var(--eq-card);
  color: var(--eq-muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.eq__tab.is-active { background: var(--eq-purple); border-color: var(--eq-purple); color: #fff; }

.eq__table-detail {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--eq-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.eq__table-detail:hover { color: var(--eq-purple); }

.eq__grid {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--eq-line);
}

.eq__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 14px;
  font-size: 0.86rem;
  color: #374151;
  background: var(--eq-card);
  border-bottom: 1px solid var(--eq-line);
}
.eq__row:last-child { border-bottom: none; }
.eq__row span:not(.eq__row-lbl) { text-align: center; font-weight: 700; color: var(--eq-txt); }

.eq__row--head { background: #f7f5fc; color: var(--eq-muted); font-weight: 600; }
.eq__row--head span:not(:first-child) { color: var(--eq-muted); font-weight: 600; }

.eq__row-lbl { color: var(--eq-muted); }

/* ═══ Regras ═══ */
.eq__rules {
  margin: 4px 14px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--eq-card);
  border: 1px solid var(--eq-line);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
}
.eq__rules h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--eq-txt); }
.eq__rules p { margin: 0 0 10px; font-size: 0.84rem; line-height: 1.55; color: #6b7280; }
.eq__rules p:last-child { margin-bottom: 0; }
.eq__rules strong { color: var(--eq-green); }

/* ═══ Barra inferior (branca, como na referência) ═══ */
.eq .bd-bottomnav {
  background: #ffffff;
  border-top: 1px solid #ecedf0;
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}
.eq .bd-bottomnav .bd-nav-item { color: #9aa1a9; }
.eq .bd-bottomnav .bd-nav-item.active { color: #7c3aed; }
.eq .bd-bottomnav .bd-nav-item.active svg {
  color: #7c3aed;
  filter: none;
}

/* Desktop */
@media (min-width: 860px) {
  .eq { padding-bottom: 40px; }
  .eq__wrap { max-width: 620px; }
  .eq__hero { border-radius: 0 0 16px 16px; }
  .eq .bd-bottomnav { display: none; }
}

/* ═══ Tela cheia: tabela de comissão por nível (Regras) ═══ */
.eq__rules-modal {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1f2937;
}

.eq__rules-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 12px;
  border-bottom: 1px solid #f1edf9;
  background: #ffffff;
}

.eq__rules-modal-back,
.eq__rules-modal-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 50%;
}
.eq__rules-modal-back svg,
.eq__rules-modal-close svg { width: 20px; height: 20px; }
.eq__rules-modal-back:hover,
.eq__rules-modal-close:hover { background: #f7f5fc; color: #7c3aed; }

.eq__rules-modal-close { margin-left: auto; }

.eq__rules-modal-title-main {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
.eq__rules-modal-title-sub {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #9ca3af;
}

.eq__rules-modal-body {
  flex: 1;
  overflow-y: auto;
  background: #faf9fd;
  padding: 12px 14px calc(env(safe-area-inset-bottom) + 16px);
}

.eq__rules-modal-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--eq-muted);
}

/* ── Lista de cards por VIP (sem rolagem horizontal) ── */
.eq__vip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eq__vip-card {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #f1edf9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
  padding: 14px;
}

.eq__vip-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eq__vip-card-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.eq__vip-card-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.eq__vip-card-title strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
}
.eq__vip-card-title span {
  font-size: 0.72rem;
  color: #9ca3af;
}

.eq__vip-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f1edf9;
}

.eq__vip-card-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.eq__vip-card-item span {
  font-size: 0.68rem;
  color: #9ca3af;
  line-height: 1.3;
}
.eq__vip-card-item strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: #7c3aed;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ═══════════════════════════════════════════════════════════════
   Mais maneiras — compartilhar (bottom sheet, sobe de baixo pra cima)
═══════════════════════════════════════════════════════════════ */
.eq__share-back {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(31, 20, 51, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eq__share-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(124, 58, 237, 0.2);
  padding: 12px 20px 26px;
  animation: eq-share-up 0.22s ease-out;
}

@keyframes eq-share-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.eq__share-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e5dff8;
  margin: 4px 0 12px;
}

.eq__share-sheet-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
}

.eq__share-sheet-qr {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #f1edf9;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
  display: grid;
  place-items: center;
  min-height: 168px;
  min-width: 168px;
}

.eq__share-sheet-copy {
  margin-top: 16px;
  width: 100%;
  max-width: 260px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.eq__share-sheet-copy:hover { background: #16a34a; }

.eq__share-sheet-tip {
  margin: 16px 0 4px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

.eq__share-sheet-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.eq__share-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #4b5563;
  font-size: 0.68rem;
  font-weight: 600;
}

.eq__share-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
}
.eq__share-ic svg { width: 22px; height: 22px; }

.eq__share-ic--whatsapp { background: #25d366; }
.eq__share-ic--telegram { background: #29a9eb; }
.eq__share-ic--facebook { background: #3b5998; }
.eq__share-ic--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.eq__share-ic--twitter { background: #1da1f2; }

.eq__share-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 10000;
  background: #1f2937;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: eq-share-up 0.2s ease-out;
}
/* ═══════════════════════════════════════════════════════════════
   Página Trading (gráfico de velas simulado) — escopo .tr
═══════════════════════════════════════════════════════════════ */
.tr {
  --tr-bg:     #ffffff;
  --tr-panel:  #ffffff;
  --tr-line:   #f1edf9;
  --tr-txt:    #1f2937;
  --tr-muted:  #9ca3af;
  --tr-green:  #0f9d63;
  --tr-red:    #ef4444;
  --tr-purple: #7c3aed;
  --tr-orange: #f0562a;

  min-height: 100vh;
  background: var(--tr-bg);
  color: var(--tr-txt);
  padding-bottom: 84px;
}

.tr__wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ═══ Topo ═══ */
.tr__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tr__top-l { display: flex; align-items: center; gap: 8px; }

.tr__precision {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: #f7f5fc; border: 1px solid var(--tr-line);
  color: var(--tr-txt); font-size: 0.82rem; font-weight: 700;
}

.tr__deposit-btn {
  border: none; border-radius: 999px;
  background: var(--tr-purple); color: #fff;
  font-size: 0.82rem; font-weight: 700;
  padding: 7px 16px; cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}
.tr__deposit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.tr__top-r { display: flex; align-items: center; gap: 10px; }

.tr__bal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--tr-muted);
}
.tr__bal strong { color: var(--tr-txt); font-weight: 700; font-size: 0.8rem; }

.tr__refresh {
  width: 30px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--tr-line); border-radius: 8px;
  background: #f7f5fc; color: var(--tr-muted); cursor: pointer;
}
.tr__refresh:hover { color: var(--tr-purple); }
.tr__refresh svg { width: 15px; height: 15px; }

/* ═══ Preço + par ═══ */
.tr__price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tr__price-left { display: flex; flex-direction: column; gap: 4px; }
.tr__price-line1 { display: flex; align-items: baseline; gap: 8px; }
.tr__price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.tr__price.up { color: var(--tr-green); }
.tr__price.down { color: var(--tr-red); }

.tr__chg-chip {
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700;
}
.tr__chg-chip.up { color: var(--tr-green); background: rgba(15, 157, 99, 0.1); }
.tr__chg-chip.down { color: var(--tr-red); background: rgba(239, 68, 68, 0.1); }

.tr__price-sub { display: flex; align-items: center; gap: 8px; }

.tr__live {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(15, 157, 99, 0.1); color: var(--tr-green);
  font-size: 0.68rem; font-weight: 700;
}
.tr__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--tr-green); animation: tr-blink 1.2s infinite; }
@keyframes tr-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.tr__source-lbl { font-size: 0.68rem; color: var(--tr-muted); }

.tr__pair {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: #f7f5fc;
  color: var(--tr-txt);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.tr__pair svg { width: 14px; height: 14px; color: var(--tr-muted); }
.tr__coin-ic {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #f5c451, #f0562a);
  color: #fff; font-size: 0.62rem; font-weight: 900;
}

.tr__pair-menu {
  position: absolute;
  top: 130%;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid var(--tr-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}
.tr__pair-menu button {
  border: none;
  background: transparent;
  color: var(--tr-txt);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
}
.tr__pair-menu button:hover { background: #f7f5fc; }
.tr__pair-menu button.is-active { color: var(--tr-purple); }

/* ═══ Resumo 24h ═══ */
.tr__day-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f5fc;
  border: 1px solid var(--tr-line);
}
.tr__day-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tr__day-t { font-size: 0.74rem; color: var(--tr-muted); }
.tr__day-v { font-size: 0.78rem; font-weight: 700; color: var(--tr-txt); }

/* ═══ Timeframes ═══ */
.tr__tfs { display: flex; gap: 16px; padding: 2px 2px 4px; border-bottom: 1px solid var(--tr-line); }
.tr__tf {
  border: none; background: transparent;
  color: var(--tr-muted); font-size: 0.82rem; font-weight: 700;
  padding: 4px 2px 8px; cursor: pointer; position: relative;
}
.tr__tf.is-active { color: var(--tr-txt); }
.tr__tf.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--tr-purple); border-radius: 2px;
}

/* ═══ Controles ═══ */
.tr__ctrls { display: flex; align-items: center; gap: 6px; }
.tr__ctrls button {
  width: 28px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--tr-line); border-radius: 6px;
  background: #f7f5fc; color: var(--tr-muted); cursor: pointer;
}
.tr__ctrls button:hover { color: var(--tr-purple); border-color: #ddd1f7; }
.tr__ctrls button svg { width: 15px; height: 15px; }
.tr__counter {
  margin-left: auto;
  font-size: 0.74rem; color: var(--tr-muted);
  border: 1px solid var(--tr-line); border-radius: 6px; padding: 4px 8px;
}

/* ═══ Gráfico ═══ */
.tr__chart {
  position: relative;
  touch-action: none;
  background: #ffffff;
  border: 1px solid var(--tr-line);
  border-radius: 10px;
  padding: 4px 2px 2px;
}
.tr__svg { width: 100%; height: 300px; display: block; }

.tr__grid { stroke: #f1edf9; stroke-width: 1; }
.tr__ylabel { fill: var(--tr-muted); font-size: 8px; }

.tr__line { fill: none; stroke: #f0a020; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

.tr__price-line { stroke: var(--tr-purple); stroke-width: 1; opacity: 0.55; }
.tr__price-tag { fill: var(--tr-purple); }
.tr__price-tag-txt { fill: #fff; font-size: 8.5px; font-weight: 700; text-anchor: middle; }

.tr__xaxis {
  display: flex;
  justify-content: space-between;
  padding: 3px 52px 2px 6px;
  font-size: 0.64rem;
  color: var(--tr-muted);
}

/* ═══ Crosshair + tooltip ═══ */
.tr__cross { stroke: rgba(124, 58, 237, 0.35); stroke-width: 0.7; stroke-dasharray: 3 3; }
.tr__pos-line.up { stroke: var(--tr-green); opacity: 0.7; stroke-width: 0.8; }
.tr__pos-line.down { stroke: var(--tr-red); opacity: 0.7; stroke-width: 0.8; }

.tr__tip {
  position: absolute;
  top: 6px; left: 6px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 5px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--tr-line);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
  font-size: 0.66rem; color: #4b5563;
  pointer-events: none;
}
.tr__tip span { color: var(--tr-muted); margin-right: 2px; }
.tr__tip b { color: var(--tr-muted); font-weight: 600; margin-left: 4px; }
.tr__tip em { font-style: normal; font-weight: 700; }
.tr__tip em.up { color: var(--tr-green); }
.tr__tip em.down { color: var(--tr-red); }

/* ═══ Valor da operação ═══ */
.tr__amount { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr__amount-lbl { font-size: 0.8rem; color: var(--tr-muted); font-weight: 600; }
.tr__amount-ctrl {
  display: flex; align-items: center;
  border: 1px solid var(--tr-line); border-radius: 8px; overflow: hidden; background: #f7f5fc;
}
.tr__amount-ctrl button {
  width: 34px; height: 36px; border: none; background: transparent;
  color: var(--tr-txt); font-size: 1.2rem; cursor: pointer;
}
.tr__amount-ctrl button:hover { background: #efe6fb; }
.tr__amount-ctrl input {
  width: 74px; height: 36px; border: none; background: transparent;
  color: var(--tr-txt); font-size: 0.95rem; font-weight: 700; text-align: center; outline: none;
}
.tr__amount-presets { display: flex; gap: 6px; margin-left: auto; }
.tr__amount-presets button {
  border: 1px solid var(--tr-line); border-radius: 6px; background: #f7f5fc;
  color: var(--tr-muted); font-size: 0.76rem; font-weight: 700; padding: 7px 11px; cursor: pointer;
}
.tr__amount-presets button.is-active { border-color: var(--tr-purple); color: var(--tr-purple); background: #efe6fb; }

/* ═══ Comprar / Vender ═══ */
.tr__trade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.tr__buy, .tr__sell {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: none; border-radius: 10px; padding: 12px; cursor: pointer;
  color: #fff; transition: filter 0.16s ease, transform 0.16s ease;
}
.tr__buy span, .tr__sell span { font-size: 0.98rem; font-weight: 800; }
.tr__buy small, .tr__sell small { font-size: 0.8rem; font-weight: 700; opacity: 0.92; }
.tr__buy { background: linear-gradient(135deg, #9d6dfa, #7c3aed); }
.tr__sell { background: linear-gradient(135deg, #ff7a45, #f0562a); }
.tr__buy:hover, .tr__sell:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ═══ Livro de ofertas (Pedidos / Profundidade / Introdução) ═══ */
.tr__book {
  border-radius: 12px;
  border: 1px solid var(--tr-line);
  background: #ffffff;
  overflow: hidden;
}
.tr__book-tabs {
  display: flex;
  gap: 18px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--tr-line);
}
.tr__book-tab {
  border: none; background: transparent;
  color: var(--tr-muted); font-size: 0.84rem; font-weight: 700;
  padding: 2px 0 6px; cursor: pointer; position: relative;
}
.tr__book-tab.is-active { color: var(--tr-txt); }
.tr__book-tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--tr-purple); border-radius: 2px;
}

.tr__ob { padding: 10px 14px 12px; }
.tr__ob-ratio { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 700; margin-bottom: 4px; }
.tr__ob-ratio .buy { color: var(--tr-green); }
.tr__ob-ratio .sell { color: var(--tr-red); }
.tr__ob-ratio-bar { display: flex; height: 5px; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.tr__ob-ratio-bar .buy { background: var(--tr-green); }
.tr__ob-ratio-bar .sell { background: var(--tr-red); }

.tr__ob-head {
  display: grid; grid-template-columns: 1fr 1fr;
  font-size: 0.68rem; color: var(--tr-muted); font-weight: 600;
  margin-bottom: 4px;
}
.tr__ob-head span:first-child { text-align: left; }
.tr__ob-head span:nth-child(2) { text-align: center; grid-column: span 1; }
.tr__ob-head span:last-child { text-align: right; }

.tr__ob-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr__ob-col { display: flex; flex-direction: column; gap: 2px; }

.tr__ob-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 4px;
  border-radius: 3px;
  overflow: hidden;
}
.tr__ob-row.buy { color: var(--tr-txt); }
.tr__ob-row.sell { color: var(--tr-txt); }
.tr__ob-qty { position: relative; z-index: 1; }
.tr__ob-price { position: relative; z-index: 1; font-weight: 700; }
.tr__ob-row.buy .tr__ob-qty { text-align: left; }
.tr__ob-row.buy .tr__ob-price { text-align: right; color: var(--tr-green); }
.tr__ob-row.sell .tr__ob-price { text-align: left; color: var(--tr-red); }
.tr__ob-row.sell .tr__ob-qty { text-align: right; }

.tr__ob-bg {
  position: absolute; top: 0; bottom: 0; z-index: 0;
}
.tr__ob-row.buy .tr__ob-bg { right: 0; background: rgba(15, 157, 99, 0.12); }
.tr__ob-row.sell .tr__ob-bg { right: 0; background: rgba(239, 68, 68, 0.12); }

/* ═══ Profundidade ═══ */
.tr__depth { padding: 10px 14px 14px; }
.tr__depth-ts { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; font-weight: 700; margin-bottom: 6px; }
.tr__depth-ts .buy { color: var(--tr-green); }
.tr__depth-ts .sell { color: var(--tr-red); }
.tr__depth-svg { width: 100%; height: 160px; display: block; }
.tr__depth-svg polygon.bid { fill: rgba(15, 157, 99, 0.18); stroke: var(--tr-green); stroke-width: 1; }
.tr__depth-svg polygon.ask { fill: rgba(239, 68, 68, 0.18); stroke: var(--tr-red); stroke-width: 1; }
.tr__depth-svg line.mid { stroke: var(--tr-muted); stroke-width: 1; }

/* ═══ Introdução ═══ */
.tr__intro { padding: 10px 14px 16px; }
.tr__intro-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.tr__intro-table td {
  padding: 9px 8px; border-bottom: 1px solid var(--tr-line); color: var(--tr-txt);
}
.tr__intro-table td:first-child { color: var(--tr-muted); width: 46%; }
.tr__intro-table tr.tr__intro-first td { font-weight: 700; color: var(--tr-txt); }
.tr__intro-h { margin: 14px 0 6px; font-size: 0.86rem; font-weight: 800; color: var(--tr-txt); }
.tr__intro-p { margin: 0; font-size: 0.78rem; line-height: 1.6; color: #6b7280; }

/* ═══ Abas de ordens (posições demo) ═══ */
.tr__otabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr__otab {
  border: 1px solid var(--tr-line); border-radius: 7px;
  background: #f7f5fc; color: var(--tr-muted);
  font-size: 0.82rem; font-weight: 700; padding: 9px 4px; cursor: pointer;
  position: relative;
}
.tr__otab.is-active { color: var(--tr-txt); border-color: #ddd1f7; background: #efe6fb; }

.tr__otab-badge {
  display: inline-grid; place-items: center;
  min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px;
  border-radius: 8px; background: var(--tr-purple); color: #fff; font-size: 0.62rem; font-weight: 800;
}

/* ═══ Painel das abas ═══ */
.tr__panel { display: flex; flex-direction: column; gap: 8px; min-height: 48px; }
.tr__empty { text-align: center; padding: 22px 10px; color: var(--tr-muted); font-size: 0.82rem; }

.tr__order {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 9px;
  background: #ffffff; border: 1px solid var(--tr-line);
}
.tr__order-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tr__order-l strong { font-size: 0.86rem; color: var(--tr-txt); }
.tr__order-l small { font-size: 0.68rem; color: var(--tr-muted); }
.tr__order-side {
  align-self: flex-start; padding: 1px 6px; border-radius: 4px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em;
}
.tr__order-side.buy { background: rgba(124, 58, 237, 0.12); color: var(--tr-purple); }
.tr__order-side.sell { background: rgba(240, 86, 42, 0.12); color: var(--tr-orange); }
.tr__order-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tr__order-r strong, .tr__order strong.up { color: var(--tr-green); }
.tr__order strong.down { color: var(--tr-red); }
.tr__order-r strong { font-size: 0.98rem; font-weight: 800; }
.tr__order-close {
  border: 1px solid var(--tr-line); border-radius: 6px; background: transparent;
  color: var(--tr-muted); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; cursor: pointer;
}
.tr__order-close:hover { color: var(--tr-purple); border-color: #ddd1f7; }

/* Lista de pares */
.tr__pairs { display: flex; flex-direction: column; gap: 6px; }
.tr__pairrow {
  display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 8px;
  padding: 11px 13px; border-radius: 9px; cursor: pointer; text-align: left;
  background: #ffffff; border: 1px solid var(--tr-line); color: var(--tr-txt);
}
.tr__pairrow.is-active { border-color: var(--tr-purple); }
.tr__pairrow strong { font-size: 0.86rem; }
.tr__pairrow-p { font-size: 0.84rem; font-weight: 700; text-align: right; }
.tr__pairrow-c { font-size: 0.78rem; font-weight: 700; text-align: right; }
.tr__pairrow-c.up { color: var(--tr-green); }
.tr__pairrow-c.down { color: var(--tr-red); }

/* ═══ Take profit / Stop loss ═══ */
.tr__pset { display: flex; flex-direction: column; gap: 7px; }
.tr__pset-lbl { margin: 2px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--tr-txt); }
.tr__pset-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.tr__pbtn {
  border: 1px solid var(--tr-line); border-radius: 6px;
  background: #f7f5fc; color: var(--tr-muted);
  font-size: 0.76rem; font-weight: 700; padding: 9px 2px; cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.tr__pbtn:hover { color: var(--tr-txt); }
.tr__pbtn.is-active { border-color: var(--tr-green); color: var(--tr-green); background: rgba(15, 157, 99, 0.1); }
.tr__pbtn--sl.is-active { border-color: var(--tr-red); color: var(--tr-red); background: rgba(239, 68, 68, 0.1); }

/* ═══ Toast ═══ */
.tr__toast {
  position: fixed;
  left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 2000;
  max-width: 92%;
  padding: 11px 16px; border-radius: 10px;
  background: #1f2937; border: 1px solid #374151; color: #fff;
  font-size: 0.82rem; font-weight: 600; text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: tr-toast 0.24s ease;
}
@keyframes tr-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ═══ Barra inferior (branca, como na referência) ═══ */
.tr .bd-bottomnav {
  background: #ffffff;
  border-top: 1px solid #ecedf0;
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}
.tr .bd-bottomnav .bd-nav-item { color: #9aa1a9; }
.tr .bd-bottomnav .bd-nav-item.active { color: #7c3aed; }
.tr .bd-bottomnav .bd-nav-item.active svg {
  color: #7c3aed;
  filter: none;
}

@media (min-width: 860px) {
  .tr { padding-bottom: 30px; }
  .tr__wrap { max-width: 620px; padding-top: 18px; }
  .tr .bd-bottomnav { display: none; }
}
/* ═══════════════════════════════════════════════════════════════
   VIP — tema laranja TRK
═══════════════════════════════════════════════════════════════ */

.vip-page {
  min-height: 100vh;
  padding: 24px 16px 100px;
  color: #5a3d1a;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 211, 138, 0.55), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 3, 0.28), transparent 34%),
    linear-gradient(170deg, #fff5eb 0%, #ffe1b8 50%, #fec075 100%);
  position: relative;
  z-index: 2;
}

.vip-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(#fff5eb, #fec075);
  z-index: -1;
  pointer-events: none;
}

.vip-shell {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

/* ── Hero banner VIP ─────────────────────────────────── */
.vip-hero {
  position: relative;
  border-radius: 22px;
  padding: 28px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, #ff8a03 0%, #f7a93b 55%, #f7d981 100%);
  box-shadow: 0 20px 44px rgba(255, 138, 3, 0.3);
  color: #ffffff;
  overflow: hidden;
}

.vip-hero::before,
.vip-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.vip-hero::before {
  width: 180px;
  height: 180px;
  right: -50px;
  top: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
}

.vip-hero::after {
  width: 140px;
  height: 140px;
  left: -40px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.vip-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.vip-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin: 10px auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vip-hero__badge svg {
  flex-shrink: 0;
}

.vip-hero__content > div {
  text-align: center;
}

.vip-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.vip-hero h1 {
  margin: 6px 0 8px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 8px rgba(180, 83, 9, 0.4);
}

.vip-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  max-width: 540px;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.25);
}

.vip-back {
  align-self: flex-start;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #ff8a03;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(255, 138, 3, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.vip-back:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ── Mensagens e estados ─────────────────────────────── */
.vip-message {
  margin: 0;
  border: 1px solid rgba(255, 138, 3, 0.45);
  background: rgba(255, 138, 3, 0.12);
  color: #8a5300;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.vip-loading {
  border: 1px solid rgba(255, 138, 3, 0.25);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  color: #8a5300;
  font-weight: 600;
  text-align: center;
}

/* ── Seções VIP ─────────────────────────────────────── */
.vip-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #5a3d1a;
  letter-spacing: 0.2px;
}

.vip-section-title svg {
  color: #ff8a03;
  flex-shrink: 0;
}

.vip-active-section {
  display: grid;
  gap: 12px;
}

.vip-active-section .vip-card {
  max-width: 480px;
}

.vip-available-section {
  display: grid;
  gap: 12px;
}

/* ── Grid de planos VIP ──────────────────────────────── */
.vip-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.vip-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(255, 138, 3, 0.10);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.vip-card:hover {
  transform: translateY(-3px);
  border-color: #ff8a03;
  box-shadow: 0 16px 36px rgba(255, 138, 3, 0.22);
}

.vip-card.active {
  border-color: #ff8a03;
  box-shadow: 0 16px 36px rgba(255, 138, 3, 0.28);
}

/* ── Imagem do VIP ── */
.vip-card__img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.vip-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vip-card__img-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(255, 138, 3, 0.92), rgba(255, 179, 71, 0.92));
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(255, 138, 3, 0.35);
}

.vip-card__img-active {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 122, 58, 0.90);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(45, 122, 58, 0.30);
}

/* ── Corpo do card ── */
.vip-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.vip-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vip-price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.vip-price small {
  color: #8a6b3f;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vip-card-top strong {
  color: #ff8a03;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}

/* ── Info rows (texto com ícones) ── */
.vip-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vip-card__info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid rgba(255, 138, 3, 0.12);
  font-size: 0.88rem;
  color: #5a3d1a;
  font-weight: 500;
}

.vip-card__info-row svg {
  color: #ff8a03;
  flex-shrink: 0;
}

.vip-card__info-row strong {
  font-weight: 800;
  color: #5a3d1a;
}

.vip-card__info-row--highlight {
  background: linear-gradient(135deg, #fff5eb, #ffecd0);
  border-color: rgba(255, 138, 3, 0.22);
}

.vip-card__info-row--highlight strong {
  color: #ff8a03;
}

/* ── Benefícios (texto livre) ── */
.vip-card__benefits {
  margin: 0;
  font-size: 0.84rem;
  color: #8a6b3f;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 138, 3, 0.05);
  border-left: 3px solid rgba(255, 138, 3, 0.35);
}

/* ── Botão de ativar ── */
.vip-btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(90deg, #f7d981, #ff8a03);
  color: #ffffff;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 22px rgba(255, 138, 3, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.vip-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.vip-btn:disabled {
  background: #ffe1b8;
  color: #8a6b3f;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.9;
}

.vip-card.active .vip-btn:disabled {
  background: linear-gradient(90deg, #8a5300, #ff8a03);
  color: #ffffff;
  opacity: 1;
}

/* ── VIPs desativados ────────────────────────────────── */
.vip-disabled-section {
  display: grid;
  gap: 12px;
}

.vip-section-title--disabled {
  color: #8a6b3f;
}

.vip-section-title--disabled svg {
  color: #b09070;
}

.vip-card--disabled {
  opacity: 0.55;
  filter: grayscale(0.4);
  border-color: rgba(150, 130, 100, 0.25);
  box-shadow: 0 4px 12px rgba(150, 130, 100, 0.08);
}

.vip-card--disabled:hover {
  transform: none;
  border-color: rgba(150, 130, 100, 0.35);
  box-shadow: 0 4px 12px rgba(150, 130, 100, 0.12);
}

.vip-card__img-disabled {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(140, 100, 60, 0.85);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(140, 100, 60, 0.25);
}

.vip-btn--disabled {
  background: #d4c4a8 !important;
  color: #7a6a50 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ── Requisitos de convite ─────────────────────────────── */
.vip-requirements {
  background: linear-gradient(135deg, #fff8ef, #fff1de);
  border: 1px solid rgba(255, 138, 3, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
}

.vip-requirements__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8a5300;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vip-requirements__title svg {
  color: #ff8a03;
  flex-shrink: 0;
}

.vip-requirements__list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vip-requirements__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 70px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 138, 3, 0.18);
  border-radius: 10px;
  padding: 8px 6px;
}

.vip-requirements__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a6b3f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vip-requirements__item strong {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ff8a03;
}

.vip-requirements__sub {
  font-size: 0.68rem;
  color: #8a6b3f;
  font-weight: 500;
}

/* ── Responsividade ──────────────────────────────────── */
@media (min-width: 720px) {
  .vip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-card__img-wrap {
    height: 180px;
  }
}

@media (min-width: 1000px) {
  .vip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vip-card__img-wrap {
    height: 190px;
  }
}

/* ── Bottom nav page-level color overrides ─────────── */
.vip-page .dash-bottom-nav button {
  color: #6b5a3f;
}

.vip-page .dash-bottom-nav button.active {
  background: rgba(255, 138, 3, 0.15);
  color: #ff8a03;
}

/* ── Sidebar (mesma aparência do Dashboard) ─────────── */
.vip-page .dash-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(122, 93, 58, 0.15);
  color: #5a3d1a;
}

.vip-page .dash-brand strong {
  color: #5a3d1a;
}

.vip-page .dash-brand small {
  color: #8a6b3f;
}

.vip-page .dash-nav-item {
  color: #6b5a3f;
}

.vip-page .dash-nav-item.active {
  background: rgba(255, 138, 3, 0.12);
  color: #ff8a03;
}

.vip-page .dash-nav-item:hover {
  background: rgba(255, 138, 3, 0.08);
}

.vip-page .dash-overlay {
  background: rgba(95, 61, 26, 0.4);
}

@media (max-width: 560px) {
  .vip-hero {
    padding: 22px 18px;
  }

  .vip-hero h1 {
    font-size: 1.6rem;
  }

  .vip-card__img-wrap {
    height: 160px;
  }

  .vip-card-top strong {
    font-size: 1.4rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   VIP Checkout — tema laranja TRK
═══════════════════════════════════════════════════════════════ */

.vip-checkout-page {
  min-height: 100vh;
  padding: 24px 16px 100px;
  color: #5a3d1a;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 211, 138, 0.55), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 3, 0.28), transparent 34%),
    linear-gradient(170deg, #fff5eb 0%, #ffe1b8 50%, #fec075 100%);
  position: relative;
  z-index: 2;
}

.vip-checkout-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(#fff5eb, #fec075);
  z-index: -1;
  pointer-events: none;
}

.vip-checkout-shell {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

/* ── Header ── */
.vip-checkout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vip-checkout-back {
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(255, 138, 3, 0.35);
  color: #ff8a03;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 138, 3, 0.18);
  transition: transform 0.15s ease;
}

.vip-checkout-back:hover {
  transform: translateY(-1px);
}

.vip-checkout-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #5a3d1a;
}

/* ── Mensagens ── */
.vip-checkout-message {
  border: 1px solid rgba(255, 138, 3, 0.45);
  background: rgba(255, 138, 3, 0.12);
  color: #8a5300;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.vip-checkout-message--success {
  border-color: rgba(45, 122, 58, 0.45);
  background: rgba(45, 122, 58, 0.10);
  color: #2d6e2e;
}

.vip-checkout-message--error {
  border-color: rgba(220, 53, 69, 0.45);
  background: rgba(220, 53, 69, 0.08);
  color: #9b2226;
}

.vip-checkout-loading {
  border: 1px solid rgba(255, 138, 3, 0.25);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  color: #8a5300;
  font-weight: 600;
  text-align: center;
}

/* ── Card do plano ── */
.vip-checkout-plan-card {
  background: #ffffff;
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 138, 3, 0.10);
}

.vip-checkout-plan-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.vip-checkout-plan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vip-checkout-plan-name-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(255, 138, 3, 0.92), rgba(255, 179, 71, 0.92));
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(255, 138, 3, 0.35);
}

.vip-checkout-plan-body {
  padding: 18px 20px 20px;
}

/* ── Tabela de detalhes do plano ── */
.vip-checkout-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.vip-checkout-table th,
.vip-checkout-table td {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 138, 3, 0.12);
}

.vip-checkout-table th {
  color: #8a6b3f;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff8ef;
}

.vip-checkout-table td {
  color: #5a3d1a;
  font-weight: 600;
}

.vip-checkout-table tr:last-child td {
  border-bottom: none;
}

.vip-checkout-table .vip-checkout-highlight {
  color: #ff8a03;
  font-weight: 800;
}

/* ── Seção de comissões ── */
.vip-checkout-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #5a3d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.vip-checkout-section-title svg {
  color: #ff8a03;
}

.vip-checkout-commission-card {
  background: #ffffff;
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 138, 3, 0.10);
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.vip-checkout-commission-table {
  width: 100%;
  border-collapse: collapse;
}

.vip-checkout-commission-table th,
.vip-checkout-commission-table td {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 138, 3, 0.12);
}

.vip-checkout-commission-table th {
  color: #8a6b3f;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff8ef;
}

.vip-checkout-commission-table td {
  color: #5a3d1a;
  font-weight: 600;
}

.vip-checkout-commission-table tr:last-child td {
  border-bottom: none;
}

.vip-checkout-commission-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 138, 3, 0.12), rgba(255, 179, 71, 0.12));
  border: 1px solid rgba(255, 138, 3, 0.3);
  color: #ff8a03;
}

.vip-checkout-commission-percent {
  color: #ff8a03;
  font-weight: 800;
  font-size: 1rem;
}

.vip-checkout-commission-desc {
  margin: 0;
  color: #8a6b3f;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

.vip-checkout-commission-table .vip-checkout-highlight {
  color: #ff8a03;
  font-weight: 800;
}

/* ── Bloco de explicação ── */
.vip-checkout-explanation {
  background: linear-gradient(135deg, #fff8ef, #fff3e0);
  border: 1px solid rgba(255, 138, 3, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.vip-checkout-explanation p {
  margin: 0;
  color: #5a3d1a;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}

.vip-checkout-example-list,
.vip-checkout-bonus-list {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 6px;
}

.vip-checkout-example-list li,
.vip-checkout-bonus-list li {
  color: #5a3d1a;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

.vip-checkout-example-list li strong,
.vip-checkout-bonus-list li strong {
  color: #ff8a03;
}

.vip-checkout-explanation-note {
  color: #8a6b3f !important;
  font-size: 0.82rem !important;
  font-style: italic;
  border-top: 1px solid rgba(255, 138, 3, 0.15);
  padding-top: 10px;
}

.vip-checkout-cta-text {
  color: #ff8a03 !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  text-align: center;
  background: rgba(255, 138, 3, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

/* ── Aviso de troca de plano (upgrade) ── */
.vip-checkout-upgrade-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fff8ef, #fff3e0);
  border: 1px solid rgba(255, 138, 3, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
}

.vip-checkout-upgrade-notice > svg {
  flex-shrink: 0;
  color: #ff8a03;
  margin-top: 2px;
}

.vip-checkout-upgrade-notice strong {
  display: block;
  color: #8a5300;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.vip-checkout-upgrade-notice p {
  margin: 0;
  color: #5a3d1a;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ── Botão de confirmar ── */
.vip-checkout-actions {
  display: grid;
  gap: 10px;
}

.vip-checkout-confirm-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(90deg, #f7d981, #ff8a03);
  color: #ffffff;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 22px rgba(255, 138, 3, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.vip-checkout-confirm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.vip-checkout-confirm-btn:disabled {
  background: #ffe1b8;
  color: #8a6b3f;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.9;
}

/* ── Modal ── */
.vip-checkout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vipModalFadeIn 0.2s ease;
}

@keyframes vipModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vipModalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vip-checkout-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: vipModalSlideUp 0.25s ease;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.vip-checkout-modal--error .vip-checkout-modal-icon svg {
  color: #dc3545;
}

.vip-checkout-modal--success .vip-checkout-modal-icon svg {
  color: #2d6e2e;
}

.vip-checkout-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-checkout-modal--error .vip-checkout-modal-icon {
  background: rgba(220, 53, 69, 0.08);
  border: 2px solid rgba(220, 53, 69, 0.2);
}

.vip-checkout-modal--success .vip-checkout-modal-icon {
  background: rgba(45, 110, 46, 0.08);
  border: 2px solid rgba(45, 110, 46, 0.2);
}

.vip-checkout-modal-text {
  margin: 0;
  color: #5a3d1a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.vip-checkout-modal-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 40px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.vip-checkout-modal--error .vip-checkout-modal-btn {
  background: linear-gradient(90deg, #ff6b6b, #dc3545);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.3);
}

.vip-checkout-modal--success .vip-checkout-modal-btn {
  background: linear-gradient(90deg, #6dd56d, #2d6e2e);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(45, 110, 46, 0.3);
}

.vip-checkout-modal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ── Scroll horizontal para tabelas com muitas colunas ── */
.vip-checkout-commission-card {
  overflow-x: auto;
}

/* ── Wallet Selector ── */
.vip-checkout-wallet-section {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,138,3,0.22);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vip-checkout-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.vip-checkout-wallet-card {
  border: 2px solid rgba(255,138,3,0.22);
  border-radius: 14px;
  padding: 16px 14px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.2s;
  text-align: left;
}

.vip-checkout-wallet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vip-checkout-wallet-card--selected {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.vip-checkout-wallet-icon {
  font-size: 1.5rem;
  width: 36px;
  text-align: center;
}

.vip-checkout-wallet-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.vip-checkout-wallet-label {
  font-size: 0.8rem;
  color: #8a6b3f;
  font-weight: 600;
}

.vip-checkout-wallet-value {
  font-size: 1rem;
  font-weight: 800;
}

.vip-checkout-wallet-check {
  position: absolute;
  top: 8px;
  right: 8px;
}

.vip-checkout-wallet-hint {
  font-size: 0.78rem;
  color: #a08050;
  text-align: center;
  margin: 0;
}

/* ── Wallet Select ── */
.vip-checkout-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vip-checkout-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid rgba(255,138,3,0.22);
  border-radius: 14px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5a3d1a;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vip-checkout-select:focus {
  border-color: #ff8a03;
  box-shadow: 0 0 0 3px rgba(255,138,3,0.15);
}

.vip-checkout-select-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: #a08050;
}

/* ── Responsividade ── */
@media (max-width: 560px) {
  .vip-checkout-header h1 {
    font-size: 1.25rem;
  }

  .vip-checkout-plan-img-wrap {
    height: 160px;
  }

  .vip-checkout-table th,
  .vip-checkout-table td,
  .vip-checkout-commission-table th,
  .vip-checkout-commission-table td {
    padding: 9px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .vip-checkout-commission-table {
    min-width: 520px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Detalhe do contrato (/contracts/:slug?contractId=) — tema escuro
═══════════════════════════════════════════════════════════════ */
.cd {
  --cd-bg:    #ffffff;
  --cd-card:  #ffffff;
  --cd-line:  #f1edf9;
  --cd-txt:   #1f2937;
  --cd-muted: #9ca3af;
  --cd-green: #0f9d63;
  --cd-purple: #7c3aed;

  min-height: 100vh;
  background: var(--cd-bg);
  color: var(--cd-txt);
  padding-bottom: 90px;
}

.cd__topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cd-line);
}

.cd__back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -6px;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}
.cd__back svg { width: 18px; height: 18px; }

.cd__topbar-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__topbar-spacer { width: 32px; }

.cd__wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cd-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--cd-muted, #7b8a9a);
}

.cd-empty-btn {
  display: block;
  margin: 0 auto;
  border: none;
  background: #16c47f;
  color: #06120c;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
}

.surface-card {
  background: var(--cd-card);
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.07);
}

.cd__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.cd__head--centered {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 14px 4px;
  background: transparent;
  border: none;
}

.cd__avatar--lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.4rem;
}

.cd__head-name--centered {
  font-size: 1rem;
}

.cd__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
}

.cd__avatar-img {
  object-fit: cover;
}

.cd__head-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cd__head-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__head-sub {
  font-size: 0.76rem;
  color: var(--cd-muted);
}

.cd__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cd__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--cd-line);
  background: var(--cd-card);
  text-align: center;
}

.cd__metrics--tight .cd__metric { padding: 9px 6px; }

.cd__metrics--boxed {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  padding: 4px;
}
.cd__metrics--boxed .cd__metric {
  border: none;
  background: transparent;
  gap: 2px;
  padding: 10px 6px;
}
.cd__metrics--boxed .cd__metric-val { font-size: 0.95rem; }
.cd__metrics--boxed .cd__metric-lbl { font-size: 0.66rem; }

.cd__metric-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cd-muted);
}

.cd__metric-val {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cd-green);
}

.cd__panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cd__panel-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__panel-sub {
  margin: 3px 0 0;
  font-size: 0.72rem;
  color: var(--cd-muted);
}

.cd__status {
  flex-shrink: 0;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(15, 157, 99, 0.12);
  color: var(--cd-green);
}
.cd__status.is-done {
  background: #f3f4f6;
  color: #9ca3af;
}

.cd__progress-box {
  border-radius: 10px;
  border: 1px solid var(--cd-line);
  background: #f7f5fc;
  padding: 12px;
}

.cd__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--cd-muted);
}
.cd__progress-head strong { color: var(--cd-green); }

.cd__progress-track {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece5f9;
}

.cd__progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--cd-green);
}

.cd__progress-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--cd-muted);
}

.cd__cta {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--cd-green);
  color: #06120c;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  margin-bottom: 8px;
}

.cd .bd-bottomnav {
  background: #ffffff;
  border-top: 1px solid #ecedf0;
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
}
.cd .bd-bottomnav .bd-nav-item { color: #9aa1a9; }
.cd .bd-bottomnav .bd-nav-item.active { color: #7c3aed; }
.cd .bd-bottomnav .bd-nav-item.active svg { filter: none; }

/* ── Plano disponível ── */
.cd__plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd__plan-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cd-muted);
}

.cd__plan-row {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.cd__plan-days {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__plan-sub {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--cd-muted);
}

.cd__plan-right { text-align: right; }

.cd__plan-pct {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cd-green);
}

/* ── Hero: cartão roxo com o perfil do trader ── */
.cd__hero {
  border-radius: 16px;
  padding: 18px 16px;
  background-color: #6d28d9;
  background-image: linear-gradient(135deg, #8b5cf6, #6d28d9);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.28);
  color: #ffffff;
}

.cd__hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd__hero-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.cd__hero-avatar--fallback {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 1.1rem;
}

.cd__hero-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cd__hero-name {
  font-size: 0.98rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd__hero-link {
  font-size: 0.72rem;
  color: #fde68a;
  font-weight: 600;
}

.cd__hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 8px;
}

.cd__hero-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cd__hero-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

.cd__hero-lbl {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Cartão de assinatura ── */
.cd__sub-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cd__sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cd__sub-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cd__sub-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cd__sub-avatar--fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
  font-weight: 800;
}

.cd__sub-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__sub-term {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--cd-green);
}

.cd__sub-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.cd__sub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--cd-line);
}

.cd__sub-stat-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

.cd__sub-stat-lbl {
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--cd-muted);
}

/* ── Tabs Gráficos / Históricas / Ordens históricas ── */
.cd__tabs-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--cd-card);
  border: 1px solid var(--cd-line);
}

.cd__tabs-head--three {
  grid-template-columns: repeat(3, 1fr);
}
.cd__tabs-head--three .cd__tab {
  font-size: 0.76rem;
  padding: 8px 2px;
}

.cd__tab {
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--cd-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
}
.cd__tab.is-active {
  background: var(--cd-purple);
  color: #ffffff;
}

.cd__tab-panel {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd__chart-card { padding: 12px; }

.cd__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cd-muted);
}
.cd__chart-head strong { color: var(--cd-green); font-size: 0.8rem; text-transform: none; letter-spacing: 0; }
.cd__chart-head-muted { text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
.cd__chart-head-muted--block { display: block; margin-top: 2px; }

.cd__chart-area {
  display: block;
  width: 100%;
  height: 130px;
  margin-top: 10px;
}

.cd__chart-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.64rem;
  color: var(--cd-muted);
}

.cd__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  margin-top: 12px;
}

.cd__bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.cd__bar {
  width: 100%;
  max-width: 22px;
  border-radius: 4px 4px 0 0;
  background: var(--cd-green);
}

.cd__bar-col span {
  font-size: 0.62rem;
  color: var(--cd-muted);
}

.cd__rules {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--cd-line);
  background: var(--cd-card);
}
.cd__rules p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b7280;
}
.cd__rules p:last-child { margin-bottom: 0; }
.cd__rules strong { color: var(--cd-green); }

/* ── Preferências (donut) ── */
.cd__donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.cd__donut {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.cd__donut-hole {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--cd-card);
}

.cd__donut-legend {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cd__donut-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
}

.cd__donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cd__donut-sym {
  flex: 1;
  color: #1f2937;
  font-weight: 600;
}

.cd__donut-pct {
  color: var(--cd-muted);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ── Históricas ── */
.cd__hist-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd__hist-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cd__hist-right { text-align: right; }

.cd__hist-win {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cd-green);
}

.cd__hist-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__hist-lbl {
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--cd-muted);
}

/* ── Ordens históricas ── */
.cd__order-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd__order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd__order-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd__order-sym {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
}

.cd__order-side {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 6px;
}
.cd__order-side--buy { color: var(--cd-green); background: rgba(15, 157, 99, 0.1); }
.cd__order-side--sell { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.cd__order-win { color: var(--cd-green); font-weight: 700; }
.cd__order-lose { color: #ef4444; font-weight: 700; }

.cd__order-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--cd-muted);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--cd-line);
}

.cd__order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.cd__order-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.cd__order-grid span { color: var(--cd-muted); }
.cd__order-grid strong {
  color: #1f2937;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-weight: 600;
}
/* ═══════════════════════════════════════════════════════════════
   Regras de subscrição (/strategy/rule) — mesmo tema claro do app
═══════════════════════════════════════════════════════════════ */
.rule-page.cd { background: #f7f5fc; }

.rule-box {
  padding: 18px 16px;
}

/* ── Indicador de etapas (Subscrever → T+n dias) ── */
.rule-step-box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 6px;
  margin-bottom: 10px;
}

.rule-step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  z-index: 1;
}

.rule-step--active {
  background: #f7931a;
  box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.15);
}

.rule-step:last-of-type {
  margin-left: auto;
}

.rule-line {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.rule-step-word {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rule-word {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
}

.rule-word:last-child {
  text-align: right;
}

.rule-sub {
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #f7931a;
  min-height: 14px;
}

.rule-content p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #9ca3af;
}
.rule-content p:last-child { margin-bottom: 0; }

.rule-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 10px;
}

.rule-box .rule-title:not(:first-child) {
  margin-top: 18px;
}

.rule-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1edf9;
  font-size: 0.86rem;
}

.rule-li:last-of-type {
  border-bottom: none;
}

.rule-item {
  color: #1f2937;
  font-weight: 600;
}

.rule-item--free {
  color: #f7931a;
  font-weight: 700;
}
/* ═══════════════════════════════════════════════════════════════
   Detalhes da equipe (/team/details)
═══════════════════════════════════════════════════════════════ */
.td {
  min-height: 100vh;
  background: #f7f5fc;
  color: #1f2937;
}

.td__topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #f1edf9;
}

.td__back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -6px;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}
.td__back svg { width: 18px; height: 18px; }

.td__topbar-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.td__topbar-spacer { width: 32px; }

.td__wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 12px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.surface-card-td {
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.td__summary {
  padding: 16px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
}

.td__summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.td__summary-lbl {
  font-size: 0.72rem;
  color: #a78bfa;
}

.td__summary-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}

.td__sub-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #4c1d95;
  padding-left: 2px;
}

.td__empty {
  text-align: center;
  color: #9ca3af;
  padding: 30px 0;
}

.td__empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 0.86rem;
}

.td__empty-icon {
  width: 72px;
  height: 72px;
}

.td__table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.td__table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
  font-size: 0.78rem;
}

.td__table th,
.td__table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #f1edf9;
}

.td__table thead th {
  color: #1f2937;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.3;
  background: #ffffff;
  white-space: normal;
  width: 130px;
  vertical-align: top;
}

.td__table tbody td {
  color: #1f2937;
  font-weight: 600;
}

.td__sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ffffff;
  box-shadow: 1px 0 0 #f1edf9;
  text-align: left;
  font-weight: 700;
  width: 84px;
}

.td__table thead .td__sticky-col {
  background: #ffffff;
  z-index: 3;
}
/* ═══════════════════════════════════════════════════════════════
   Titan Labs — Conta Bancária (/bank-cards) — tema vermelho
   Escopo: .bc-page  (reusa .bd-topbar / .bd-bottomnav do Dashboard.css)
═══════════════════════════════════════════════════════════════ */
.bc-page {
  background: #f7f8fa;
}

.bc-page .dash-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 4px 2px 0;
}

.bc-page .dash-bottom-nav { display: none !important; }
.bc-page .bd-nav-item { color: #9aa1a9; }
.bc-page .bd-nav-item.active { color: #7c3aed; }
.bc-page .bd-nav-item.active .bd-nav-avatar { background: #7c3aed; color: #fff; }

.bc-page .bd-topbar {
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}

/* ── Sub-header ── */
.bc-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 2px;
}

.bc-back {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #3a3f47;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bc-back:hover { background: #eef0f2; }
.bc-back svg { width: 21px; height: 21px; }

.bc-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #16181d;
}

.bc-spacer { width: 38px; flex-shrink: 0; }

/* ── Aviso PIX ── */
.bc-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fdeef0;
  border: 1px solid #f6d2d8;
  border-radius: 14px;
  padding: 14px 15px;
}

.bc-alert__ic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fde3e6;
  color: #e23744;
}

.bc-alert__ic svg { width: 19px; height: 19px; }

.bc-alert__txt strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #16181d;
  margin-bottom: 2px;
}

.bc-alert__txt p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
}

/* ── Feedback ── */
.bc-feedback {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.bc-feedback svg { width: 19px; height: 19px; flex-shrink: 0; }

.bc-feedback--success {
  background: #e7f7ec;
  border: 1px solid #c7ebd2;
  color: #138a48;
}

.bc-feedback--error {
  background: #fdeaea;
  border: 1px solid #f6cccc;
  color: #dc2626;
}

/* ── Card do formulário ── */
.bc-card {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.bc-card__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #16181d;
}

.bc-group {
  margin-bottom: 14px;
}

.bc-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
}

.bc-input {
  width: 100%;
  border: 1.5px solid #e6e8eb;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 0.95rem;
  color: #16181d;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bc-input::placeholder { color: #9aa1a9; }

.bc-input:focus {
  background: #fff;
  border-color: #e23744;
  box-shadow: 0 0 0 4px rgba(226, 55, 68, 0.12);
}

.bc-select-wrap {
  position: relative;
}

.bc-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.bc-select-chev {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9aa1a9;
  pointer-events: none;
}

.bc-btn {
  width: 100%;
  margin-top: 6px;
  height: 50px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(180deg, #f0444f 0%, #cf2436 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(207, 36, 54, 0.3);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.bc-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(207, 36, 54, 0.4);
}

.bc-btn:active:not(:disabled) { transform: translateY(0); }

.bc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Loading ── */
.bc-loading {
  text-align: center;
  padding: 48px 20px;
  color: #8a9099;
  font-size: 0.92rem;
}

/* ── Bloqueio de 20 dias ── */
.bc-lock {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fdeef0;
  border: 1px solid #f6d2d8;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 16px;
}

.bc-lock__ic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fde3e6;
  color: #e23744;
}

.bc-lock__ic svg { width: 19px; height: 19px; }

.bc-lock__txt strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #16181d;
  margin-bottom: 2px;
}

.bc-lock__txt p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
}

.bc-lock__txt b { color: #e23744; }

.bc-input:disabled {
  background: #f0f1f3;
  color: #8a9099;
  cursor: not-allowed;
  border-color: #e6e8eb;
}

.bc-input:disabled:focus {
  box-shadow: none;
  border-color: #e6e8eb;
}
.team-report-page {
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 211, 138, 0.55), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 3, 0.28), transparent 34%),
    linear-gradient(170deg, #fff5eb 0%, #ffe1b8 50%, #fec075 100%);
  background-attachment: fixed;
  color: #5a3d1a;
  min-height: 100vh;
  padding: 24px 16px 100px;
}

.team-report-page .team-tabs-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 12px;
}

.team-report-page .team-tabs-row {
  display: flex;
  gap: 8px;
}

.team-report-page .team-tab-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #8a6b3f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-report-page .team-tab-btn:hover {
  color: #5a3d1a;
  background: rgba(255, 138, 3, 0.12);
}

.team-report-page .team-tab-btn.active {
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 138, 3, 0.28);
}

.team-report-page .team-filter-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.team-report-page .team-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.team-report-page .team-filter-row label {
  display: grid;
  gap: 6px;
}

.team-report-page .team-filter-row span {
  font-size: 12px;
  color: #8a6b3f;
}

.team-report-page .team-filter-row input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 138, 3, 0.3);
  background: rgba(255, 245, 235, 0.8);
  color: #5a3d1a;
  padding: 0 10px;
}

.team-report-page .team-filter-row button {
  height: 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.team-report-page .team-toast {
  position: fixed;
  top: 78px;
  right: 14px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.2);
  backdrop-filter: blur(6px);
  animation: team-toast-in 0.18s ease;
}

.team-report-page .team-toast.success {
  color: #fff;
  background: rgba(22, 163, 74, 0.9);
  border-color: rgba(74, 222, 128, 0.45);
}

.team-report-page .team-toast.error {
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(248, 113, 113, 0.45);
}

@keyframes team-toast-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.team-report-page .team-kpis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.team-report-page .team-kpi-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.team-report-page .team-kpi-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #b45309;
  font-weight: 600;
}

.team-report-page .team-kpi-card strong {
  font-size: 20px;
  color: #5a3d1a;
}

.team-report-page .team-levels-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.team-report-page .team-levels-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #5a3d1a;
}

.team-report-page .team-levels-grid {
  display: grid;
  gap: 10px;
}

.team-report-page .team-level-item {
  background: rgba(255, 245, 235, 0.6);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 12px;
  padding: 10px;
}

.team-report-page .team-level-item header {
  font-weight: 700;
  color: #ff8a03;
  margin-bottom: 8px;
}

.team-report-page .team-level-item p {
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5a3d1a;
  font-size: 13px;
}

.team-report-page .team-level-item strong {
  color: #5a3d1a;
}

.team-report-page .team-level-switch {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.team-report-page .team-level-switch button {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 138, 3, 0.3);
  background: rgba(255, 255, 255, 0.85);
  color: #5a3d1a;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 600;
}

.team-report-page .team-level-switch button.active {
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  color: #fff;
  border-color: transparent;
}

.team-report-page .team-kpi-single {
  margin-bottom: 12px;
}

.team-report-page .team-members-list {
  display: grid;
  gap: 10px;
}

.team-report-page .team-member-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.team-report-page .team-member-item h4 {
  margin: 0;
  color: #5a3d1a;
  font-size: 15px;
}

.team-report-page .team-member-item p {
  margin: 2px 0;
  color: #8a6b3f;
  font-size: 13px;
}

.team-report-page .team-member-item small {
  color: #8a6b3f;
  font-size: 12px;
}

.team-report-page .team-member-right {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.team-report-page .team-member-right strong {
  color: #5a3d1a;
  font-size: 14px;
}

.team-report-page .team-member-right span {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.team-report-page .team-member-right span.ok {
  color: #fff;
  background: rgba(22, 163, 74, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.team-report-page .team-member-right span.pending {
  color: #fff;
  background: rgba(255, 138, 3, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.4);
}

.team-report-page .team-empty {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 28px 12px;
  color: #8a6b3f;
}

@media (max-width: 640px) {
  .team-report-page .team-filter-row { grid-template-columns: 1fr; }
  .team-report-page .team-kpis-grid { grid-template-columns: 1fr; }
  .team-report-page .team-level-switch { flex-wrap: wrap; }
}
/* Layout genérico de página simples (usado por GiftVouchers, Community, TaxDeclaration, TeamReport, VipRules) */
.tasks-page {
  min-height: 100vh;
  padding: 20px 16px 100px;
  background: #ffffff;
  color: #1f2937;
  box-sizing: border-box;
}

@media (min-width: 860px) {
  .tasks-page {
    padding: 28px 32px 40px 300px;
  }
}

.tasks-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tasks-header h1 {
  margin: 4px 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e1b4b;
}

.tasks-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6366f1;
}

.tasks-subtitle {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: #6b7280;
}

.tasks-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; }

.btn.ghost {
  background: #f3f4f6;
  color: #1e1b4b;
  border: 1px solid #e5e7eb;
}

.vip-inline-message {
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}
/* ═══════════════════════════════════════════════════════════════
   Titan Labs — Minha Equipe (/position) — tema vermelho
   Escopo: .position-page
═══════════════════════════════════════════════════════════════ */
.position-page {
  background: #f4f6f8;
}

.position-page .dash-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 6px 2px 0;
}

.position-page .dash-bottom-nav { display: none !important; }
.position-page .bd-nav-item { color: #9aa1a9; }
.position-page .bd-nav-item.active { color: #7c3aed; }

/* ── Header ── */
.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 2px;
}

.ps-back {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #16181d;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ps-back:hover { background: #e9edf1; }
.ps-back svg { width: 22px; height: 22px; }

.ps-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #16181d;
}

.ps-spacer { width: 38px; flex-shrink: 0; }

/* ── Hero ── */
.ps-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, #e23744 0%, #b91d36 100%);
  box-shadow: 0 14px 30px rgba(226, 55, 68, 0.3);
}

.ps-hero__feather {
  position: absolute;
  right: -18px;
  top: -10px;
  width: 130px;
  height: 130px;
  transform: rotate(10deg);
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.ps-hero__feather svg { width: 100%; height: 100%; }

.ps-hero__label {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
}

.ps-hero__value {
  position: relative;
  z-index: 1;
  margin: 4px 0 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ps-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ps-hero__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

.ps-hero__cell span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.82); }
.ps-hero__cell strong { font-size: 1rem; font-weight: 800; }

/* ── Níveis ── */
.ps-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ps-level {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.ps-level__ic {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.ps-level__ic--1 { background: linear-gradient(135deg, #f0444f, #cf2436); }
.ps-level__ic--2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ps-level__ic--3 { background: linear-gradient(135deg, #3b6fe0, #2a52be); }

.ps-level__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.ps-level__txt strong { font-size: 1.2rem; font-weight: 800; color: #16181d; }
.ps-level__txt span { font-size: 0.74rem; color: #9aa1a9; }

/* ── Stats ── */
.ps-section-title {
  margin: 4px 2px -2px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #16181d;
}

.ps-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ps-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 14px 15px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
  border-left: 3px solid #d6dbe1;
}

.ps-stat strong { font-size: 1.5rem; font-weight: 800; color: #16181d; letter-spacing: -0.5px; }
.ps-stat span { font-size: 0.8rem; color: #6b7280; }

.ps-stat--green { border-left-color: #16a34a; }
.ps-stat--red { border-left-color: #e23744; }
.ps-stat--blue { border-left-color: #3b6fe0; }
.ps-stat--gray { border-left-color: #9aa1a9; }

/* ── Membros ── */
.ps-members {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #eef0f2;
  border-radius: 12px;
  padding: 4px;
}

.ps-seg__btn {
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 9px;
  padding: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ps-seg__btn.active {
  background: #ffffff;
  color: #e23744;
  box-shadow: 0 3px 8px rgba(16, 24, 40, 0.1);
}

.ps-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.ps-pills::-webkit-scrollbar { display: none; }

.ps-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e6e9ed;
  background: #ffffff;
  color: #5b626b;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ps-pill em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
  background: #f0f2f4;
  color: #6b7280;
  padding: 1px 7px;
  border-radius: 999px;
}

.ps-pill:hover { border-color: #f6cdd2; }

.ps-pill.active {
  background: linear-gradient(135deg, #f0444f 0%, #cf2436 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 16px rgba(207, 36, 54, 0.3);
}

.ps-pill.active em { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* ── Lista de membros ── */
.ps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.ps-member {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.ps-member__av {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f0444f, #cf2436);
}

.ps-member__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-member__info strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #16181d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-member__info span { font-size: 0.78rem; color: #9aa1a9; }

.ps-member__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ps-member__right > strong { font-size: 0.92rem; font-weight: 800; color: #16181d; white-space: nowrap; }

.ps-member__tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.ps-member__tag.on { background: #e7f7ec; color: #16a34a; }
.ps-member__tag.off { background: #f0f2f4; color: #9aa1a9; }

/* ── Estados ── */
.ps-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8a9099;
  font-size: 0.9rem;
}

.ps-empty__title { margin: 0 0 6px; font-size: 1.02rem; font-weight: 800; color: #16181d; }
.ps-empty__sub { margin: 0; font-size: 0.88rem; color: #8a9099; }

/* ═══════════════════════════════════════════════════════════════
   Desktop — usa a largura ao lado da sidebar
═══════════════════════════════════════════════════════════════ */
@media (min-width: 860px) {
  .dash-app.position-page .dash-content {
    max-width: none;
    margin: 0;
  }

  .position-page .ps-hero__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .position-page .ps-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .position-page .ps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  }
}
/* Withdraw Password — tema cinza/chumbo */

.wp-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 12%, rgba(225, 231, 239, 0.75) 0%, transparent 38%),
    radial-gradient(circle at 82% 88%, rgba(199, 208, 220, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, #f7f9fc 0%, #edf1f6 100%);
}

.wp-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(95, 103, 112, 0.2);
  backdrop-filter: blur(8px);
}

.wp-topbar-back {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(79, 87, 96, 0.08);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #30363d;
}

.wp-topbar-back svg {
  width: 22px;
  height: 22px;
}

.wp-topbar-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #2f343a;
  letter-spacing: 0.2px;
}

.wp-scroll-box {
  width: min(560px, calc(100% - 24px));
  margin: 18px auto 24px;
  border-radius: 18px;
  border: 1px solid rgba(95, 103, 112, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 48px rgba(95, 103, 112, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.wp-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(95, 103, 112, 0.13);
  background: transparent;
}

.wp-cell:last-of-type {
  border-bottom: 0;
}

.wp-cell-title {
  font-size: 0.88rem;
  color: #4f5760;
  font-weight: 700;
}

.wp-cell-value {
  width: 100%;
}

.wp-cell-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(95, 103, 112, 0.26);
  border-radius: 12px;
  outline: 0;
  background: #f7f9fc;
  font-size: 0.94rem;
  color: #2f343a;
  font-family: inherit;
  padding: 0 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wp-cell-input::placeholder {
  color: #8a9199;
}

.wp-cell-input:focus {
  border-color: #6f7882;
  box-shadow: 0 0 0 3px rgba(111, 120, 130, 0.2);
  background: #ffffff;
}

.wp-submit-wrap {
  padding: 14px;
  background: transparent;
}

.wp-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #6f7882, #4f5760);
  box-shadow: 0 10px 24px rgba(79, 87, 96, 0.28);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.wp-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.wp-submit:active {
  transform: translateY(0);
}

.wp-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

/* Modal */
.wp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 30, 36, 0.5);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 16px;
  animation: wp-fade-in 0.18s ease;
}

@keyframes wp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wp-modal {
  width: min(360px, 100%);
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 18px 16px;
  box-shadow: 0 20px 52px rgba(25, 30, 36, 0.28);
  border: 1px solid rgba(95, 103, 112, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: wp-pop-in 0.22s ease;
}

@keyframes wp-pop-in {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wp-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #ffffff;
}

.wp-modal-icon--success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.wp-modal-icon--error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.wp-modal-icon svg {
  width: 30px;
  height: 30px;
}

.wp-modal-message {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2f343a;
  margin: 0 0 14px;
  line-height: 1.45;
}

.wp-modal-button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #6f7882, #4f5760);
  cursor: pointer;
  font-family: inherit;
}
/* ═══════════════════════════════════════════════════════════════
   OuroEx — Comprovante de saque (/withdraw/receipt)
   Escopo: .rc-page — tema claro (lavanda/roxo), desliza de baixo pra cima
═══════════════════════════════════════════════════════════════ */
.rc-page {
  min-height: 100vh;
  background: #f7f5fc;
  display: flex;
  justify-content: center;
}

.rc-page-inner {
  width: 100%;
  max-width: 460px;
  padding: 10px 16px 32px;
  animation: rc-slide-up 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rc-slide-up {
  from { transform: translateY(100%); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Header ── */
.rc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 18px;
}

.rc-back {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #1f2937;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.rc-back svg { width: 24px; height: 24px; }

.rc-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.rc-spacer { display: none; }

/* ── Hero (cartão de sucesso) ── */
.rc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 26px 20px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, #34d399 0%, #16a34a 100%);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.25);
}

.rc-hero__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.rc-hero__amount {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.rc-hero__conv {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.rc-hero__banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
}
.rc-hero__banner svg { width: 20px; height: 20px; flex-shrink: 0; color: #fde68a; }

.rc-loading {
  text-align: center;
  color: #9ca3af;
  padding: 60px 0;
}

/* ── Detalhes ── */
.rc-details {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
  padding: 4px 16px;
}

.rc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #f1edf9;
}
.rc-row:last-child { border-bottom: none; }

.rc-row__label {
  font-size: 0.86rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.rc-row__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.rc-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rc-order__code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.rc-copy {
  border: none;
  background: transparent;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
}

.rc-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rc-account svg { width: 16px; height: 16px; color: #9ca3af; }

/* ── Dicas ── */
.rc-tips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #f1edf9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.rc-tips__text h3 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #1f2937;
}

.rc-tips__text p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #9ca3af;
}

.rc-tips__ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #7c3aed;
  color: #7c3aed;
  display: grid;
  place-items: center;
}
.rc-tips__ic svg { width: 22px; height: 22px; }

/* ── Estado vazio ── */
.rc-empty {
  text-align: center;
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 18px;
  padding: 36px 22px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.rc-empty h2 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: #1f2937; }
.rc-empty p { margin: 0 0 18px; font-size: 0.9rem; color: #9ca3af; }

.rc-btn {
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.rc-btn--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
}
/* ═══════════════════════════════════════════════════════════════
   Titan Labs — Saques / histórico (acessado pelo Conta) estilo foto
   Escopo: .wd-page  (reusa .bd-topbar / .bd-bottomnav do Dashboard.css)
═══════════════════════════════════════════════════════════════ */
.wd-page {
  background: #f7f8fa;
}

.wd-page .dash-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 4px 2px 0;
}

.wd-page .dash-bottom-nav { display: none !important; }

.wd-page .bd-nav-item { color: #9aa1a9; }
.wd-page .bd-nav-item.active { color: #7c3aed; }
.wd-page .bd-nav-item.active .bd-nav-avatar { background: #7c3aed; color: #fff; }

.wd-page .bd-topbar {
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}

/* ── Sub-header (voltar · Saques · atualizar) ── */
.wd-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 2px;
}

.wd-back,
.wd-refresh {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #3a3f47;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wd-back:hover,
.wd-refresh:hover { background: #eef0f2; }
.wd-back svg, .wd-refresh svg { width: 21px; height: 21px; }

.wd-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #16181d;
}

/* ── Lista ── */
.wd-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.wd-card {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.wd-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wd-method {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.wd-coin {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  background: #fde3e6;
  color: #e23744;
}

.wd-method__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wd-method__txt strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #16181d;
}

.wd-method__txt span {
  font-size: 0.8rem;
  color: #9aa1a9;
}

.wd-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.wd-amount__lbl {
  font-size: 0.8rem;
  color: #9aa1a9;
}

.wd-amount__val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #16181d;
  letter-spacing: -0.3px;
}

/* pílulas Status / Rede */
.wd-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.wd-pill {
  background: #f4f5f7;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wd-pill__lbl {
  font-size: 0.76rem;
  color: #9aa1a9;
}

.wd-pill__val {
  font-size: 0.9rem;
  font-weight: 800;
  color: #16181d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-status--done { color: #16181d; }
.wd-status--proc { color: #d97706; }
.wd-status--fail { color: #dc2626; }

/* ver detalhes */
.wd-toggle {
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border: none;
  border-top: 1px solid #f0f2f4;
  background: transparent;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.wd-toggle:hover { color: #e23744; }

.wd-toggle__chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.wd-toggle__chev.up { transform: rotate(180deg); }

.wd-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #eef0f2;
  border-radius: 12px;
  overflow: hidden;
}

.wd-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f8fa;
  padding: 11px 13px;
  font-size: 0.86rem;
  color: #6b7280;
}

.wd-detail strong {
  color: #16181d;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.wd-detail__mono {
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

/* estados */
.wd-empty {
  text-align: center;
  padding: 48px 20px;
  color: #8a9099;
  font-size: 0.92rem;
}

.wd-empty__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #16181d;
}

.wd-empty__sub {
  margin: 0;
  font-size: 0.9rem;
  color: #8a9099;
}
/* ─── Team Expansion Page ─────────────────────────────────────────────────── */
.team-exp-page {
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 211, 138, 0.55), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 3, 0.28), transparent 34%),
    linear-gradient(170deg, #fff5eb 0%, #ffe1b8 50%, #fec075 100%);
  background-attachment: fixed;
  color: #5a3d1a;
  min-height: 100vh;
  padding: 24px 16px 100px;
}

.team-exp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.team-exp-back {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 10px;
  padding: 8px;
  color: #5a3d1a;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-exp-back:hover {
  background: rgba(255, 138, 3, 0.15);
}

.team-exp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #5a3d1a;
  margin: 0;
}

.team-exp-loading {
  text-align: center;
  color: #8a6b3f;
  padding: 48px 0;
  font-size: 0.95rem;
}

/* Summary Cards */
.team-exp-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.team-exp-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-exp-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(255, 138, 3, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8a03;
}

.team-exp-card-icon svg {
  width: 22px;
  height: 22px;
}

.team-exp-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.team-exp-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5a3d1a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-exp-card-label {
  font-size: 0.75rem;
  color: #8a6b3f;
  line-height: 1.2;
}

/* Section Title */
.team-exp-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #5a3d1a;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Referral Section */
.team-exp-referral {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.team-exp-referral-desc {
  font-size: 0.85rem;
  color: #8a6b3f;
  margin: 0 0 16px;
  line-height: 1.5;
}

.team-exp-referral-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-exp-ref-code {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-exp-ref-label {
  font-size: 0.85rem;
  color: #8a6b3f;
}

.team-exp-ref-value {
  font-size: 1rem;
  font-weight: 700;
  color: #ff8a03;
  letter-spacing: 1px;
}

.team-exp-ref-link {
  display: flex;
  gap: 8px;
}

.team-exp-ref-input {
  flex: 1;
  background: rgba(255, 245, 235, 0.8);
  border: 1px solid rgba(255, 138, 3, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: #5a3d1a;
  font-size: 0.82rem;
  outline: none;
  min-width: 0;
}

.team-exp-copy-btn {
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.team-exp-copy-btn:hover {
  opacity: 0.9;
}

/* Levels Grid */
.team-exp-levels {
  margin-bottom: 20px;
}

.team-exp-levels-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-exp-level-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 12px;
  padding: 16px;
}

.team-exp-level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.team-exp-level-badge {
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.team-exp-level-commission {
  font-size: 0.78rem;
  color: #16a34a;
  font-weight: 600;
}

.team-exp-level-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.team-exp-level-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.team-exp-level-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #5a3d1a;
}

.team-exp-level-stat-label {
  font-size: 0.7rem;
  color: #8a6b3f;
}

.team-exp-empty {
  text-align: center;
  color: #8a6b3f;
  font-size: 0.9rem;
  padding: 24px 0;
}

/* Commission Table */
.team-exp-commission-info {
  margin-bottom: 20px;
}

.team-exp-commission-table {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 12px;
  overflow: hidden;
}

.team-exp-commission-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 138, 3, 0.12);
}

.team-exp-commission-row:last-child {
  border-bottom: none;
}

.team-exp-commission-header {
  background: rgba(255, 138, 3, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff8a03;
}

.team-exp-commission-level {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a3d1a;
}

.team-exp-commission-name {
  font-size: 0.85rem;
  color: #8a6b3f;
}

.team-exp-commission-percent {
  font-size: 0.9rem;
  font-weight: 700;
  color: #16a34a;
  text-align: right;
}

/* Action Buttons */
.team-exp-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.team-exp-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.team-exp-action-btn:hover {
  opacity: 0.9;
}

.team-exp-action-secondary {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  color: #5a3d1a;
}

.team-exp-action-secondary:hover {
  background: rgba(255, 138, 3, 0.15);
}

/* ── Tips ─────────────────────── */
.team-exp-tips {
  margin-bottom: 20px;
}

.team-exp-tip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-exp-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 138, 3, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
}

.team-exp-tip-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #5a3d1a;
  line-height: 1.5;
}

.team-exp-tip-item strong {
  color: #ff8a03;
  font-weight: 700;
}

.team-exp-tip-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a03, #f7a93b);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Responsive */
@media (max-width: 520px) {
  .team-exp-summary {
    grid-template-columns: 1fr;
  }
}
.admin-page {
  min-height: 100vh;
  color: #1f2937;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: #f7f6fc;
}

.admin-content {
  width: 100%;
  margin-left: 0;
  padding: 20px 20px 28px;
  box-sizing: border-box;
  background: #f7f6fc;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-header-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header-avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.admin-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.admin-subtitle {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.admin-section-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.admin-header-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chip {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #eee0fc;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-chip.soft {
  background: #f7f5fc;
  border-color: #eee0fc;
}

.admin-chip--online {
  background: rgba(15, 157, 99, 0.12);
  border-color: rgba(15, 157, 99, 0.4);
  color: #0f9d63;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: admin-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes admin-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.admin-kpi-grid .admin-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-kpi-label {
  font-size: 0.88rem;
  color: #6b7280;
  font-weight: 600;
}

.admin-kpi-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 4px;
}

.admin-kpi-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.admin-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.admin-kpi-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f7f5fc;
  color: #7c3aed;
}
.admin-kpi-icon svg { width: 20px; height: 20px; }

.admin-kpi-body { min-width: 0; }

.admin-kpi-card h3 {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
}

.admin-kpi-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1f2937;
}

.admin-kpi-card p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* segunda linha de KPIs (depósitos e saques hoje/mês) */
.admin-kpis--split {
  margin-top: 0;
  margin-bottom: 16px;
}

/* card destaque — cadastros hoje */
.admin-kpi-card--highlight {
  border-color: rgba(124, 58, 237, 0.45);
  background: #ffffff;
}

.admin-kpi-card--highlight strong { color: #7c3aed; }
.admin-kpi-card--highlight .admin-kpi-icon { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

/* cards de depósito */
.admin-kpi-card--deposit {
  border-color: rgba(15, 157, 99, 0.45);
  background: #ffffff;
}

.admin-kpi-card--deposit strong { color: #0f9d63; }
.admin-kpi-card--deposit .admin-kpi-icon { background: rgba(15, 157, 99, 0.12); color: #0f9d63; }

/* cards de saque */
.admin-kpi-card--withdraw {
  border-color: rgba(239, 68, 68, 0.45);
  background: #ffffff;
}

.admin-kpi-card--withdraw strong { color: #ef4444; }
.admin-kpi-card--withdraw .admin-kpi-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 12px;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #1f2937;
}

.admin-panel-head span {
  color: #6b7280;
  font-size: 0.82rem;
  margin-right: auto;
  padding-left: 8px;
}

.admin-panel-link {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #7c3aed;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.admin-panel-link:hover { text-decoration: underline; }

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-shortcuts button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #f1edf9;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-log-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-log-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f1edf9;
  background: #ffffff;
  color: #6b7280;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-log-tab svg {
  width: 16px;
  height: 16px;
}

.admin-log-tab:hover {
  background: #f7f5fc;
}

.admin-log-tab.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.admin-shortcuts button svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: #7c3aed;
}

.admin-shortcuts button:hover {
  background: #f7f5fc;
  border-color: #eee0fc;
}

.admin-status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-status-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  border-bottom: 1px solid #f7f5fc;
  font-size: 0.86rem;
  color: #1f2937;
}
.admin-status-list li:last-child { border-bottom: none; }

.admin-status-list li b {
  font-weight: 600;
  flex: 1;
}

.admin-status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.admin-status-dot--ok { background: #22c55e; }
.admin-status-dot--warn { background: #f59e0b; }

.admin-status-value {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #f1edf9;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: #6b7280;
  font-weight: 700;
}

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status.pending {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.status.paid {
  background: rgba(15, 157, 99, 0.12);
  color: #0f9d63;
}

.status.processing {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.status.loss {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

@media (max-width: 1500px) {
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-dash-sidebar {
  position: sticky !important;
  top: 0;
  transform: none !important;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Item de menu ativo (página atual) ── */
.admin-dash-sidebar .dash-nav-item.active {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.admin-dash-sidebar .dash-nav-item.active svg {
  color: #ffffff !important;
}

.admin-dash-user-chip {
  margin-top: 10px;
  padding: 8px 10px 12px;
  color: #6b7280;
  font-size: 0.78rem;
  border-bottom: 1px solid #f1edf9;
}

.admin-dash-live-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

.admin-mobile-topbar {
  display: none;
}

.menu-toggle {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #f1edf9;
  border-radius: 10px;
  background: #f7f5fc;
  color: #7c3aed;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.menu-toggle:hover { background: #efe6fb; }

.admin-mobile-user {
  min-width: 0;
  display: grid;
}

.admin-mobile-user strong {
  font-size: 0.88rem;
  color: #1f2937;
  line-height: 1.1;
}

.admin-mobile-user small {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.1;
}

@media (max-width: 1100px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-shortcuts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .admin-page {
    display: block;
  }

  .admin-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1edf9;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
  }

  .admin-dash-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-100%) !important;
    width: 272px;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .admin-dash-sidebar.open {
    transform: translateX(0) !important;
  }

  .admin-content {
    padding: 14px 12px 22px;
  }

  .admin-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .admin-header h1 {
    font-size: 1.35rem;
  }

  .admin-subtitle {
    margin-top: 4px;
    font-size: 0.84rem;
  }

  .admin-chip {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .admin-kpis {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-kpi-card {
    padding: 12px;
  }

  .admin-kpi-card strong {
    font-size: 1.18rem;
  }

  .admin-panel {
    padding: 12px;
  }

  .admin-panel-head {
    margin-bottom: 8px;
  }

  .admin-panel-head h2 {
    font-size: 0.98rem;
  }

  .admin-panel-head span {
    font-size: 0.74rem;
  }

  .admin-status-list {
    line-height: 1.55;
    font-size: 0.88rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px;
    font-size: 0.83rem;
  }
}

.admin-kpi-error {
  margin: 0 0 12px;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.admin-withdraw-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(140px, 0.9fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  background: #ffffff;
}

.admin-withdraw-filter-field {
  display: grid;
  gap: 6px;
}

.admin-withdraw-filter-field label {
  font-size: 0.77rem;
  color: #6b7280;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.admin-withdraw-filter-input {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #eee0fc;
  background: #f7f5fc;
  color: #1f2937;
  padding: 0 12px;
  outline: none;
  font-size: 0.9rem;
}

.admin-withdraw-filter-input::placeholder {
  color: #9ca3af;
}

.admin-withdraw-filter-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.admin-withdraw-filter-actions {
  display: flex;
  align-items: stretch;
}

.admin-withdraw-filter-actions .btn {
  width: 100%;
  min-height: 38px;
}

.admin-withdraw-cards {
  display: none;
}

.admin-cycle-form-panel {
  margin-bottom: 16px;
}

.admin-cycle-form-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.admin-cycle-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-cycle-field {
  display: grid;
  gap: 6px;
}

.admin-cycle-field.full {
  grid-column: 1 / -1;
}

.admin-cycle-field label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 700;
}

.admin-cycle-field input,
.admin-cycle-field textarea,
.admin-cycle-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eee0fc;
  background: #f7f5fc;
  color: #1f2937;
  padding: 10px 12px;
  outline: none;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.admin-cycle-field input::placeholder,
.admin-cycle-field textarea::placeholder {
  color: #9ca3af;
}

.admin-cycle-field input:focus,
.admin-cycle-field textarea:focus,
.admin-cycle-field select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.admin-cycle-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.admin-cycle-field select:hover {
  background-color: #f1eaff;
}

.admin-cycle-field select option {
  color: #1f2937;
  background: #ffffff;
}

.admin-cycle-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.admin-cycle-checkbox input {
  width: auto;
}

.admin-cycle-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-cycle-list {
  display: grid;
  gap: 10px;
}

.admin-cycle-item {
  border: 1px solid #f1edf9;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.admin-cycle-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-cycle-item-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.admin-cycle-item-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #f1edf9;
  background: #f7f5fc;
}

.admin-cycle-item-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #c4b5fd;
}

.admin-cycle-item-title {
  color: #1f2937;
}

.admin-cycle-item-description {
  margin: 6px 0;
  color: #6b7280;
}

.admin-cycle-item-meta {
  margin: 0;
  color: #1f2937;
}

.admin-cycle-item-meta.secondary {
  margin-top: 6px;
  color: #6b7280;
}

.admin-cycle-item-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.admin-cycle-delete-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.admin-cycle-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ── Resumo de saques pendentes ── */
.apw-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.apw-summary-card {
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apw-summary-card--amount {
  border-color: rgba(124, 58, 237, 0.45);
}

.apw-summary-label {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.apw-summary-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.1;
}

.apw-summary-card--amount .apw-summary-value {
  color: #7c3aed;
}

.apw-summary-sub {
  font-size: 0.76rem;
  color: #6b7280;
}

@media (max-width: 480px) {
  .apw-summary {
    grid-template-columns: 1fr;
  }

  .apw-summary-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .admin-kpis {
    grid-template-columns: 1fr;
  }

  .admin-withdraw-filters {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .admin-withdraw-filter-actions .btn {
    width: 100%;
  }

  .admin-header-meta {
    width: 100%;
    gap: 6px;
  }

  .admin-chip {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .admin-table-wrap {
    display: none;
  }

  .admin-withdraw-cards {
    display: grid;
    gap: 8px;
  }

  .admin-cycle-item-actions {
    width: 100%;
  }

  .admin-cycle-item-actions .btn {
    flex: 1;
    text-align: center;
  }

  .admin-withdraw-card {
    border: 1px solid #f1edf9;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
  }

  .admin-withdraw-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: #1f2937;
  }

  .admin-withdraw-row:last-child {
    margin-bottom: 0;
  }

  .admin-withdraw-row strong {
    color: #6b7280;
    font-size: 0.78rem;
  }

  .admin-withdraw-row .status {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
}
.admin-users-page .admin-header {
  margin-bottom: 14px;
}

/* Bolinha de presença online na tabela de usuários */
.admin-user-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-online-dot--on {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: admin-dot-pulse 2s infinite;
}

.admin-online-dot--off {
  background: transparent;
}

@keyframes admin-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12); }
}

.admin-users-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-users-search-panel {
  margin-bottom: 12px;
}

.admin-users-search-label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.86rem;
}

.admin-users-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #eee0fc;
  border-radius: 10px;
  background: #f7f5fc;
  padding: 0 12px;
}

.admin-users-search-wrap svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: #9ca3af;
}

.admin-users-search-wrap .admin-users-input {
  border: none;
  background: transparent;
  padding: 10px 0;
}

.admin-users-search-count {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.admin-user-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-user-avatar--img {
  object-fit: cover;
  background: #f3f0fb;
}

.admin-users-panel {
  padding: 12px;
}

.admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table td,
.admin-users-table th {
  vertical-align: middle;
}

.admin-users-input {
  width: 100%;
  min-width: 140px;
  background: rgba(247, 245, 252, 0.8);
  color: #1f2937;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}

.admin-users-input:focus {
  border-color: #7c3aed;
}

.admin-users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-users-actions button {
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}

.admin-users-actions button:hover {
  background: #f7f5fc;
}

.admin-users-actions .warn {
  border-color: rgba(185, 28, 28, 0.45);
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.admin-users-actions .warn:hover {
  background: rgba(185, 28, 28, 0.22);
}

.admin-users-actions .soft {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(247, 245, 252, 0.6);
  color: #6b7280;
}

.admin-user-balance-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.admin-user-balance-cell small {
  font-size: 0.72rem;
  color: #9ca3af;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.admin-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.admin-role-chip.is-admin {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

@media (max-width: 860px) {
  .admin-users-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-panel {
    padding: 10px;
  }

  .admin-users-table th,
  .admin-users-table td {
    font-size: 0.82rem;
    padding: 8px;
  }

  .admin-users-actions button {
    font-size: 0.78rem;
    padding: 5px 8px;
  }
}
.admin-user-details-page .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-back-btn {
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-back-btn:hover {
  background: #fff5eb;
}

.admin-user-identity h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.14);
}

.admin-user-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.admin-user-header-id {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #9ca3af;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.admin-user-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.admin-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-user-vip-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.admin-badge-pill--info { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.admin-badge-pill--success { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.admin-badge-pill--danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.admin-user-identity p {
  margin: 6px 0;
  color: #6b7280;
}

/* ── Grid de informações (Telefone, Contrato, Cadastro, IP...) ── */
.admin-user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px;
}

.admin-user-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-user-info-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-user-info-value {
  font-size: 0.92rem;
  color: #1f2937;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-info-value--mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #f7f5fc;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
}

/* ── Botões de ação inline (Editar, Banir, etc.) ── */
.admin-btn-outline {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1.5px solid #6366f1;
  background: transparent;
  color: #6366f1;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-btn-outline:hover { background: rgba(99, 102, 241, 0.08); }
.admin-btn-outline:disabled { cursor: not-allowed; opacity: 0.6; }

.admin-btn-outline--danger {
  border-color: #dc2626;
  color: #dc2626;
}
.admin-btn-outline--danger:hover { background: rgba(220, 38, 38, 0.08); }

.admin-inline-input {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid #6366f1;
  font-size: 14px;
  outline: none;
  width: 180px;
}

.admin-feedback-inline {
  font-size: 12px;
  font-weight: 600;
}
.admin-feedback-inline--success { color: #16a34a; }
.admin-feedback-inline--error { color: #dc2626; }

/* ── Ações principais (Entrar na conta) ── */
.admin-user-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.admin-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.admin-btn-primary:hover { filter: brightness(1.05); }

.admin-user-actions-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.admin-user-metrics-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-user-metrics-grid .admin-kpi-card {
  flex-direction: column;
  align-items: stretch;
}

.admin-kpi-brl {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #9ca3af;
}

/* ── Cartões monetários (Saldo/Comissão/Depósitos/Saques): rótulo, valor USDT e BRL empilhados ── */
.admin-kpi-card--money {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-left: 4px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.admin-kpi-card--money::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.05;
  transform: translate(20px, -24px);
}

.admin-kpi-card--money p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-kpi-card--money strong {
  margin: 8px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.3px;
}

.admin-kpi-card--balance { border-left-color: #7c3aed; color: #7c3aed; }
.admin-kpi-card--commission { border-left-color: #f59e0b; color: #f59e0b; }
.admin-kpi-card--deposit { border-left-color: #16a34a; color: #16a34a; }
.admin-kpi-card--withdraw { border-left-color: #ef4444; color: #ef4444; }

@media (max-width: 860px) {
  .admin-user-details-page .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-user-list-panel {
  margin-top: 14px;
}

.admin-user-list-panel h3 {
  margin: 0;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-list-item,
.admin-user-log-item {
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-list-item p,
.admin-user-log-item p {
  margin: 4px 0 0;
  color: #6b7280;
}

.admin-user-log-item small {
  color: #1f2937;
}

.admin-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-toggle-logs-btn {
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-toggle-logs-btn:hover {
  background: #f7f5fc;
}

.admin-log-hint {
  margin: 6px 0 0;
  color: #6b7280;
}

.admin-balance-adjust-form {
  display: grid;
  gap: 12px;
}

.admin-balance-adjust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.admin-balance-adjust-grid label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
}

.admin-balance-adjust-grid input,
.admin-balance-adjust-grid select {
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(247, 245, 252, 0.8);
  color: #1f2937;
  border-radius: 10px;
  padding: 9px 10px;
}

.admin-balance-adjust-reason {
  grid-column: span 1;
}

.admin-balance-feedback-success,
.admin-balance-feedback-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.admin-balance-feedback-success {
  color: #22c55e;
}

.admin-balance-feedback-error {
  color: #f87171;
}

/* ── Cards de convidados por nível de comissão ── */
.admin-kpi-card--referral {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid #e2e8f0;
  overflow: hidden;
}

.admin-kpi-card--referral::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.05;
  transform: translate(20px, -24px);
}

.admin-kpi-card--level1 { border-left-color: #7c3aed; color: #7c3aed; }
.admin-kpi-card--level2 { border-left-color: #2563eb; color: #2563eb; }
.admin-kpi-card--level3 { border-left-color: #0f9d63; color: #0f9d63; }

.admin-kpi-card--referral .admin-kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
}

.admin-kpi-commission-badge {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.admin-kpi-card--referral .admin-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.1;
}

.admin-kpi-sub {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
}


@media (max-width: 560px) {
  .admin-user-metrics-grid {
    grid-template-columns: 1fr;
  }

  .admin-log-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-list-item,
  .admin-user-log-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-balance-adjust-grid {
    grid-template-columns: 1fr;
  }
}
/* ── Resumo (cards de visão geral) ── */
.admin-history-overview {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-history-overview .admin-kpi-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.admin-history-overview .admin-kpi-card p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-history-overview .admin-kpi-card strong {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
}

/* ── Gráfico comparativo (depósitos x saques) ── */
.admin-history-chart {
  margin-top: 14px;
}

.admin-history-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-history-chart-row:last-child { margin-bottom: 0; }

.admin-history-chart-label {
  flex: 0 0 110px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
}

.admin-history-chart-track {
  flex: 1;
  height: 22px;
  border-radius: 999px;
  background: #f1edf9;
  overflow: hidden;
}

.admin-history-chart-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.admin-history-chart-fill--deposit { background: linear-gradient(90deg, #4ade80, #16a34a); }
.admin-history-chart-fill--withdraw { background: linear-gradient(90deg, #f87171, #ef4444); }

.admin-history-chart-value {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1f2937;
  min-width: 90px;
  text-align: right;
}

/* ── Cards de item (compras, depósitos, saques) ── */
.admin-history-item {
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-history-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-history-item-meta {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.admin-history-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.admin-history-status--success { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.admin-history-status--pending { background: rgba(148, 163, 184, 0.16); color: #64748b; }
.admin-history-status--danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.admin-history-status--info { background: rgba(59, 130, 246, 0.12); color: #2563eb; }

.admin-history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.admin-history-stat {
  background: #f7f5fc;
  border-radius: 8px;
  padding: 6px 10px;
}

.admin-history-stat-label {
  margin: 0;
  font-size: 0.7rem;
  color: #9ca3af;
}

.admin-history-stat-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-history-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #f1edf9;
  overflow: hidden;
}

.admin-history-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.admin-history-remove-btn {
  align-self: flex-start;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
  color: #dc2626;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.admin-history-remove-btn:hover { background: rgba(239, 68, 68, 0.12); }

/* ── Cards de navegação para páginas de detalhe ── */
.admin-history-nav-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-history-nav-card {
  text-align: left;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.admin-history-nav-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.admin-history-nav-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-history-nav-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: #7c3aed;
}

.admin-history-nav-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
}

/* ── Página de detalhe (tabela + filtros) ── */
.admin-history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-history-filters label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
}

.admin-history-filters input,
.admin-history-filters select {
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(247, 245, 252, 0.8);
  color: #1f2937;
  border-radius: 10px;
  padding: 9px 10px;
}

/* ── Linhas de tabela clicáveis (abrem modal de detalhes) ── */
.admin-history-clickable-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.admin-history-clickable-row:hover {
  background: rgba(124, 58, 237, 0.06);
}

.admin-history-progress-track--table {
  width: 110px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.admin-history-progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  vertical-align: middle;
}

/* ── Modal de detalhes (ex: compra de trader) ── */
.admin-history-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 30, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}

.admin-history-modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.admin-history-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-history-modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.admin-history-modal-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  color: #6b7280;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.admin-history-modal-close svg { width: 16px; height: 16px; }
.admin-history-modal-close:hover { background: rgba(124, 58, 237, 0.18); }

.admin-history-modal-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(124, 58, 237, 0.14);
}

.admin-history-modal-section h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9ca3af;
}

.admin-history-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: #6b7280;
}

.admin-history-modal-row strong {
  color: #1f2937;
  font-weight: 700;
  text-align: right;
}

.admin-history-modal-row--wrap {
  align-items: flex-start;
}

.admin-history-modal-row--wrap strong {
  max-width: 280px;
  word-break: break-word;
  font-weight: 600;
  font-size: 0.8rem;
}

.admin-history-modal-section--device {
  background: #f7f5fc;
  border-radius: 12px;
  padding: 12px 14px;
  border-top: none;
}

/* ── Logs da conta ── */
.admin-history-log-amount {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}
.admin-history-log-amount--pos { color: #16a34a; }
.admin-history-log-amount--neg { color: #ef4444; }
.admin-history-log-amount--commission { color: #d97706; }
.floating-toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2500;
  pointer-events: none;
}

.floating-toast {
  position: relative;
  min-width: 280px;
  max-width: min(92vw, 420px);
  border-radius: 12px;
  padding: 12px 42px 12px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.35);
  animation: floating-toast-in 180ms ease-out;
}

.floating-toast p {
  margin: 0;
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.floating-toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 auto;
}

.floating-toast-success {
  background: linear-gradient(180deg, rgba(21, 128, 61, 0.96), rgba(20, 83, 45, 0.92));
  border-color: rgba(74, 222, 128, 0.55);
}

.floating-toast-success .floating-toast-dot {
  background: #86efac;
}

.floating-toast-error {
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.96), rgba(127, 29, 29, 0.92));
  border-color: rgba(248, 113, 113, 0.58);
}

.floating-toast-error .floating-toast-dot {
  background: #fca5a5;
}

.floating-toast-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
}

.floating-toast-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

@keyframes floating-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .floating-toast-wrap {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .floating-toast {
    min-width: 0;
    max-width: 100%;
  }
}
.wc-section {
  margin-bottom: 14px;
}

.wc-section .admin-panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wc-section .admin-panel-head h2 svg {
  width: 17px;
  height: 17px;
  color: #7c3aed;
}

.wc-day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wc-day-pill {
  border: 1px solid #eee0fc;
  background: #f7f5fc;
  color: #6b7280;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wc-day-pill:hover {
  border-color: #ddd1f7;
}

.wc-day-pill.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.wc-switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.wc-switch {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.wc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.wc-switch-track {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.wc-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

.wc-switch input:checked + .wc-switch-track {
  background: #7c3aed;
}

.wc-switch input:checked + .wc-switch-track .wc-switch-thumb {
  transform: translateX(18px);
}

.wc-switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wc-switch-label strong {
  font-size: 0.9rem;
  color: #1f2937;
}

.wc-switch-label small {
  font-size: 0.78rem;
  color: #9ca3af;
}

.wc-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .wc-day-pills {
    justify-content: space-between;
  }

  .wc-day-pill {
    flex: 1 1 auto;
    text-align: center;
    padding: 9px 8px;
  }
}
/* ── Botão Ver Detalhes ── */
.auw-detail-btn {
  background: linear-gradient(135deg, #ffb347, #7c3aed);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.auw-detail-btn:hover {
  filter: brightness(1.05);
}

.auw-detail-btn--full {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

/* ── Modal backdrop ── */
.auw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(90, 61, 26, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ── Modal container ── */
.auw-modal {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(90, 61, 26, 0.18);
}

/* ── Modal header ── */
.auw-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.22);
  flex-shrink: 0;
}

.auw-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2937;
}

.auw-modal-close {
  background: rgba(247, 245, 252, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: #6b7280;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.auw-modal-close:hover {
  background: #fff5eb;
  color: #1f2937;
}

/* ── Modal body ── */
.auw-modal-body {
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* ── Sections ── */
.auw-modal-section {
  background: rgba(247, 245, 252, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.auw-modal-section-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

/* ── Grid de campos ── */
.auw-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.auw-modal-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auw-modal-field--full {
  grid-column: 1 / -1;
}

.auw-modal-label {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auw-modal-value {
  font-size: 0.88rem;
  color: #1f2937;
  word-break: break-all;
}

.auw-value-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: #7c3aed;
}

.auw-mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: #6b7280;
}

/* ── Modal footer ── */
.auw-modal-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.22);
  flex-shrink: 0;
}

.auw-modal-btn-close {
  width: 100%;
  background: linear-gradient(135deg, #ffb347, #7c3aed);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.auw-modal-btn-close:hover {
  filter: brightness(1.05);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .auw-modal {
    max-height: 95vh;
    border-radius: 14px;
  }

  .auw-modal-header {
    padding: 14px 14px 12px;
  }

  .auw-modal-body {
    padding: 12px 14px;
    gap: 12px;
  }

  .auw-modal-grid {
    grid-template-columns: 1fr;
  }

  .auw-modal-field--full {
    grid-column: 1;
  }

  .auw-modal-footer {
    padding: 12px 14px 16px;
  }
}
.roulette-code-page {
  display: flex;
  min-height: 100vh;
}

.roulette-code-content {
  flex: 1;
  padding: 24px;
}

.roulette-code-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.roulette-code-title {
  margin: 0;
  font-size: 1.8rem;
  color: #1f2937;
}

.roulette-code-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.roulette-code-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(90, 61, 26, 0.12);
}

.roulette-code-card-head {
  margin-bottom: 14px;
}

.roulette-code-card-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.roulette-code-card-head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.roulette-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.roulette-code-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roulette-code-field.full {
  grid-column: 1 / -1;
}

.roulette-code-field label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
}

.roulette-code-field input,
.roulette-code-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(247, 245, 252, 0.8);
  color: #1f2937;
  padding: 10px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roulette-code-field input:focus,
.roulette-code-field textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.roulette-code-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.roulette-code-btn {
  border: none;
  background: linear-gradient(135deg, #ffb347, #7c3aed);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.roulette-code-hint {
  margin-top: 12px;
  color: #6b7280;
  font-size: 0.88rem;
}

.roulette-code-feedback {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f9d63;
}

@media (max-width: 900px) {
  .roulette-code-grid {
    grid-template-columns: 1fr;
  }

  .roulette-code-content {
    padding: 16px;
  }
}
.gc-feedback {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.gc-feedback--success {
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.gc-feedback--error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.gc-section-divider {
  grid-column: 1 / -1;
  margin: 4px 0 -2px;
  padding-top: 12px;
  border-top: 1px dashed rgba(124, 58, 237, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gc-checkbox-field {
  grid-column: 1 / -1;
}
.gc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 600;
}
.gc-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
}

.gc-list-wrap {
  margin-top: 22px;
}

.gc-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gc-list-head h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #1f2937;
}
.gc-list-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.gc-list {
  display: grid;
  gap: 12px;
}

.gc-item {
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
}
.gc-item--limit {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.04);
}

.gc-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gc-item-code {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2937;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.gc-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.gc-badge--active { color: #15803d; background: rgba(34, 197, 94, 0.12); }
.gc-badge--inactive { color: #6b7280; background: rgba(107, 114, 128, 0.12); }
.gc-badge--limit { color: #b91c1c; background: rgba(239, 68, 68, 0.12); }
.gc-badge--store { color: #7c3aed; background: rgba(124, 58, 237, 0.12); }

.gc-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}
.gc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gc-stat-label {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gc-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.gc-item-notes {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.gc-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}
.gc-item-created {
  font-size: 0.78rem;
  color: #9ca3af;
}

.gc-delete-btn {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.gc-delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gc-empty {
  padding: 30px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}
.admin-branding-page {
  min-height: 100vh;
}

.admin-branding-content {
  width: 100%;
}

.admin-branding-card {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(90, 61, 26, 0.12);
}

.admin-branding-head {
  margin-bottom: 16px;
}

.admin-branding-head h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1f2937;
}

.admin-branding-head p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.45;
}

.admin-branding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-branding-field {
  display: grid;
  gap: 6px;
}

.admin-branding-field.full {
  grid-column: 1 / -1;
}

.admin-branding-field span {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 700;
}

.admin-branding-field input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(247, 245, 252, 0.8);
  color: #1f2937;
  padding: 10px 12px;
  outline: none;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.admin-branding-field input::placeholder {
  color: #9ca3af;
}

.admin-branding-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.admin-branding-field input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}

.admin-branding-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(124, 58, 237, 0.28);
  background: rgba(247, 245, 252, 0.6);
}

.admin-branding-preview h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #1f2937;
}

.admin-branding-preview-box {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}

.admin-branding-logo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: #fff5eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-branding-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-branding-logo-fallback {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  padding: 6px;
}

.admin-branding-meta strong {
  display: block;
  color: #1f2937;
  font-size: 1.02rem;
}

.admin-branding-meta small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.8rem;
}

.admin-branding-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.admin-branding-actions button {
  background: linear-gradient(135deg, #ffb347, #7c3aed);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.admin-branding-actions button:hover {
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .admin-branding-grid {
    grid-template-columns: 1fr;
  }

  .admin-branding-preview-box {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-branding-actions {
    justify-content: stretch;
  }

  .admin-branding-actions button {
    width: 100%;
  }
}
/* ── AdminShopProducts ───────────────────────────────────── */

.admin-shop-products-page .admin-content { padding: 28px 32px; }

.asp-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
}

/* ── Card ─────────────────────────────────────────────────── */
.asp-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  padding: 24px;
}

.asp-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1f2937;
}

/* ── Form ─────────────────────────────────────────────────── */
.asp-form { display: flex; flex-direction: column; gap: 14px; }

.asp-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.asp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 160px;
}

.asp-field-lg { flex: 2; min-width: 220px; }

.asp-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.asp-field input,
.asp-field select,
.asp-field textarea {
  background: rgba(247, 245, 252, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

.asp-field input:focus,
.asp-field select:focus,
.asp-field textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.asp-field select option { background: #fff5eb; }
.asp-field textarea { resize: vertical; }

.asp-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
}

.asp-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent, #6366f1);
  cursor: pointer;
}

.asp-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* ── List header ──────────────────────────────────────────── */
.asp-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.asp-list-header .asp-card-title { margin-bottom: 0; }

.asp-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.asp-search,
.asp-select {
  background: rgba(247, 245, 252, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}

.asp-search { width: 220px; }
.asp-search:focus, .asp-select:focus { border-color: #7c3aed; }
.asp-search::placeholder { color: #9ca3af; }
.asp-select option { background: #fff5eb; }

/* ── Table ────────────────────────────────────────────────── */
.asp-table-wrap { overflow-x: auto; }

.asp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.asp-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
  white-space: nowrap;
}

.asp-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  color: #1f2937;
  vertical-align: middle;
}

.asp-table tbody tr:last-child td { border-bottom: none; }
.asp-table tbody tr:hover td { background: rgba(247, 245, 252, 0.5); }
.asp-row-inactive td { opacity: 0.5; }

.asp-td-id { color: #6b7280; font-size: 0.78rem; width: 48px; }
.asp-td-price { font-weight: 700; color: #7c3aed; white-space: nowrap; }

/* ── Product name cell ────────────────────────────────────── */
.asp-product-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asp-product-img {
  width: 32px; height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.asp-product-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffb347, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* ── Category chips ───────────────────────────────────────── */
.asp-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.asp-cat-games     { background: rgba(124,58,237,0.10); color: #7c3aed; }
.asp-cat-streaming { background: rgba(185,28,28,0.10);  color: #b91c1c; }
.asp-cat-musica    { background: rgba(15,157,99,0.10);  color: #0f9d63; }
.asp-cat-compras   { background: rgba(124,58,237,0.10); color: #7c3aed; }
.asp-cat-social    { background: rgba(124,58,237,0.10); color: #7c3aed; }
.asp-cat-outros    { background: rgba(90,61,26,0.10); color: #1f2937; }

/* ── Toggle ───────────────────────────────────────────────── */
.asp-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.asp-toggle-on  { background: rgba(15,157,99,0.12); color: #0f9d63; }
.asp-toggle-off { background: rgba(160,128,80,0.12); color: #6b7280; }
.asp-toggle-on:hover  { background: rgba(15,157,99,0.22); }
.asp-toggle-off:hover { background: rgba(160,128,80,0.22); }

/* ── Row actions ──────────────────────────────────────────── */
.asp-row-actions { display: flex; gap: 6px; }

/* ── Misc ─────────────────────────────────────────────────── */
.asp-loading,
.asp-empty {
  font-size: 0.9rem;
  color: #6b7280;
  padding: 24px 0;
  text-align: center;
}

/* ── Image upload ─────────────────────────────────────────── */
.asp-image-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.asp-image-preview {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 2px dashed rgba(124, 58, 237, 0.28);
  background: rgba(247, 245, 252, 0.6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s;
}

.asp-image-preview:hover {
  border-color: #7c3aed;
}

.asp-image-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.asp-image-preview-placeholder {
  font-size: 1.6rem;
  opacity: 0.5;
}

.asp-image-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.asp-image-url-input {
  background: rgba(247, 245, 252, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: #1f2937;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

.asp-image-url-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.asp-image-url-input::placeholder { color: #9ca3af; }

.asp-upload-btn {
  align-self: flex-start;
  font-size: 0.82rem !important;
  padding: 7px 14px !important;
  white-space: nowrap;
}

.asp-clear-img-btn {
  align-self: flex-start;
  font-size: 0.78rem !important;
  padding: 5px 10px !important;
}

/* ── Botão accent ─────────────────────────────────────────── */
.btn.accent {
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn.accent:hover { background: rgba(124, 58, 237, 0.20); }

/* ── Stock panel ──────────────────────────────────────────── */
.asp-stock-card {
  border-color: rgba(99,102,241,0.25);
}

.asp-stock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.asp-stock-header .asp-card-title { margin-bottom: 4px; }

.asp-stock-sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

.asp-stock-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.asp-stock-stat {
  background: rgba(247, 245, 252, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
}

.asp-stock-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1f2937;
}

.asp-stock-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.asp-stock-available strong { color: #0f9d63; }
.asp-stock-used     strong { color: #b91c1c; }

.asp-stock-add {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.asp-stock-add-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.asp-stock-hint {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
  background: rgba(247, 245, 252, 0.6);
  border-radius: 5px;
  padding: 2px 8px;
}

.asp-stock-textarea {
  background: rgba(247, 245, 252, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-family: 'Courier New', monospace;
  color: #1f2937;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

.asp-stock-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.asp-stock-textarea::placeholder { color: #9ca3af; }

/* ── Codes table ──────────────────────────────────────────── */
.asp-codes-table .asp-code-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.84rem;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 5px;
  padding: 2px 8px;
  color: #7c3aed;
  letter-spacing: 0.04em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-shop-products-page .admin-content { padding: 20px 16px; }
  .asp-search { width: 160px; }
}

@media (max-width: 600px) {
  .asp-list-header { flex-direction: column; }
  .asp-filters { width: 100%; }
  .asp-search { flex: 1; width: auto; }
}
/* Estilos genéricos de CRUD admin (usados por AdminVipLevels e AdminVipPhotos) */
.admin-mini-tasks-page {
  background: #f7f6fc;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; }

.btn.primary {
  background: #7c3aed;
  color: #ffffff;
}

.btn.ghost {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #eee0fc;
}

.btn.danger {
  background: #ef4444;
  color: #ffffff;
}

.admin-mini-wrap {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .admin-mini-wrap {
    grid-template-columns: 1fr;
  }
}

.admin-mini-card {
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.07);
}

.admin-mini-card-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f2937;
}

.admin-mini-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-mini-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-mini-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-mini-field input,
.admin-mini-field select,
.admin-mini-field textarea {
  border: 1px solid #eee0fc;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #1f2937;
}

.admin-mini-field input:focus,
.admin-mini-field select:focus,
.admin-mini-field textarea:focus {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  border-color: rgba(124, 58, 237, 0.6);
}

.admin-mini-field-checkbox {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.admin-mini-image-preview {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-mini-image-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #f1edf9;
  background: #fff;
}

.admin-mini-image-error {
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-mini-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.admin-mini-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
}

.admin-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: #ffffff;
}

.admin-mini-table th,
.admin-mini-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f1edf9;
  white-space: nowrap;
}

.admin-mini-table th {
  color: #1f2937;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-mini-table-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f1edf9;
}

.admin-mini-no-img {
  color: #9ca3af;
  font-size: 0.8rem;
}

.admin-mini-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.78rem;
}

.admin-mini-status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-mini-status.active {
  background: rgba(15, 157, 99, 0.12);
  color: #0f9d63;
}

.admin-mini-status.inactive {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.admin-mini-row-actions {
  display: flex;
  gap: 8px;
}
.inv-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.inv-user-card {
  background: #ffffff;
  border: 1px solid #f1edf9;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.inv-user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.inv-user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inv-user-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.inv-user-card-id {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-user-card-id strong {
  font-size: 0.92rem;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-user-card-id small {
  font-size: 0.74rem;
  color: #9ca3af;
}

.inv-user-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f7f5fc;
}

.inv-user-card-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-user-card-item span {
  font-size: 0.68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inv-user-card-item strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1f2937;
}

.inv-user-card-item strong.is-purple { color: #7c3aed; }
.inv-user-card-item strong.is-green { color: #0f9d63; }

.inv-user-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f7f5fc;
}

.inv-user-card-foot span {
  font-size: 0.74rem;
  color: #9ca3af;
}

/* ── Modal de detalhes ── */
.inv-details-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 51, 0.55);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.inv-details-modal {
  margin-top: 0;
  width: 100%;
  max-width: 900px;
  max-height: 86vh;
  overflow: auto;
}

.inv-details-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.inv-details-summary div {
  background: #f7f5fc;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inv-details-summary span {
  font-size: 0.68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inv-details-summary strong {
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
}

.inv-details-summary strong.is-purple { color: #7c3aed; }
.inv-details-summary strong.is-green { color: #0f9d63; }

@media (max-width: 640px) {
  .inv-users-grid {
    grid-template-columns: 1fr;
  }

  .inv-details-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ─── VIP Photos Grid ─────────────────────────────────────── */

.vip-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 0 1rem 2rem;
}

.vip-photo-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.vip-photo-card:hover {
  border-color: #7c3aed;
}

.vip-photo-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(247, 245, 252, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vip-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vip-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.vip-photo-info {
  padding: 0.9rem 1rem 0.5rem;
}

.vip-photo-info h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
  font-weight: 600;
}

.vip-photo-info p {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.vip-photo-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vip-photo-status.active {
  background: rgba(15, 157, 99, 0.12);
  color: #0f9d63;
}

.vip-photo-status.inactive {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.vip-photo-upload-btn {
  margin: 0.6rem 1rem 1rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #e67600);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.vip-photo-upload-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.vip-photo-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wb-preview {
  aspect-ratio: 2.6 / 1;
}

.wb-link-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.wb-link-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  box-sizing: border-box;
}

.wb-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.6rem 1rem 1rem;
}

.wb-btn-grow {
  margin: 0;
  flex: 1;
}

.wb-state-msg {
  padding: 2rem;
  color: #6b6b6b;
  text-align: center;
}

.wb-state-msg--error {
  color: #ff5252;
}
/* ── AdminCycleOrders ───────────────────────────────────────────── */

/* Summary strip */
.aco-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.aco-summary-card {
  flex: 1 1 140px;
  background: #1e2736;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aco-summary-label {
  font-size: 11px;
  color: #8a9ab5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aco-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
}

/* Color helpers */
.aco-c-orange { color: #f59e0b; }
.aco-c-red    { color: #ef4444; }
.aco-c-green  { color: #34d399; }

/* Filters row */
.aco-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.aco-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.aco-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #8a9ab5;
  cursor: pointer;
  transition: all 0.18s;
}

.aco-tab:hover {
  border-color: rgba(99,102,241,0.4);
  color: #c7d2fe;
}

.aco-tab.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.aco-search {
  flex: 1 1 200px;
  max-width: 320px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #1e2736;
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s;
}

.aco-search::placeholder { color: #556070; }

.aco-search:focus {
  border-color: rgba(99,102,241,0.5);
}

/* Error / loading / empty */
.aco-error  { color: #ef4444; margin-bottom: 12px; font-size: 14px; }
.aco-loading,
.aco-empty  { padding: 30px; text-align: center; color: #8a9ab5; }
.aco-count  { font-size: 12px; color: #8a9ab5; margin-top: 10px; text-align: right; }

/* Table tweaks */
.aco-table th,
.aco-table td {
  white-space: nowrap;
}

/* User cell */
.aco-user-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.aco-user-name  { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.aco-user-phone { font-size: 11px; color: #8a9ab5; }

/* Status badges */
.aco-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.aco-badge--ongoing {
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
}

.aco-badge--expired {
  color: #ef4444;
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.35);
}

.aco-badge--completed {
  color: #34d399;
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.35);
}

/* User button */
.aco-user-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.aco-user-btn:hover {
  background: rgba(99,102,241,0.28);
  color: #c7d2fe;
}

.aco-user-btn--full {
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  text-align: center;
}

/* Mobile cards */
.aco-cards {
  display: none;
}

.aco-card {
  background: #1e2736;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.aco-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.aco-card-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.aco-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

.aco-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8a9ab5;
}

.aco-card-row span:last-child {
  color: #e2e8f0;
  font-weight: 600;
}

/* Responsive: hide table, show cards */
@media (max-width: 720px) {
  .admin-table-wrap .aco-table { display: none; }
  .aco-cards { display: block; }
  .aco-summary-card { flex-basis: calc(50% - 5px); }
}
:root {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 211, 138, 0.55), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 3, 0.28), transparent 34%),
    linear-gradient(170deg, #fff5eb 0%, #ffe1b8 50%, #fec075 100%);
  background-attachment: fixed;
  color: #5a3d1a;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 211, 138, 0.55), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 3, 0.28), transparent 34%),
    linear-gradient(170deg, #fff5eb 0%, #ffe1b8 50%, #fec075 100%);
  background-attachment: fixed;
  z-index: -1;
  pointer-events: none;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: inherit;
}

/* ═══════════════════════════════════════
   ANIMATED BACKGROUND (disabled — TRK uses App.css body bg)
═══════════════════════════════════════ */

.bg-animation {
  display: none;
}

/* Grid overlay removed per user request */

/* Floating particles (disabled) */
.particles {
  display: none;
}

/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* ═══════════════════════════════════════
   CARD SHELL
═══════════════════════════════════════ */

.auth-shell {
  width: min(980px, 100%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(59, 130, 246, 0.08);
  animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-shell-no-banner {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.login-invite-notice {
  background: linear-gradient(135deg, #0b1e45, #0f2a5c);
  border-radius: 10px;
  padding: 12px 16px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 2;
  margin-bottom: 18px;
}

.login-invite-highlight {
  color: #facc15;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   HERO / PHOTO PANEL
═══════════════════════════════════════ */

.hero-panel {
  position: relative;
  min-height: 220px;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) brightness(0.9);
}

.login-banner-panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(56, 189, 248, 0.24), transparent 42%),
    radial-gradient(circle at 78% 76%, rgba(37, 99, 235, 0.24), transparent 46%),
    linear-gradient(155deg, #020617 0%, #0b1633 48%, #10224a 100%);
  margin-right: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pglm-banner-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transition: transform 0.7s ease-in-out;
}

.pglm-banner-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pglm-banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  z-index: 1;
}

.pglm-banner-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.8);
}

.pglm-banner-bg-glow {
  position: absolute;
  inset: 14% 16%;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 72%);
  filter: blur(18px);
}

.pglm-banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 16px;
}

.pglm-banner-kicker {
  margin: 0 0 10px;
  color: rgba(186, 230, 253, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pglm-banner-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #dbeafe;
  text-shadow:
    0 0 18px rgba(59, 130, 246, 0.55),
    0 0 44px rgba(37, 99, 235, 0.4);
}

.pglm-banner-subtitle {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
}

.pglm-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.pglm-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.45);
  transition: all 0.2s ease;
}

.pglm-banner-dot.active {
  width: 20px;
  background: #38bdf8;
}

.pglm-banner-lightning {
  position: absolute;
  width: 78px;
  height: 140px;
  z-index: 2;
  fill: #38bdf8;
  filter:
    drop-shadow(0 0 6px rgba(56, 189, 248, 0.95))
    drop-shadow(0 0 16px rgba(59, 130, 246, 0.75));
  animation: pglmLightningPulse 1.8s ease-in-out infinite;
}

.pglm-banner-lightning.left {
  left: 9%;
  top: 23%;
  transform: rotate(-8deg);
}

.pglm-banner-lightning.right {
  right: 9%;
  top: 34%;
  transform: scaleX(-1) rotate(-6deg);
  animation-delay: 0.35s;
}

@keyframes pglmLightningPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
  }
}

/* ── Invite Banner Panel ──────────────────────────────────────────────── */
.login-invite-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pglm-invite-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.pglm-invite-glow-1 {
  width: 220px;
  height: 220px;
  top: -30px;
  left: -40px;
  background: rgba(56, 189, 248, 0.22);
}

.pglm-invite-glow-2 {
  width: 180px;
  height: 180px;
  bottom: -20px;
  right: -30px;
  background: rgba(52, 211, 153, 0.2);
}

.pglm-invite-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pglm-invite-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.6));
  animation: pglmInviteFloat 2.4s ease-in-out infinite;
}

@keyframes pglmInviteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.pglm-invite-kicker {
  margin: 0;
  color: rgba(186, 230, 253, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.pglm-invite-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 900;
  color: #dbeafe;
  line-height: 1.25;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.pglm-invite-reward {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 16px;
  padding: 10px 22px;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}

.pglm-invite-currency {
  color: #34d399;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 6px;
}

.pglm-invite-value {
  color: #34d399;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.55);
  letter-spacing: -1px;
}

.pglm-invite-desc {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pglm-invite-desc strong {
  color: #7dd3fc;
}

.pglm-invite-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.pglm-invite-step {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.pglm-invite-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b63ff, #2563eb);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pglm-invite-step-arrow {
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 20px 22px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.hero-overlay h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hero-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   FORM PANEL
═══════════════════════════════════════ */

.form-panel {
  background: #ffffff;
  padding: 24px;
}

.form-panel h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.subtitle {
  margin: 8px 0 20px;
  color: #64748b;
  font-size: 0.93rem;
}

/* ═══════════════════════════════════════
   AUTH FORM (shared login + register)
═══════════════════════════════════════ */

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.auth-form input[type='text'],
.auth-form input[type='email'],
.auth-form input[type='tel'],
.auth-form input[type='password'] {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.96rem;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #64748b;
  opacity: 0.95;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.input-with-icon input[type='text'],
.input-with-icon input[type='email'],
.input-with-icon input[type='tel'],
.input-with-icon input[type='password'] {
  padding-left: 38px;
}

.auth-form input[type='text']:focus,
.auth-form input[type='email']:focus,
.auth-form input[type='tel']:focus,
.auth-form input[type='password']:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* Row (remember-me + forgot) */
.row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #475569;
  font-size: 0.88rem;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

/* Links */
.text-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.text-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.text-link.bold {
  font-weight: 700;
  font-size: 0.92rem;
}

/* Submit button */
.auth-form button {
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: 0.2px;
}

.auth-form button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.auth-form button:active {
  transform: translateY(0);
}

.auth-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.auth-form button:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.4);
  outline-offset: 2px;
}

/* Feedback messages */
.feedback {
  margin: 12px 0 0;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.feedback.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Switch page (login ↔ register) */
.switch-page {
  margin: 16px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
}

/* Social links */
.social-links-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.social-links-title {
  margin: 0 0 10px;
  text-align: center;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.social-link-button {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.social-link-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.social-link-button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.social-link-button.instagram {
  background: linear-gradient(135deg, #fd1d1d 0%, #c13584 45%, #833ab4 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(193, 53, 132, 0.25);
}

.social-link-button.youtube {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25);
}

.social-link-button.telegram {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.28);
}

/* ═══════════════════════════════════════
   DESKTOP LAYOUT
═══════════════════════════════════════ */

@media (min-width: 860px) {
  .auth-page {
    padding: 24px;
  }

  .auth-shell {
    grid-template-columns: 1.1fr 1fr;
    min-height: 580px;
  }

  .auth-shell-no-banner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-panel {
    min-height: 100%;
  }

  .login-banner-panel {
    margin-right: 16px;
  }

  .form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
  }
}

/* ═══════════════════════════════════════
   FLOATING SUPPORT BUTTON
═══════════════════════════════════════ */
.support-float-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
}

.support-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.support-float-btn:active {
  transform: scale(0.95);
}
