/* ==========================================================================
   PANDASMM.COM — ESTILOS DO PAINEL DO CLIENTE (PAINEL.CSS)
   Aderência 100% a tokens.css. Sem valores soltos (hex ou px mágicos).
   ========================================================================== */

/* Prevenção estrita de distorção de largura e zoom indesejado no mobile */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

.painel-layout,
.painel-main,
.painel-content,
.tab-section,
.order-grid-layout,
.payment-grid-layout,
.payment-summary-col,
.order-form-card,
.order-step-group,
.visual-picker-card,
.order-summary-card {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#order-service-desc,
#summary-service-name {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  input, select, textarea, .picker-search-input, .input-field, .qty-input {
    font-size: 16px !important;
  }
}

/* Layout Principal */
.painel-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: var(--z-base);
}

/* ==========================================================================
   SIDEBAR (DESKTOP)
   ========================================================================== */

.sidebar-desktop {
  display: none;
  width: var(--sidebar-w);
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  flex-direction: column;
  position: fixed;
  top: var(--space-0);
  bottom: var(--space-0);
  left: var(--space-0);
  z-index: var(--z-sidebar);
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .sidebar-desktop {
    display: flex;
  }
  .painel-main {
    margin-left: var(--sidebar-w);
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.sidebar-brand-img {
  width: var(--avatar-md);
  height: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: var(--color-surface-2);
  color: var(--color-text);
}

.nav-link.active {
  background-color: var(--color-surface-3);
  color: var(--color-cyan);
  border-color: var(--color-border-cyan);
  box-shadow: var(--glow-cyan);
}

/* ── Destaques especiais de menu ── */

/* Afiliados: dourado */
.nav-link--gold {
  color: #FFD700 !important;
  border-color: rgba(255, 215, 0, 0.18) !important;
  background: linear-gradient(90deg, rgba(255,215,0,0.07) 0%, transparent 100%) !important;
  position: relative;
}
.nav-link--gold:hover {
  background: linear-gradient(90deg, rgba(255,215,0,0.14) 0%, rgba(255,215,0,0.04) 100%) !important;
  border-color: rgba(255,215,0,0.35) !important;
}
.nav-link--gold .nav-badge {
  background: rgba(255,215,0,0.15);
  color: #FFD700;
  border: 1px solid rgba(255,215,0,0.4);
}

/* Assinaturas: roxo/magenta */
.nav-link--purple {
  color: #c084fc !important;
  border-color: rgba(192,132,252,0.18) !important;
  background: linear-gradient(90deg, rgba(139,0,255,0.09) 0%, transparent 100%) !important;
}
.nav-link--purple:hover {
  background: linear-gradient(90deg, rgba(139,0,255,0.16) 0%, rgba(139,0,255,0.04) 100%) !important;
  border-color: rgba(192,132,252,0.35) !important;
}
.nav-link--purple .nav-badge {
  background: rgba(139,0,255,0.15);
  color: #c084fc;
  border: 1px solid rgba(192,132,252,0.4);
}

/* Mural de Avisos: ciano suave com pulso */
.nav-link--notice {
  color: var(--color-cyan) !important;
  border-color: rgba(0,229,255,0.18) !important;
  background: linear-gradient(90deg, rgba(0,229,255,0.07) 0%, transparent 100%) !important;
  position: relative;
}
.nav-link--notice:hover {
  background: linear-gradient(90deg, rgba(0,229,255,0.14) 0%, rgba(0,229,255,0.04) 100%) !important;
  border-color: rgba(0,229,255,0.35) !important;
}
.nav-link--notice .nav-badge {
  background: rgba(0,229,255,0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(0,229,255,0.4);
  animation: pulse-notice 2s ease-in-out infinite;
}
@keyframes pulse-notice {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link--notice .nav-badge { animation: none; }
}

/* Badge genérico do menu */
.nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.painel-header {
  height: var(--header-h);
  background-color: var(--color-surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  position: sticky;
  top: var(--space-0);
  z-index: var(--z-header);
  box-sizing: border-box;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}

#drawer-toggle-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
}

#drawer-toggle-btn svg,
#hdr-icon-menu svg {
  width: 17px;
  height: 17px;
  display: block;
}

.header-left .brand-logo-text {
  font-size: 13.5px;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}

/* Pílula de Saldo */
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-pill);
  padding: 2px 6px 2px 7px;
  cursor: pointer;
  height: 29px;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.balance-pill:hover {
  border-color: var(--color-cyan);
}

.balance-pill:active {
  transform: scale(0.97);
}

#hdr-icon-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#hdr-icon-wallet svg {
  width: 13px;
  height: 13px;
  display: block;
}

.balance-value {
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  font-size: 12.5px;
  font-family: var(--font-heading);
  line-height: 1;
  white-space: nowrap;
}

.balance-add-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.balance-add-btn svg {
  width: 9px;
  height: 9px;
  stroke: #ffffff;
  display: block;
}

/* Notificação Sino */
.bell-btn {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-circle);
  flex-shrink: 0;
  padding: 0;
}

#hdr-icon-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#hdr-icon-bell svg {
  width: 17px;
  height: 17px;
  display: block;
}

.bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background-color: var(--color-danger);
  border-radius: var(--radius-circle);
  box-shadow: 0 0 8px var(--color-danger);
}

/* Avatar com anel gradiente */
.user-avatar-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-circle);
  padding: 1.5px;
  background: var(--gradient-hot);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-circle);
  background-color: var(--color-surface);
  object-fit: cover;
}

@media (min-width: 1024px) {
  .painel-header {
    padding: var(--space-0) var(--space-6);
  }

  #drawer-toggle-btn {
    display: none !important;
  }

  .header-left {
    gap: var(--space-4);
  }

  .header-left .brand-logo-text {
    font-size: var(--font-size-lg);
    gap: 4px;
  }

  .header-right {
    gap: var(--space-3);
  }

  .balance-pill {
    height: 32px;
    padding: 3px 8px;
    gap: 6px;
  }

  #hdr-icon-wallet svg {
    width: 15px;
    height: 15px;
  }

  .balance-value {
    font-size: 13px;
  }

  .balance-add-btn {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .balance-add-btn svg {
    width: 10px;
    height: 10px;
  }

  .bell-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  #hdr-icon-bell svg {
    width: 19px;
    height: 19px;
  }

  .bell-badge {
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
  }

  .user-avatar-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 2px;
  }
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL
   ========================================================================== */

.painel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: calc(var(--bottomnav-h) + var(--space-8));
}

@media (min-width: 1024px) {
  .painel-main {
    padding-bottom: var(--space-8);
  }
}

.painel-content {
  width: 100%;
  max-width: var(--content-max-desktop);
  margin: var(--space-0) auto;
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .painel-content {
    padding: var(--space-6);
  }
}

/* ==========================================================================
   TICKER / LETREIRO DE AVISOS
   ========================================================================== */

.news-ticker {
  background: var(--gradient-banner);
  border: 1px solid var(--color-border-cyan);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.ticker-tag {
  background-color: var(--color-cyan);
  color: var(--color-on-gradient);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ==========================================================================
   NOVO TOPO VISUAL GAMIFICADO (APPSOCIAL STYLE)
   Banner de Missões, Indicadores, Recompensas Diárias e Cards de Ação
   ========================================================================== */

/* 1) Banner Principal de Missões & Prêmios */
.gamified-hero-banner {
  background: radial-gradient(circle at 85% 50%, rgba(139, 0, 255, 0.45) 0%, rgba(88, 28, 135, 0.25) 45%, rgba(15, 12, 34, 0.98) 75%), #120e2b;
  border: 1px solid rgba(139, 0, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(139, 0, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 16px 14px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 125px;
  margin-bottom: 6px;
}

.gamified-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
  max-width: 62%;
}

.gamified-banner-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--font-weight-black);
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
}

.gamified-banner-title .gradient-text {
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gamified-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 7px 18px;
  background: linear-gradient(135deg, #7028e4 0%, #a238ff 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(139, 0, 255, 0.45);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  min-height: 34px;
}

.btn-gamified-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 255, 0.65);
}

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

.gamified-banner-mascot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  margin-right: -4px;
}

.gamified-banner-mascot {
  width: auto;
  height: 108px;
  max-width: 125px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(139, 0, 255, 0.35));
  transition: transform 0.3s ease;
}

/* Indicadores de Carrossel (3 bolinhas com a primeira ativa) */
.gamified-banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px auto 14px auto;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  transition: all var(--dur-fast) var(--ease);
}

.banner-dot.active {
  width: 18px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.55);
}

/* ==========================================================================
   BANNERS NATALINOS DOS SETORES (DESKTOP E MOBILE)
   ========================================================================== */
.sector-natal-banner {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(139, 0, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(139, 0, 255, 0.35);
  margin-bottom: 6px;
  position: relative;
  background: radial-gradient(circle at 85% 50%, rgba(139, 0, 255, 0.45) 0%, rgba(88, 28, 135, 0.25) 45%, rgba(15, 12, 34, 0.98) 75%), #120e2b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-natal-banner .sector-banner-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: right center;
  display: block;
  border-radius: var(--radius-card);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 768px) {
  .sector-natal-banner .sector-banner-img {
    height: 145px;
    object-position: center right;
  }
}

@media (min-width: 1024px) {
  .sector-natal-banner .sector-banner-img {
    height: 165px;
  }
}

/* 2) Título da Seção: Recompensas diárias */
.daily-rewards-header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daily-rewards-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
}

.daily-rewards-icon {
  font-size: 18px;
  line-height: 1;
}

/* 3) Grid com 3 Cards de Ação Lado a Lado (Prêmios, Indique, Missões) */
.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: var(--space-4);
  align-items: stretch;
}

.reward-action-card {
  background: linear-gradient(180deg, rgba(26, 20, 52, 0.95) 0%, rgba(16, 12, 34, 0.98) 100%);
  border: 1px solid rgba(139, 0, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 10px 4px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: 100%;
  min-height: 135px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.reward-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.2);
}

.reward-action-card:active {
  transform: scale(0.97);
}

.action-card-img-wrap {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.action-card-img {
  max-height: 52px;
  max-width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.reward-action-card:hover .action-card-img {
  transform: scale(1.06);
}

.action-card-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: var(--font-weight-black);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 2px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.action-card-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
  padding: 0 2px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

/* Responsivo Tablet & Desktop */
@media (min-width: 768px) {
  .gamified-hero-banner {
    padding: 22px 28px;
    min-height: 150px;
  }

  .gamified-banner-title {
    font-size: 21px;
  }

  .btn-gamified-cta {
    font-size: 13.5px;
    padding: 9px 22px;
  }

  .gamified-banner-mascot {
    height: 130px;
    max-width: 155px;
  }

  .daily-rewards-title {
    font-size: 17px;
  }

  .action-cards-grid {
    gap: 14px;
  }

  .reward-action-card {
    padding: 16px 10px 14px 10px;
    border-radius: var(--radius-lg);
  }

  .action-card-img-wrap {
    height: 80px;
  }

  .action-card-title {
    font-size: 15px;
  }

  .action-card-sub {
    font-size: 11px;
  }
}

/* ==========================================================================
   BANNER HERO COM MASCOTE
   ========================================================================== */

.hero-banner {
  background: var(--gradient-banner);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}

.hero-banner-content {
  flex: 1;
}

.hero-banner-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  margin-bottom: var(--space-1);
}

.hero-banner-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.hero-banner-mascot {
  width: var(--mascot-banner);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   ABAS DE REDES SOCIAIS (PÍLULAS)
   ========================================================================== */

.network-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.network-tabs::-webkit-scrollbar {
  display: none;
}

.network-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}

.network-tab-btn:hover {
  border-color: var(--color-cyan);
  color: var(--color-text);
}

.network-tab-btn.active {
  background: var(--gradient-primary);
  color: var(--color-on-gradient);
  font-weight: var(--font-weight-bold);
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

.network-tab-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  object-fit: contain;
}

/* ==========================================================================
   NOVO PEDIDO (LAYOUT DESKTOP E MOBILE)
   ========================================================================== */

.order-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .order-grid-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-5);
  }
}

.order-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* ==========================================================================
   SELETORES VISUAIS DE CATEGORIA & SERVIÇO (PASSO 1 E PASSO 2)
   Cards Interativos com Ícone da Rede Social, Preço em Destaque e Modais
   ========================================================================== */

.visually-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.order-step-group {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.step-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.step-num-pill {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  color: #0b071a;
  font-weight: var(--font-weight-black);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  flex-shrink: 0;
}

@keyframes pulseStepPill {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.8), 0 0 24px rgba(139, 0, 255, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  }
}

.step-num-pill.blinking {
  animation: pulseStepPill 1.4s infinite ease-in-out;
  border: 1px solid var(--color-cyan);
}

@media (prefers-reduced-motion: reduce) {
  .step-num-pill.blinking {
    animation: none;
  }
}

.step-sub-hint {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-left: auto;
}

/* Card Visual Interativo de Seleção (Imune a quebra ou overflow por texto grande) */
.visual-picker-card {
  background: linear-gradient(180deg, rgba(26, 20, 52, 0.95) 0%, rgba(16, 12, 34, 0.98) 100%);
  border: 1px solid rgba(139, 0, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  user-select: none;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-height: 62px;
}

.visual-picker-card:hover {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.16);
  transform: translateY(-1px);
}

.visual-picker-card:active {
  transform: scale(0.99);
}

.picker-card-left {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

.picker-network-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.picker-network-sticker {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.picker-info-col {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.picker-eyebrow {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-cyan);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: 2px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: block !important;
}

.picker-main-text {
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: var(--font-weight-bold) !important;
  color: #ffffff !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.25 !important;
}

.picker-meta-hint {
  font-size: 10.5px;
  color: var(--color-text-dim);
  margin-top: 2px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: block !important;
}

.picker-tags-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 3px;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.picker-badge-speed {
  font-size: 9.5px !important;
  font-weight: var(--font-weight-semibold);
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 1px 5px;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.picker-badge-limit {
  font-size: 9.5px;
  color: var(--color-text-dim);
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex-shrink: 1 !important;
  max-width: 100% !important;
}

.picker-card-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.picker-price-display {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.picker-price-highlight {
  font-family: var(--font-heading) !important;
  font-size: 14.5px !important;
  font-weight: var(--font-weight-black) !important;
  color: var(--color-success);
  text-shadow: 0 0 10px rgba(34, 229, 139, 0.35);
  line-height: 1 !important;
  white-space: nowrap !important;
}

.picker-price-label {
  font-size: 9px;
  color: var(--color-text-dim);
  white-space: nowrap !important;
}

.picker-action-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  background: rgba(139, 0, 255, 0.28) !important;
  border: 1px solid rgba(139, 0, 255, 0.5) !important;
  color: var(--color-cyan) !important;
  font-size: 10.5px !important;
  font-weight: var(--font-weight-bold) !important;
  padding: 3px 8px !important;
  border-radius: var(--radius-pill) !important;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.visual-picker-card:hover .picker-action-pill {
  background: rgba(0, 229, 255, 0.2) !important;
  border-color: var(--color-cyan) !important;
  color: #fff !important;
}

/* ==========================================================================
   MODAIS DOS SELETORES (CATEGORIAS E SERVIÇOS)
   ========================================================================== */

.picker-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease);
}

.picker-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.picker-modal-card {
  background: linear-gradient(180deg, #171333 0%, #0d0a21 100%);
  border: 1px solid rgba(139, 0, 255, 0.35);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 0, 255, 0.2);
  transform: translateY(100%);
  transition: transform var(--dur-normal) var(--ease);
  overflow: hidden;
}

.picker-modal-overlay.open .picker-modal-card {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .picker-modal-overlay {
    align-items: center;
    padding: 20px;
  }

  .picker-modal-card {
    border-radius: 20px;
    max-height: 80vh;
    transform: scale(0.95);
    opacity: 0;
    transition: transform var(--dur-normal) var(--ease), opacity var(--dur-normal) var(--ease);
  }

  .picker-modal-overlay.open .picker-modal-card {
    transform: scale(1);
    opacity: 1;
  }
}

.picker-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.picker-modal-header-text {
  min-width: 0;
  flex: 1;
}

.picker-modal-step-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 4px;
}

.picker-modal-current-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--color-cyan);
  font-weight: var(--font-weight-semibold);
}

.picker-modal-close {
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.picker-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.picker-filter-tabs::-webkit-scrollbar {
  display: none;
}

.picker-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}

.picker-filter-btn.active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.picker-filter-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.picker-search-bar {
  position: relative;
  padding: 10px 16px 8px 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.picker-search-icon {
  position: absolute;
  left: 28px;
  font-size: 13px;
  color: var(--color-text-dim);
  pointer-events: none;
}

.picker-search-input {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 34px 0 38px;
  font-size: 12.5px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.picker-search-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.picker-search-clear {
  position: absolute;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.picker-sort-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 8px 16px;
  font-size: 11px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.sort-label {
  color: var(--color-text-dim);
  font-size: 10.5px;
  flex-shrink: 0;
}

.sort-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}

.sort-chip.active {
  background: rgba(139, 0, 255, 0.25);
  border-color: var(--color-purple);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(139, 0, 255, 0.3);
}

.picker-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.picker-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.picker-item-row:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateX(2px);
}

.picker-item-row.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.picker-item-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.picker-item-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.picker-item-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.picker-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.picker-item-meta {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 2px;
}

.picker-service-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.service-id-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.service-speed-tag {
  font-size: 10px;
  color: var(--color-text-muted);
}

.service-limits-tag {
  font-size: 10px;
  color: var(--color-text-dim);
}

.picker-item-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.picker-item-end.price-end {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.picker-item-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.picker-item-price-val {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-success);
  line-height: 1;
}

.picker-item-price-sub {
  font-size: 9.5px;
  color: var(--color-text-dim);
}

.picker-item-check {
  color: var(--color-cyan);
  font-weight: 900;
  font-size: 14px;
  margin-left: 2px;
}

/* Controle de Quantidade */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  height: var(--input-h-lg);
}

.qty-btn {
  width: var(--avatar-sm);
  height: var(--avatar-sm);
  border-radius: var(--radius-circle);
  border: none;
  background-color: var(--color-surface-3);
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.qty-btn.plus {
  background-color: var(--color-purple);
}

.qty-btn:active {
  transform: scale(0.92);
}

.qty-input {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  width: 120px;
  outline: none;
}

/* Box de Preço e Detalhes */
.order-price-box {
  background-color: var(--color-surface-3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
}

/* Card de Resgate de Moedas Panda Gold (Estilo Shopee) */
.order-gold-discount-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(20, 24, 40, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  transition: all var(--dur-fast) var(--ease);
}

.order-gold-discount-card.is-active {
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.16);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.10) 0%, rgba(28, 32, 54, 0.98) 100%);
}

.order-gold-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.order-gold-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-gold-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-gold-coin-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.order-gold-info {
  min-width: 0;
}

.order-gold-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-gold-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.2;
}

.order-gold-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  letter-spacing: 0.5px;
}

.order-gold-subtitle {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 3px;
  line-height: 1.3;
}

.order-gold-applied-bar {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 215, 0, 0.3);
  font-size: var(--font-size-xs);
  color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Switch toggle customizado para o painel */
.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.switch-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--color-surface-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.switch-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  background-color: var(--color-text-muted);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.switch-checkbox:checked + .switch-toggle {
  background-color: #FFD700;
  border-color: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.switch-checkbox:checked + .switch-toggle::after {
  transform: translateX(20px);
  background-color: #1a1600;
}

.switch-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-price-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.order-price-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-success);
}

/* ==========================================================================
   TABELAS E LISTAS RESPONSIVAS (PEDIDOS / SERVIÇOS)
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-size-sm);
}

.data-table th {
  background-color: var(--color-surface-2);
  color: var(--color-text-dim);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  font-size: var(--font-size-xs);
  letter-spacing: 0.5px;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--color-surface-2);
}

/* Filtros em Pílula */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
  scrollbar-width: none;
}

.filter-pill {
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active {
  background-color: var(--color-cyan);
  color: var(--color-on-gradient);
  border-color: var(--color-cyan);
  font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   BARRA INFERIOR MOBILE (5 ITENS FIXOS)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  height: var(--bottomnav-h);
  background: var(--color-surface-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-neon);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-bottomnav);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: var(--color-text-dim);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.bottom-nav-item:hover {
  color: var(--color-text);
}

.bottom-nav-item.active {
  color: var(--color-cyan);
}

.bottom-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 8px var(--color-cyan));
}

/* ==========================================================================
   GAVETA MOBILE (DRAWER)
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  inset: var(--space-0);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: var(--space-0);
  bottom: var(--space-0);
  left: var(--space-0);
  width: min(80vw, 320px);
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border-neon);
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4);
  overflow-y: auto;
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

/* ==========================================================================
   BALÃO DE TOUR / GUIA DE PRIMEIRA VISITA & DÚVIDAS (ULTRACOMPACTO & SMART FLIP)
   ========================================================================== */

.tour-balloon {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 360px);
  background: linear-gradient(135deg, rgba(24, 16, 48, 0.97) 0%, rgba(12, 8, 26, 0.98) 100%);
  border: 1.5px solid var(--color-cyan);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: floatUp 0.25s var(--ease, ease);
  backdrop-filter: blur(12px);
  transition: top 0.25s ease, bottom 0.25s ease, transform 0.25s ease;
}

/* Quando qualquer modal de seleção ou janela estiver aberta, os balões de dica NUNCA devem sobrepor */
body.modal-open .tour-balloon,
.picker-modal-overlay.open ~ .tour-balloon,
.picker-modal-overlay.open ~ #tour-balloon,
.picker-modal-overlay.open ~ #sector-tour-balloon,
body:has(.picker-modal-overlay.open) .tour-balloon,
body:has(.modal.open) .tour-balloon,
body:has(.picker-modal-overlay.open) #tour-balloon,
body:has(.picker-modal-overlay.open) #sector-tour-balloon,
body:has(.modal.open) #tour-balloon,
body:has(.modal.open) #sector-tour-balloon {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Posicionamento Inteligente: Fica no TOPO quando o elemento está na metade inferior */
.tour-balloon.tour-pos-top {
  top: 14px;
  bottom: auto;
}

/* Posicionamento Inteligente: Fica na BASE quando o elemento está na metade superior */
.tour-balloon.tour-pos-bottom {
  bottom: calc(var(--bottomnav-h, 60px) + 10px);
  top: auto;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.tour-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.tour-step-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.12);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.25);
  text-transform: uppercase;
}

.tour-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tour-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.tour-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.tour-main-content {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tour-mascot {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

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

.tour-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-cyan);
  margin-bottom: 2px;
  line-height: 1.2;
}

.tour-text {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
  margin-bottom: 0;
}

.tour-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.tour-nav-btn {
  height: 28px;
  font-size: 10.5px;
  padding: 0 10px;
  border-radius: var(--radius-pill, 999px);
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO PANDA (GUIA & DÚVIDAS)
   ========================================================================== */

.panda-guide-fab {
  position: fixed;
  bottom: calc(var(--bottomnav-h, 60px) + 14px);
  left: 14px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(24, 16, 52, 0.94) 0%, rgba(12, 8, 28, 0.97) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.6);
  border-radius: 9999px;
  padding: 5px 14px 5px 6px;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25), 0 0 12px rgba(139, 0, 255, 0.25);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
}

.panda-guide-fab:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: #00e5ff;
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.5), 0 0 16px rgba(139, 0, 255, 0.4);
}

.panda-guide-fab:active {
  transform: scale(0.96);
}

.guide-fab-mascot-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, rgba(139, 0, 255, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  flex-shrink: 0;
}

.guide-fab-mascot {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: pandaBounce 3s ease-in-out infinite;
}

.guide-fab-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.guide-fab-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.guide-fab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 6px #00e5ff;
  display: inline-block;
  animation: guidePulseDot 2s infinite ease-in-out;
}

@keyframes guidePulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.guide-fab-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

@keyframes pandaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 1024px) {
  .panda-guide-fab {
    bottom: 24px;
    left: 24px;
  }
}

/* Destaque Ancorado do Tour (Spotlight no Elemento Ativo) */
.tour-target-highlight {
  position: relative !important;
  z-index: 9998 !important;
  outline: 2px solid #00e5ff !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.65), 0 0 12px rgba(139, 0, 255, 0.5) !important;
  border-color: #00e5ff !important;
  animation: tourGlowPulse 1.8s infinite ease-in-out !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.3s ease !important;
}

@keyframes tourGlowPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4), 0 0 8px rgba(139, 0, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.85), 0 0 18px rgba(139, 0, 255, 0.7);
  }
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.65);
  z-index: 9995;
  pointer-events: auto;
  backdrop-filter: blur(2px);
  animation: floatUp 0.25s ease;
}

/* ==========================================================================
   BALÃOZINHO DE AVISO DE LINK INCOMPATÍVEL (SUBINDO PERTO DO INPUT)
   ========================================================================== */

.panda-speech-balloon {
  position: relative;
  margin-top: 8px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(35, 15, 60, 0.98) 0%, rgba(20, 10, 40, 0.98) 100%);
  border: 1.5px solid var(--color-secondary, #ff00c8);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255, 0, 200, 0.25), 0 0 10px rgba(0, 229, 255, 0.2);
  animation: pandaBalloonPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.panda-speech-balloon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 26px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--color-secondary, #ff00c8);
}

@keyframes pandaBalloonPop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.balloon-mascot-wrap {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balloon-mascot {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.balloon-content {
  flex: 1;
  min-width: 0;
}

.balloon-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #ff4081;
  margin-bottom: 2px;
  line-height: 1.2;
}

.balloon-text {
  font-size: 11px;
  color: #ffffff;
  line-height: 1.35;
}

.balloon-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: var(--radius-full);
  align-self: flex-start;
  transition: color 0.15s ease;
}

.balloon-close-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   TOASTS / NOTIFICAÇÕES
   ========================================================================== */

.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  box-shadow: var(--glow-card);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: auto;
  min-width: 260px;
}

.toast-success { border-color: var(--color-success); }
.toast-error { border-color: var(--color-danger); }
.toast-info { border-color: var(--color-cyan); }

/* ==========================================================================
   NOVA ÁREA DE ADICIONAR SALDO & PAGAMENTOS (DESIGN FINTECH NEON)
   ========================================================================== */

/* Barra de Etapas (Step Progress) */
.payment-steps-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.payment-steps-bar::-webkit-scrollbar {
  display: none;
}

.payment-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  color: var(--color-text-dim);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}

.payment-step-item.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  font-weight: var(--font-weight-bold);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.payment-step-item.completed {
  border-color: var(--color-success);
  color: var(--color-success);
}

.payment-step-num {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.payment-step-item.active .payment-step-num {
  background: var(--color-cyan);
  color: #000;
  font-weight: 900;
}

/* Grade de Métodos de Pagamento */
.payment-methods-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (min-width: 600px) {
  .payment-methods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.payment-method-card {
  position: relative;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  user-select: none;
}

.payment-method-card:hover {
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

.payment-method-card.active {
  border-color: var(--color-cyan);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(139, 0, 255, 0.08) 100%), var(--color-surface-2);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.payment-method-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-method-card.active .payment-method-icon-wrap {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
}

.payment-method-info {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.payment-method-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 12.5px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.2;
}

.payment-method-title span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.payment-method-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.payment-method-badge.bonus {
  background: rgba(0, 230, 118, 0.12);
  color: var(--color-success);
  border-color: rgba(0, 230, 118, 0.25);
}

.payment-method-desc {
  font-size: 10.5px;
  color: var(--color-text-dim);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Indicador de Rádio Estilizado */
.payment-radio-circle {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: all var(--dur-fast) var(--ease);
}

.payment-method-card.active .payment-radio-circle {
  border-color: var(--color-cyan);
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

.payment-radio-circle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: transparent;
  transition: all var(--dur-fast) var(--ease);
}

.payment-method-card.active .payment-radio-circle::after {
  background: #000;
}

/* Botões de Valores Rápidos (3 Colunas x 2 Linhas - Perfeito Mobile & Desktop) */
.quick-amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
  margin-top: 10px;
  margin-bottom: var(--space-4);
  width: 100%;
  box-sizing: border-box;
}

.quick-amount-chip {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  user-select: none;
}

.quick-amount-chip:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

.quick-amount-chip.active {
  border-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.quick-amount-chip.is-popular {
  border-color: rgba(0, 229, 255, 0.45);
}

.chip-popular-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-cyan);
  color: #000;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 229, 255, 0.35);
  line-height: 1.2;
}

.quick-amount-chip .chip-val {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.2;
}

.quick-amount-chip .chip-bonus {
  font-size: 10px;
  color: var(--color-success);
  margin-top: 3px;
  font-weight: 600;
}

/* Mini Bandeiras e Logos Oficiais */
.brand-flags-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}

.flag-pill {
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.flag-pill.visa { background: #1A1F71; color: #fff; }
.flag-pill.master { background: #EB001B; color: #fff; }
.flag-pill.elo { background: #000; color: #FFD100; border: 1px solid rgba(255, 209, 0, 0.4); }
.flag-pill.usdt { background: #26A17B; color: #fff; }
.flag-pill.btc { background: #F7931A; color: #fff; }
.flag-pill.mp { background: #009EE3; color: #fff; }
.flag-pill.gpay { background: #3c4043; color: #fff; }

/* Faixa de Cálculo em Tempo Real */
.payment-calc-box {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-box-item {
  display: flex;
  flex-direction: column;
}

.calc-box-label {
  font-size: 11px;
  color: var(--color-text-dim);
}

.calc-box-val {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.calc-box-val.highlight {
  color: var(--color-success);
  font-size: var(--font-size-base);
}

/* ==========================================================================
   CARTÃO DE CRÉDITO INTERATIVO (CYBER CARD MOCKUP)
   ========================================================================== */
.cyber-card-wrapper {
  perspective: 1000px;
  margin: 0 auto var(--space-4);
  max-width: 330px;
  width: 100%;
}

.cyber-card-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #0e1628 0%, #1c153b 50%, #0a0e1c 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  border-radius: 16px;
  padding: 18px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.25);
  overflow: hidden;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Efeito de linhas neon de fundo */
.cyber-card-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 0, 200, 0.18), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.15), transparent 50%);
  pointer-events: none;
}

.cyber-card-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #e6b980 0%, #eac775 50%, #d69f4e 100%);
  border-radius: 5px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-chip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.card-brand-badge {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.card-number-display {
  position: relative;
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 1;
  text-align: center;
  word-spacing: 4px;
}

.cyber-card-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}

.card-holder-display {
  display: flex;
  flex-direction: column;
}

.card-holder-label {
  font-size: 8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.card-holder-name {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-expiry-display {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.card-expiry-label {
  font-size: 8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.card-expiry-val {
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Grid de Inputs do Cartão */
.card-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Selo de Segurança & Confiança (Trust Badge) */
.security-trust-box {
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-4);
}

.security-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.security-trust-text {
  font-size: 11.5px;
  color: var(--color-text-dim);
  line-height: 1.4;
}

.security-trust-text strong {
  color: var(--color-text);
  font-size: 12px;
  display: block;
}

/* Painel de Criptomoedas */
.crypto-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255, 171, 0, 0.15);
  border: 1px solid rgba(255, 171, 0, 0.4);
  color: #ffab00;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: bold;
}

/* ==========================================================================
   LAYOUT RESPONSIVO DA ABA DE PAGAMENTO (DESKTOP & MOBILE)
   ========================================================================== */
.payment-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .payment-grid-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: var(--space-5);
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.payment-summary-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.order-summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* ==========================================================================
   ÁREA DE AFILIADOS & LÍDERES (GAMIFICADA ESTILO REFERÊNCIA)
   ========================================================================== */

/* 1. VIP Member Hero Card */
.affiliate-vip-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(139, 0, 255, 0.22) 50%, rgba(13, 19, 38, 0.95) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.affiliate-vip-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
  border-radius: var(--radius-circle);
  pointer-events: none;
}

.aff-vip-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.aff-vip-info {
  flex: 1;
  min-width: 0;
}

.aff-vip-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-cyan);
  margin-bottom: 4px;
}

.aff-vip-title {
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aff-vip-badge {
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(0, 230, 118, 0.35);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.aff-vip-sub {
  font-size: 11.5px;
  color: var(--color-text-dim);
  line-height: 1.4;
  margin: 0;
}

.aff-vip-badge-icon {
  flex-shrink: 0;
  z-index: 1;
}

.aff-badge-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 229, 255, 0.35));
  display: block;
}

/* Barra de Progresso Full Width embaixo, perfeitamente desimpedida */
.aff-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: var(--space-2);
}

.aff-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.aff-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  transition: width 0.4s ease;
}

.aff-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-dim);
  flex-wrap: wrap;
  gap: 4px;
}

.aff-progress-next strong {
  color: var(--color-cyan);
}

@media (max-width: 480px) {
  .aff-badge-img {
    width: 46px;
    height: 46px;
  }
  .aff-vip-title {
    font-size: var(--font-size-base);
  }
}

/* 2. Card de Link de Divulgação & Métricas */
.affiliate-share-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-sizing: border-box;
}

.aff-share-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.aff-share-title {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: 2px;
}

.aff-share-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-dim);
}

.aff-rate-pill {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  white-space: nowrap;
}

.aff-link-box {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.aff-link-input-wrap {
  flex: 1;
  min-width: 220px;
}

.aff-link-field {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--color-cyan);
  font-family: monospace;
  box-sizing: border-box;
}

.aff-link-field:focus {
  border-color: var(--color-cyan);
  outline: none;
}

.aff-share-buttons {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.aff-btn-copy {
  height: 40px;
  padding: 0 16px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
}

.aff-btn-whatsapp {
  height: 40px;
  padding: 0 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  border-color: rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.aff-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25D366;
}

/* 4 Métricas Rápidas */
.aff-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.aff-stat-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

/* No mobile, o box featured (Panda Gold Disponível) ganha largura total para acomodar saldo e botões confortavelmente */
@media (max-width: 767px) {
  .aff-stat-box.featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .aff-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.aff-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.aff-action-btn {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  height: 34px;
  padding: 0 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aff-stat-box.featured {
  border-color: rgba(0, 230, 118, 0.35);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, var(--color-surface-2) 100%);
}

.aff-stat-label {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-bottom: 2px;
}

.aff-stat-val {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.aff-stat-val.success {
  color: var(--color-success);
}

.aff-stat-val.highlight {
  color: var(--color-success);
  font-size: var(--font-size-xl);
}

.aff-stat-sub {
  font-size: 10px;
  color: var(--color-text-dim);
  margin-top: 2px;
}

.aff-stat-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-success);
}

/* 3. TOP Líderes / Top Indicados (Inspirado na Referência) */
.aff-leaders-card,
.aff-all-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-sizing: border-box;
}

.aff-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aff-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aff-header-icon {
  font-size: 20px;
}

.aff-card-title {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.aff-card-subtitle {
  font-size: 11.5px;
  color: var(--color-text-dim);
  margin: 2px 0 0;
}

.aff-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
}

.aff-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.aff-toggle-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--color-cyan);
}

.aff-toggle-btn .toggle-arrow {
  transition: transform var(--dur-fast) var(--ease);
}

.aff-leaders-card.collapsed .aff-leaders-list,
.aff-all-card.collapsed .aff-participants-list {
  display: none !important;
}

.aff-leaders-card.collapsed .aff-toggle-btn .toggle-arrow,
.aff-all-card.collapsed .aff-toggle-btn .toggle-arrow {
  transform: rotate(180deg);
}

.aff-leaders-card.collapsed .aff-section-header,
.aff-all-card.collapsed .aff-section-header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.aff-leaders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aff-leader-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.aff-leader-row:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.35);
}

.aff-leader-row.rank-1 {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, var(--color-surface-2) 100%);
}

.aff-leader-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30px;
  flex-shrink: 0;
  font-weight: 900;
}

.aff-rank-medal {
  font-size: 18px;
  line-height: 1;
}

.aff-rank-num {
  font-size: 10px;
  letter-spacing: 0.5px;
}

.aff-leader-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.aff-leader-info {
  flex: 1;
  min-width: 0;
}

.aff-leader-name {
  font-weight: var(--font-weight-bold);
  font-size: 13.5px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-leader-meta {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.aff-badge-deposits {
  color: var(--color-cyan);
  font-weight: 600;
}

.aff-leader-earning {
  text-align: right;
  flex-shrink: 0;
}

.aff-earning-val {
  font-size: var(--font-size-base);
  font-weight: 900;
  color: var(--color-success);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.aff-earning-sub {
  font-size: 9.5px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 4. Lista Completa de Indicados ("All Participants") */
.aff-participants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aff-participant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}

.aff-participant-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.aff-part-rank {
  width: 24px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.aff-part-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.aff-part-info {
  flex: 1;
  min-width: 0;
}

.aff-part-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-part-meta {
  font-size: 10.5px;
  color: var(--color-text-dim);
}

.aff-status-active {
  color: var(--color-success);
  font-weight: 600;
}

.aff-part-earning {
  text-align: right;
  flex-shrink: 0;
}

.aff-earning-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-success);
}

.aff-earning-note {
  font-size: 9px;
  color: var(--color-text-dim);
}

/* ==========================================================================
   PERFIL & CONQUISTAS (ESTILO REFERÊNCIAS MOBILE-FIRST)
   ========================================================================== */

.perfil-subview {
  width: 100%;
}

/* 1. TELA DE PERFIL (REFERÊNCIA 2) */
.profile-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-2) var(--space-5);
  position: relative;
}

.profile-avatar-aura {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-circle);
  background: radial-gradient(circle, rgba(139, 0, 255, 0.35) 0%, rgba(0, 229, 255, 0.12) 55%, transparent 75%);
}

.profile-hero-character {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
  transition: transform var(--dur) var(--ease);
}

.profile-avatar-aura:hover .profile-hero-character {
  transform: scale(1.05);
}

.profile-name-pill {
  display: inline-block;
  padding: var(--space-2) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-align: center;
  box-shadow: var(--glow-card);
  letter-spacing: 0.3px;
}

/* Cartão de Opções com Ícone e Seta */
.profile-menu-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  min-height: var(--tap-min);
  transition: background-color var(--dur-fast) var(--ease);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover,
.profile-menu-item:active {
  background-color: var(--color-surface-hover);
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile-menu-icon {
  width: var(--icon-xl);
  height: var(--icon-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--color-cyan);
  flex-shrink: 0;
}

.profile-menu-label {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.profile-menu-arrow {
  font-size: var(--font-size-xl);
  color: var(--color-text-dim);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.profile-item-logout .profile-menu-label {
  color: var(--color-danger);
}

.profile-item-logout .profile-menu-icon {
  color: var(--color-danger);
}

/* Subtela Cabeçalho com Botão Voltar */
.subview-header {
  margin-bottom: var(--space-4);
}

.btn-subview-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-cyan);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  margin-bottom: var(--space-3);
  transition: background var(--dur-fast) var(--ease);
}

.btn-subview-back:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-cyan);
}

.subview-back-icon {
  font-size: var(--font-size-lg);
  line-height: 1;
}

.subview-title {
  margin: 0;
  font-size: var(--font-size-2xl);
  color: var(--color-text);
}

.subview-subtitle {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* 2. TELA DE CONQUISTAS (REFERÊNCIA 1) */
.achievements-progress-card {
  max-width: 600px;
  margin: 0 auto var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--glow-card);
}

.achievements-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.achievements-count-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.achievements-progress-track {
  width: 100%;
  height: var(--space-2);
  background: var(--color-surface-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.achievements-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  transition: width var(--dur-slow) var(--ease);
}

/* Grade de 2 Colunas */
.achievements-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .achievements-grid-2col {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.achievement-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-2);
  text-align: center;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  box-shadow: var(--glow-card);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.achievement-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-neon);
}

/* Desbloqueada */
.achievement-card.unlocked {
  border-color: var(--color-border-neon);
  background: var(--gradient-card);
}

.achievement-card.unlocked .achievement-medal-img {
  filter: drop-shadow(0 4px 12px rgba(139, 0, 255, 0.45));
}

.achievement-card.unlocked .achievement-card-name {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

/* Bloqueada */
.achievement-card.locked {
  opacity: 0.85;
}

.achievement-card.locked .achievement-medal-img {
  filter: grayscale(100%);
  opacity: 0.38;
}

.achievement-card.locked .achievement-card-name {
  color: var(--color-text-dim);
}

.achievement-medal-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: var(--space-2);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.achievement-lock-pill {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-dim);
}

.achievement-card-name {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-tight);
  text-align: center;
  word-break: break-word;
}

/* 3. GRADE DE ESCOLHA DE PERSONAGEM */
.characters-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .characters-picker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.character-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.character-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-cyan);
}

.character-card.active {
  border-color: var(--color-cyan);
  box-shadow: var(--glow-cyan);
  background: var(--color-surface-2);
}

.character-card-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.character-card-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.character-card-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--color-cyan);
  color: var(--color-on-gradient);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}


/* Step pill blink – primeiro acesso */
@keyframes pulseStepPill {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.12); }
}
.step-num-pill.blinking {
  animation: pulseStepPill 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .step-num-pill.blinking { animation: none; }
}

/* ── Conquista Desbloqueada – Overlay ───────────────────────────────────── */
#ach-unlock-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
#ach-unlock-overlay.ach-out .ach-box { animation: achSlideOut .45s ease-in forwards; }
#ach-unlock-overlay.ach-out .ach-backdrop { opacity: 0; transition: opacity .45s; }

.ach-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }

.ach-box {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  background: var(--color-surface-2, #1a1035); border: 2px solid var(--color-purple);
  border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5);
  box-shadow: 0 0 40px rgba(139,0,255,.55), 0 0 80px rgba(0,229,255,.18);
  animation: achSlideIn .55s cubic-bezier(.22,1.4,.44,1) both;
  min-width: 240px; max-width: 310px; text-align: center;
}

@keyframes achSlideIn { from { opacity:0; transform: translateY(60px) scale(.8); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes achSlideOut { to { opacity:0; transform: translateY(40px) scale(.85); } }

.ach-medal {
  width: 110px; height: 110px; object-fit: contain;
  animation: achMedalPop .7s .2s cubic-bezier(.22,1.5,.44,1) both, achMedalFloat 2.4s 1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(139,0,255,.7)) drop-shadow(0 0 8px rgba(0,229,255,.5));
}
@keyframes achMedalPop { from { opacity:0; transform: scale(0) rotate(-20deg); } to { opacity:1; transform: scale(1) rotate(0); } }
@keyframes achMedalFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.ach-label { margin:0; font-size: var(--font-size-sm); color: var(--color-cyan); font-weight: var(--font-weight-semibold); letter-spacing: .5px; }
.ach-name  { margin:0; font-size: var(--font-size-lg); color: var(--color-text); font-weight: var(--font-weight-bold); }

/* Partículas */
.ach-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.ach-particle {
  position: absolute; left: 50%; top: 55%;
  animation: achParticle 1.6s var(--ach-delay, 0s) ease-out forwards;
  opacity: 0;
}
@keyframes achParticle {
  0%  { opacity:1; transform: translate(-50%,-50%) translate(0,0) rotate(0deg) scale(1); }
  80% { opacity:1; }
  100%{ opacity:0; transform: translate(-50%,-50%) translate(var(--ach-x),var(--ach-y)) rotate(var(--ach-r)) scale(.4); }
}

@media (prefers-reduced-motion: reduce) {
  .ach-medal { animation: none; }
  .ach-particle { animation: none; display: none; }
}

/* ==========================================================================
   PANDA GOLD — Moeda de Comissão de Afiliados
   ========================================================================== */

.panda-gold-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF176, #FFD600 60%, #FF8F00);
  border: 1.5px solid #D4AC0D;
  font-size: 10px;
  font-weight: 900;
  color: #7B4A00;
  font-family: Arial, sans-serif;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(255,214,0,.5), 0 0 8px rgba(255,214,0,.2);
  vertical-align: middle;
}

.panda-gold-coin.lg {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

/* ==========================================================================
   CORREÇÕES DE ALINHAMENTO — Afiliados
   ========================================================================== */

/* Empty state centrado em ambos os cards de afiliados */
.aff-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  gap: var(--space-2);
  color: var(--color-text-dim);
}

.aff-empty-state strong {
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.aff-empty-state p {
  font-size: var(--font-size-xs);
  margin: 0;
  max-width: 280px;
}

/* Card "Todos os Indicados" — header responsivo */
#aff-card-all-participants .aff-section-header {
  flex-wrap: wrap;
  gap: var(--space-2);
}

#aff-card-all-participants .aff-header-left {
  flex-wrap: nowrap;
  min-width: 0;
}

#aff-card-all-participants .aff-card-title {
  word-break: break-word;
  white-space: normal;
}

/* Stat box de Panda Gold — ícone alinhado na mesma linha do valor */
#aff-earned,
#aff-available {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
}

/* Corrige overflow do input de link de afiliado em mobile */
.aff-link-field {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Corrige aff-link-box em telas muito pequenas */
@media (max-width: 400px) {
  .aff-link-box {
    flex-direction: column;
  }
  .aff-link-input-wrap {
    min-width: 0;
    width: 100%;
  }
  .aff-share-buttons {
    width: 100%;
    justify-content: stretch;
  }
  .aff-btn-copy,
  .aff-btn-whatsapp {
    flex: 1;
    justify-content: center;
  }
}

/* Rate pill com ícone Gold */
.aff-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}


/* ── Spinner do QR Code (enquanto gera) ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Gold coin badge ── */
.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #FFD700;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* ── Animações de Pagamento Aprovado e Notificação ── */
.status-approved-badge {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%) !important;
  color: #030310 !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.6) !important;
  animation: pulseGreen 1.4s infinite alternate ease-in-out !important;
}

@keyframes pulseGreen {
  from { transform: scale(1); box-shadow: 0 0 10px rgba(0,230,118,0.4); }
  to   { transform: scale(1.06); box-shadow: 0 0 22px rgba(0,230,118,0.85); }
}

.balance-pulse-glow {
  animation: balanceGlow 0.8s ease-in-out 4 alternate !important;
  color: #00e676 !important;
}

@keyframes balanceGlow {
  0%   { transform: scale(1); text-shadow: 0 0 0px rgba(0,230,118,0); }
  100% { transform: scale(1.18); text-shadow: 0 0 24px rgba(0,230,118,0.9); }
}

.confetti-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.confetti-particle {
  position: absolute;
  top: -15px;
  width: 8px;
  height: 12px;
  opacity: 0.9;
  border-radius: 2px;
  animation: confettiFall 2.8s linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(420px) rotate(720deg);
    opacity: 0;
  }
}

@keyframes pandaBounce {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.05); }
}

/* ==========================================================================
   SERVIÇOS MAIS IMPORTANTES & ATALHOS NA HOME (MOBILE & DESKTOP)
   ========================================================================== */

.home-vip-services-section {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.home-services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.home-services-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-cyan);
  display: block;
  margin-bottom: 2px;
}

.home-services-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.home-services-hint {
  font-size: 11px;
  color: var(--color-text-dim);
}

.home-vip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .home-vip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.home-vip-card {
  background: linear-gradient(145deg, rgba(26, 18, 52, 0.95) 0%, rgba(14, 10, 30, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.home-vip-card:hover {
  transform: translateY(-3px);
}

.vip-card--gold {
  border-color: rgba(255, 215, 0, 0.35);
}
.vip-card--gold:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.vip-card--pink {
  border-color: rgba(255, 0, 200, 0.35);
}
.vip-card--pink:hover {
  border-color: #ff00c8;
  box-shadow: 0 10px 30px rgba(255, 0, 200, 0.2);
}

.home-vip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.home-vip-mascot-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-vip-mascot {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.home-vip-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.badge-pink {
  background: rgba(255, 0, 200, 0.15);
  color: #ff4081;
  border: 1px solid rgba(255, 0, 200, 0.35);
}

.home-vip-content {
  flex: 1;
  margin-bottom: 14px;
}

.home-vip-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.home-vip-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  margin: 0;
}

.home-vip-footer {
  margin-top: auto;
}

.home-vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.btn-gold {
  background: linear-gradient(90deg, #d4ac0d 0%, #ffd700 100%);
  color: #141028;
}
.home-vip-card:hover .btn-gold {
  filter: brightness(1.1);
}

.btn-pink {
  background: linear-gradient(90deg, #8b00ff 0%, #ff00c8 100%);
  color: #ffffff;
}
.home-vip-card:hover .btn-pink {
  filter: brightness(1.1);
}

/* Barra de Atalhos Rápidos da Home */
.home-quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 768px) {
  .home-quick-actions-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-quick-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
}

.home-quick-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--color-cyan);
  color: #00e5ff;
}

.quick-btn-icon {
  font-size: 14px;
}

/* Ajustes no Catálogo de Serviços para Mobile */
@media (max-width: 640px) {
  #services-catalog-list > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  #services-catalog-list > div > div:last-child {
    justify-content: space-between !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-approved-badge,
  .balance-pulse-glow,
  .confetti-particle,
  .pandaBounce {
    animation: none !important;
  }
}
