/* =========================================================
   BrAfiliados — Visual corrigido
   Logo maior, sem "plaquinha" pequena e com integração ao layout.
   ========================================================= */

:root {
  --br-green: #009c3b;
  --br-green-dark: #007a2f;
  --br-yellow: #ffdf00;
  --br-blue: #002776;
  --br-blue-2: #0b3d91;
  --br-white: #ffffff;
  --br-bg: #f5f8f6;
  --br-text: #12233f;
  --br-muted: #718096;
  --br-border: #e3e9e6;
}

html, body {
  background: var(--br-bg) !important;
  color: var(--br-text) !important;
}

/* ---------------------------------------------------------
   LOGO: remove qualquer fundo grudado diretamente na imagem
   --------------------------------------------------------- */
img[src*="brafiliados-logo"] {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  height: auto !important;
}

/* ---------------------------------------------------------
   LOGIN - lado esquerdo
   --------------------------------------------------------- */
.login-art {
  background: linear-gradient(145deg, #0b3d91 0%, #0a6f67 48%, #0f9d58 100%) !important;
  color: #ffffff !important;
}

.login-art .brand-with-logo {
  width: 100% !important;
  margin: 0 0 34px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
}

.login-art .brand-logo {
  width: 270px !important;
  max-width: 72% !important;
}

.login-art h1 {
  color: #ffffff !important;
}

.login-art p {
  color: rgba(255,255,255,.86) !important;
}

/* ---------------------------------------------------------
   LOGIN - cartão da direita
   Em vez de uma plaquinha pequena, a logo vira um cabeçalho.
   --------------------------------------------------------- */
.login-card {
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid var(--br-border) !important;
  box-shadow: 0 24px 60px rgba(0,39,118,.10) !important;
}

.login-card .brand-with-logo {
  background: linear-gradient(90deg, var(--br-blue-2), var(--br-green)) !important;
  width: calc(100% + 56px) !important;
  margin: -28px -28px 24px -28px !important;
  padding: 20px 28px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: flex-start !important;
  border-bottom: 4px solid var(--br-yellow) !important;
}

.login-card .brand-logo {
  width: 230px !important;
  max-width: 80% !important;
}

.login-card h2 {
  color: var(--br-text) !important;
}

/* ---------------------------------------------------------
   PAINEL - logo no menu lateral
   --------------------------------------------------------- */
.sidebar {
  background: #ffffff !important;
  border-right: 1px solid var(--br-border) !important;
}

/* a faixa inteira do topo recebe cor, não só a imagem */
.sidebar > .brand-with-logo {
  width: 100% !important;
  min-height: 118px !important;
  margin: 0 0 18px 0 !important;
  padding: 24px 22px !important;
  background: linear-gradient(135deg, var(--br-blue-2), var(--br-green)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 4px solid var(--br-yellow) !important;
}

.sidebar > .brand-with-logo .brand-logo {
  width: 205px !important;
  max-width: 90% !important;
}

/* menu */
.nav-btn.active {
  background: rgba(0,156,59,.12) !important;
  color: var(--br-green-dark) !important;
  border-left-color: var(--br-green) !important;
}

.nav-btn:hover {
  background: rgba(0,39,118,.055) !important;
  color: var(--br-blue) !important;
}

/* ---------------------------------------------------------
   TOPO E CARDS
   --------------------------------------------------------- */
.topbar {
  background: #ffffff !important;
  border-top: 4px solid var(--br-yellow) !important;
}

.card,
.panel,
.stat-card {
  background: #ffffff !important;
  border-color: var(--br-border) !important;
}

.stat-icon {
  background: linear-gradient(135deg, var(--br-green), var(--br-blue)) !important;
  color: #ffffff !important;
}

/* botões */
.btn-primary,
button.btn-primary {
  background: var(--br-green) !important;
  border-color: var(--br-green) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0,156,59,.18) !important;
}

.btn-primary:hover,
button.btn-primary:hover {
  background: var(--br-green-dark) !important;
  border-color: var(--br-green-dark) !important;
}

.btn-outline {
  background: #ffffff !important;
  border-color: #d9e3de !important;
  color: var(--br-blue) !important;
}

/* campos */
input,
select,
textarea {
  border-color: #dfe8e3 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--br-green) !important;
  box-shadow: 0 0 0 3px rgba(0,156,59,.10) !important;
  outline: none !important;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */
@media (max-width: 760px) {
  .login-art .brand-logo {
    width: 220px !important;
  }

  .login-card .brand-logo {
    width: 200px !important;
  }

  .sidebar > .brand-with-logo .brand-logo {
    width: 185px !important;
  }
}


/* =========================================================
   Ajustes finais de marca: sem logo nas áreas brancas
   ========================================================= */
.sidebar > .brand-with-logo {
  display: none !important;
}

.login-card .brand-with-logo {
  display: none !important;
}

.sidebar {
  padding-top: 18px !important;
}

/* =========================================================
   Configurações completas
   ========================================================= */
.settings-page {
  padding-bottom: 48px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.settings-main,
.settings-side {
  display: grid;
  gap: 20px;
}

.settings-card {
  padding: 24px !important;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.settings-card-head-spaced {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--br-border);
}

.settings-card-head h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.settings-card-head p,
.settings-avatar-actions p {
  margin: 0;
  color: var(--br-muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-badge,
.settings-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,156,59,.10);
  color: var(--br-green-dark);
  font-size: 12px;
  font-weight: 800;
}

.settings-icon-badge {
  width: 36px;
  padding: 0;
  background: rgba(0,39,118,.08);
}

.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--br-border);
  border-radius: 18px;
  background: #fbfdfc;
  margin-bottom: 22px;
}

.settings-avatar-box,
.settings-avatar-fallback {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--br-blue-2), var(--br-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(0,39,118,.14);
}

.settings-avatar-box img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.settings-avatar-actions {
  flex: 1;
}

.settings-avatar-actions > b {
  display: block;
  margin-bottom: 5px;
}

.settings-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.settings-file-button {
  cursor: pointer;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-field-full {
  grid-column: 1 / -1;
}

.settings-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

.settings-card .field small {
  display: block;
  margin-top: 6px;
  color: var(--br-muted);
  font-size: 11px;
}

.settings-switch-list {
  display: grid;
  gap: 10px;
}

.settings-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--br-border);
  border-radius: 14px;
  cursor: pointer;
}

.settings-switch-row span {
  display: grid;
  gap: 3px;
}

.settings-switch-row small {
  color: var(--br-muted);
  font-size: 12px;
}

.settings-switch-row input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--br-green);
  flex: 0 0 auto;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--br-border);
}

.settings-save-bar span {
  color: var(--br-muted);
  font-size: 12px;
}

.settings-account-card {
  text-align: center;
}

.settings-account-avatar {
  display: flex;
  justify-content: center;
  margin: 5px 0 12px;
}

.settings-summary-avatar {
  width: 78px !important;
  height: 78px !important;
  font-size: 22px !important;
}

.avatar img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: inherit;
}

.settings-account-card > h3 {
  margin: 0 0 4px;
}

.settings-account-card > p {
  margin: 0 0 20px;
}

.settings-account-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--br-border);
}

.settings-account-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--br-border);
  font-size: 12px;
  text-align: left;
}

.settings-account-list span {
  color: var(--br-muted);
}

.settings-account-list b {
  color: var(--br-text);
  text-align: right;
}

.settings-status-active {
  color: var(--br-green-dark) !important;
}

.settings-danger-card {
  border-left: 4px solid #f2b705 !important;
}

.topbar-avatar {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .settings-form-grid,
  .settings-side {
    grid-template-columns: 1fr;
  }

  .settings-avatar-row {
    align-items: flex-start;
  }

  .settings-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-save-bar .btn {
    width: 100%;
  }
}


/* =========================================================
   BrAfiliados v5.5 — novos módulos
   ========================================================= */
.notification-bell {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 7px;
  border-radius: 10px;
}
.notification-bell:hover { background: #f3f6f5; }
.notification-count {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #fff;
}
.report-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.report-kpi { padding: 20px; }
.report-kpi span { display:block; color:#7b8496; font-size:12px; margin-bottom:8px; }
.report-kpi strong { display:block; color:#10213f; font-size:25px; margin-bottom:6px; }
.report-kpi small { color:#8590a3; }
.reports-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.report-list { display:flex; flex-direction:column; }
.report-row { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid #edf1ef; }
.report-row:last-child { border-bottom:0; }
.report-row > div { flex:1; min-width:0; }
.report-row b, .report-row small { display:block; }
.report-row small { color:#8791a3; margin-top:3px; font-size:11px; }
.report-rank { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:#e9f7ef; color:#008a36; font-weight:800; }
.agenda-list { padding:4px 2px; }
.agenda-item { display:grid; grid-template-columns:70px 18px 1fr; gap:12px; align-items:start; padding:16px 0; border-bottom:1px solid #edf1ef; }
.agenda-item:last-child { border-bottom:0; }
.agenda-date strong, .agenda-date small { display:block; text-align:center; }
.agenda-date strong { font-size:16px; color:#10213f; }
.agenda-date small { color:#8b95a6; margin-top:3px; }
.agenda-dot { width:12px; height:12px; border-radius:999px; background:#009c3b; margin-top:8px; box-shadow:0 0 0 5px rgba(0,156,59,.10); }
.agenda-content h3 { margin:7px 0 4px; }
.agenda-content p { margin:0; color:#788397; }
.broadcast-card, .support-new-card { margin-bottom:18px; }
.notification-list, .support-ticket-list { display:flex; flex-direction:column; gap:12px; }
.notification-item { display:flex; gap:14px; padding:18px; }
.notification-item.unread { border-left:4px solid #009c3b !important; background:#fbfffc !important; }
.notification-icon { width:36px; height:36px; flex:0 0 36px; border-radius:12px; display:grid; place-items:center; background:#e8f6ed; color:#007d30; font-weight:900; }
.notification-body { flex:1; min-width:0; }
.notification-title-row { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.notification-title-row h3 { margin:0; }
.notification-title-row span { color:#8c96a8; font-size:11px; white-space:nowrap; }
.notification-body p { color:#5f6b80; margin:8px 0; }
.text-button { border:0; padding:0; background:transparent; color:#007d30; cursor:pointer; font-weight:800; }
.notification-read { color:#8a94a6; }
.support-ticket { padding:20px; }
.support-ticket-head h3 { margin:10px 0 4px; }
.support-message, .support-reply { margin-top:14px; padding:14px; border-radius:13px; background:#f7f9f8; }
.support-reply { background:#eef9f2; border-left:4px solid #009c3b; }
.support-message p, .support-reply p { margin:6px 0 0; color:#5d687c; white-space:pre-wrap; }
.support-admin-form { margin-top:16px; padding-top:16px; border-top:1px solid #e8eeeb; }
.support-form-row { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.support-form-row select { width:auto; min-width:160px; }
@media (max-width: 1100px) {
  .report-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reports-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .report-kpis { grid-template-columns: 1fr; }
  .notification-title-row { flex-direction:column; gap:4px; }
  .support-form-row { align-items:stretch; flex-direction:column; }
  .support-form-row select { width:100%; }
}


/* =========================================================
   BrAfiliados V5.6 — Landing/login de marketing
   ========================================================= */

.marketing-login {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: minmax(0, 58%) minmax(430px, 42%) !important;
  overflow: hidden !important;
  background: #f6f9ff !important;
}

.marketing-hero {
  min-height: 100vh !important;
  position: relative !important;
  overflow: hidden !important;
  padding: clamp(44px, 5.2vw, 86px) clamp(38px, 5vw, 82px) 42px !important;
  background:
    radial-gradient(circle at 78% 7%, rgba(82, 214, 189, .55) 0 13%, transparent 13.5%),
    linear-gradient(135deg, #073f88 0%, #046e78 48%, #069b50 100%) !important;
  color: white !important;
}

.marketing-bg-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.marketing-bg-shape-1 {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -120px;
  background: rgba(255,255,255,.13);
}
.marketing-bg-shape-2 {
  width: 250px;
  height: 250px;
  left: -105px;
  bottom: -100px;
  background: rgba(255,255,255,.12);
}

.marketing-copy {
  position: relative;
  z-index: 3;
  width: min(610px, 72%);
}

.marketing-main-logo {
  width: 300px !important;
  max-width: 82% !important;
  display: block !important;
  margin: 0 0 42px !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.marketing-copy h1 {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(42px, 4.7vw, 74px) !important;
  line-height: .99 !important;
  letter-spacing: -2.3px !important;
  font-weight: 900 !important;
}
.marketing-copy h1 span {
  color: #35ef8f !important;
}

.marketing-lead {
  max-width: 610px;
  margin: 24px 0 28px !important;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(15px, 1.18vw, 19px) !important;
  line-height: 1.52 !important;
}

.marketing-benefits {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 570px;
}
.marketing-benefit {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}
.marketing-benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.marketing-benefit-icon.green { background: #05b965; }
.marketing-benefit-icon.blue { background: #2478ff; }
.marketing-benefit-icon.yellow { background: #ffd21c; color: #0d3d75; }

.marketing-benefit strong {
  display: block;
  color: #fff;
  font-size: 17px;
  margin-bottom: 2px;
}
.marketing-benefit small {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.4;
}

.marketing-trust {
  display: flex;
  gap: 34px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.32);
  margin-top: 30px;
  padding-top: 24px;
}
.marketing-trust > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.marketing-trust span {
  font-size: 29px;
  color: white;
}
.marketing-trust small {
  color: rgba(255,255,255,.9);
  font-size: 11px;
  line-height: 1.25;
}

.marketing-person-wrap {
  position: absolute;
  z-index: 2;
  right: -3%;
  bottom: 4%;
  width: min(42vw, 520px);
  height: min(64vh, 610px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.marketing-person {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  border-radius: 48% 48% 18% 18% / 32% 32% 16% 16%;
  box-shadow: 0 30px 70px rgba(0,0,0,.24);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marketing-results-card {
  position: absolute;
  right: 2%;
  bottom: 18%;
  min-width: 210px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: rgba(3, 74, 78, .72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.marketing-bars {
  color: #36f39a;
  font-size: 27px;
  letter-spacing: -3px;
}
.marketing-results-card small {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 11px;
}
.marketing-results-card strong {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.marketing-hand-note {
  position: absolute;
  z-index: 3;
  right: 3%;
  top: 6%;
  transform: rotate(-5deg);
  color: white;
  font-size: 22px;
  line-height: 1.12;
  font-style: italic;
  font-weight: 700;
  text-align: right;
  opacity: .94;
}
.marketing-hand-note::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #ffdf00;
  border-radius: 4px;
  margin: 10px 0 0 auto;
  transform: rotate(-7deg);
}

/* Lado do login */
.marketing-login-side {
  min-height: 100vh !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 42px 34px !important;
  background:
    radial-gradient(circle at 100% 0%, #e9f3ff 0 16%, transparent 16.5%),
    radial-gradient(circle at 8% 100%, #eff7ff 0 14%, transparent 14.5%),
    #f8fbff !important;
}

.marketing-login-card {
  width: min(100%, 480px) !important;
  padding: 42px 44px 38px !important;
  border-radius: 26px !important;
  border: 1px solid #e5ebf4 !important;
  background: #fff !important;
  box-shadow: 0 28px 70px rgba(25, 64, 122, .13) !important;
  overflow: visible !important;
}

.marketing-login-logo {
  width: 300px !important;
  max-width: 88% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 26px !important;
  background: #fff !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.marketing-login-card h2 {
  margin: 0 !important;
  color: #09235a !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
  letter-spacing: -.8px !important;
  font-weight: 900 !important;
}
.marketing-login-card .sub {
  margin: 8px 0 26px !important;
  color: #71809e !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.marketing-field {
  margin-bottom: 18px !important;
}
.marketing-field label {
  display: block;
  margin-bottom: 8px;
  color: #102e63 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.marketing-input {
  position: relative;
  display: flex;
  align-items: center;
}
.marketing-input input {
  width: 100% !important;
  height: 54px !important;
  padding: 0 46px !important;
  border: 1px solid #d3ddea !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-size: 16px !important;
  color: #18335d !important;
}
.marketing-input input:focus {
  border-color: #0aa956 !important;
  box-shadow: 0 0 0 4px rgba(10,169,86,.1) !important;
}
.marketing-input-icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  color: #5373aa;
  font-size: 18px;
}
.marketing-password-toggle {
  position: absolute;
  right: 12px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5473a6 !important;
  padding: 8px !important;
  cursor: pointer;
}

.marketing-enter {
  width: 100% !important;
  min-height: 54px !important;
  margin-top: 4px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  background: linear-gradient(90deg, #08ae55, #06a941) !important;
  box-shadow: 0 12px 25px rgba(7,170,75,.22) !important;
}
.marketing-enter span {
  font-size: 24px;
  margin-left: 8px;
  vertical-align: -2px;
}

.marketing-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: #8290a8;
  margin: 18px 0;
}
.marketing-or span {
  height: 1px;
  background: #dbe2ec;
}
.marketing-or b {
  font-size: 12px;
  font-weight: 600;
}

.marketing-create {
  width: 100% !important;
  min-height: 52px !important;
  border: 1.5px solid #06a94e !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #079246 !important;
  font-weight: 900 !important;
  background: #fff !important;
}

.marketing-new-user {
  margin: 18px 0 0 !important;
  text-align: center !important;
  color: #7d8ba5 !important;
  font-size: 12px !important;
}

.marketing-security {
  width: min(100%, 500px);
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #5874a1;
}
.marketing-security > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.marketing-security span {
  font-size: 23px;
  color: #446ca9;
}
.marketing-security small {
  font-size: 11px;
  line-height: 1.25;
}

.marketing-bottom-slogan {
  margin-top: 44px;
  color: #6484bd;
  letter-spacing: 1.4px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.marketing-bottom-slogan span {
  display: block;
  width: 120px;
  height: 4px;
  margin: 11px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #0aa958 0 33%, #ffdf00 33% 66%, #1a5ee8 66% 100%);
}

/* Responsivo */
@media (max-width: 1100px) {
  .marketing-login {
    grid-template-columns: 1fr 460px !important;
  }
  .marketing-copy {
    width: 76%;
  }
  .marketing-person-wrap {
    opacity: .78;
    right: -10%;
  }
  .marketing-hand-note {
    display: none;
  }
}

@media (max-width: 820px) {
  .marketing-login {
    display: block !important;
    overflow: visible !important;
  }
  .marketing-hero {
    min-height: 650px !important;
    padding: 42px 28px !important;
  }
  .marketing-copy {
    width: 100%;
    max-width: 560px;
  }
  .marketing-copy h1 {
    font-size: 48px !important;
  }
  .marketing-person-wrap {
    opacity: .34;
    right: -8%;
    width: 62%;
    height: 52%;
  }
  .marketing-results-card {
    display: none;
  }
  .marketing-login-side {
    min-height: auto !important;
    padding: 48px 20px 56px !important;
  }
}

@media (max-width: 520px) {
  .marketing-hero {
    min-height: 610px !important;
    padding: 32px 22px !important;
  }
  .marketing-main-logo {
    width: 220px !important;
    margin-bottom: 28px !important;
  }
  .marketing-copy h1 {
    font-size: 39px !important;
    letter-spacing: -1.4px !important;
  }
  .marketing-lead {
    font-size: 14px !important;
  }
  .marketing-benefit {
    grid-template-columns: 46px 1fr;
  }
  .marketing-benefit-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .marketing-trust {
    gap: 14px;
    justify-content: space-between;
  }
  .marketing-trust small {
    font-size: 9px;
  }
  .marketing-person-wrap {
    display: none;
  }
  .marketing-login-card {
    padding: 34px 24px 30px !important;
  }
  .marketing-login-card h2 {
    font-size: 29px !important;
  }
  .marketing-login-logo {
    width: 250px !important;
  }
  .marketing-security {
    gap: 8px;
  }
  .marketing-security small {
    font-size: 9px;
  }
}


/* V5.8 — Tonielque + cálculo de comissão */
.tonielque-import-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.tonielque-import-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.tonielque-field-full {
  grid-column:1 / -1;
}

.tonielque-commission-preview {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.tonielque-commission-preview > div {
  background:#f5f8f7;
  border:1px solid #e2ece6;
  border-radius:14px;
  padding:14px 16px;
}

.tonielque-commission-preview span,
.tonielque-card-commission small {
  display:block;
  color:#7b8797;
  font-size:11px;
  margin-bottom:5px;
}

.tonielque-commission-preview strong {
  color:#087f47;
  font-size:20px;
}

.tonielque-form-actions {
  display:flex;
  justify-content:flex-end;
}

.tonielque-form-note {
  font-size:12px;
  margin-top:10px;
}

.tonielque-card-commission {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:12px 0;
}

.tonielque-card-commission > div {
  background:#f5faf7;
  border-radius:10px;
  padding:10px;
}

.tonielque-card-commission strong {
  display:block;
  color:#087f47;
  font-size:12px;
  line-height:1.3;
}

@media (max-width:760px) {
  .tonielque-import-form {
    grid-template-columns:1fr;
  }

  .tonielque-field-full {
    grid-column:auto;
  }

  .tonielque-commission-preview,
  .tonielque-card-commission {
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V5.9 — Importação automática Tonielque
   ========================================================= */
.tonielque-auto-card {
  border: 1px solid #dce8e0 !important;
}

.tonielque-auto-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}

.tonielque-auto-form {
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
  gap:12px;
  margin-top:18px;
}

.tonielque-auto-link {
  margin:0 !important;
}

.tonielque-fixed-rules {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.tonielque-fixed-rules > div {
  background:#f5faf7;
  border:1px solid #e2ede6;
  border-radius:12px;
  padding:12px 14px;
}

.tonielque-fixed-rules span {
  display:block;
  color:#758193;
  font-size:11px;
  margin-bottom:4px;
}

.tonielque-fixed-rules strong {
  color:#078547;
  font-size:15px;
}

.tonielque-auto-note {
  font-size:11px;
  margin-top:10px;
}

/* =========================================================
   V5.9 — Central de Ajuda
   ========================================================= */
.help-center-page {
  padding-bottom:70px;
}

.help-faq-card {
  padding:0 !important;
  overflow:hidden;
  border-radius:22px !important;
}

.help-faq-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 26px 18px;
}

.help-faq-header h3 {
  margin:0 0 5px;
  font-size:20px;
}

.help-faq-header p {
  margin:0;
  font-size:12px;
}

.help-contact-button {
  border-radius:999px !important;
  white-space:nowrap;
}

.help-faq-list {
  background:#f7f8f8;
  border:1px solid #e5e8e7;
  border-radius:22px;
  margin:0 16px 18px;
  padding:10px;
}

.help-faq-item {
  background:#fff;
  border:1px solid #e4e8e6;
  border-radius:16px;
  margin:8px 0;
  overflow:hidden;
}

.help-faq-item summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:17px 18px;
  color:#12233f;
  font-weight:800;
  font-size:14px;
}

.help-faq-item summary::-webkit-details-marker {
  display:none;
}

.help-faq-item summary b {
  font-size:18px;
  transition:transform .2s ease;
}

.help-faq-item[open] summary b {
  transform:rotate(180deg);
}

.help-faq-answer {
  padding:0 18px 18px;
  color:#667386;
  font-size:13px;
  line-height:1.55;
}

.help-contact-section {
  margin-top:26px;
  scroll-margin-top:30px;
}

.help-contact-title h2,
.help-contact-title h3 {
  margin:0 0 4px;
}

.help-contact-title p {
  margin:0 0 14px;
  color:#7a8698;
}

.help-my-tickets {
  margin-top:24px;
}

.help-admin-summary {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,220px));
  gap:12px;
  margin-bottom:18px;
}

.help-admin-summary > div {
  background:#f7faf8;
  border:1px solid #e1ebe5;
  border-radius:14px;
  padding:16px;
}

.help-admin-summary strong {
  display:block;
  font-size:25px;
  color:#078547;
}

.help-admin-summary span {
  color:#7a8698;
  font-size:12px;
}

@media (max-width:760px) {
  .tonielque-auto-form {
    grid-template-columns:1fr;
  }

  .tonielque-fixed-rules {
    grid-template-columns:1fr;
  }

  .help-faq-header {
    align-items:flex-start;
    flex-direction:column;
  }

  .help-contact-button {
    width:100%;
  }

  .help-admin-summary {
    grid-template-columns:1fr 1fr;
  }
}


/* =========================================================
   V5.11 — Carteira visual estilo app de afiliados
   ========================================================= */

.top-wallet-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:7px 14px;
  border:1px solid #d8e0e8;
  border-radius:999px;
  background:#ffffff;
  color:#10264d;
  font:inherit;
  cursor:pointer;
  box-shadow:0 3px 12px rgba(23,55,94,.06);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.top-wallet-pill:hover {
  transform:translateY(-1px);
  border-color:#b8c8d8;
  box-shadow:0 7px 18px rgba(23,55,94,.10);
}

.top-wallet-pill-icon {
  font-size:18px;
  color:#0b47d1;
}

.top-wallet-pill strong {
  font-size:15px;
  white-space:nowrap;
}

/* Modal */
.wallet-pop {
  width:min(390px, 88vw);
}

.wallet-pop-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.wallet-pop-head h3 {
  margin:0;
  font-size:22px;
  color:#172033;
}

.wallet-pop-head p {
  margin:4px 0 0;
  color:#7d8798;
  font-size:12px;
}

.wallet-pop-close {
  flex:0 0 auto;
}

.wallet-premium-card {
  position:relative;
  overflow:hidden;
  min-height:265px;
  padding:18px;
  border-radius:22px;
  color:#fff;
  background:
    linear-gradient(145deg, #1457ff 0%, #274cff 42%, #5065ff 100%);
  box-shadow:
    0 25px 50px rgba(35,72,221,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.wallet-premium-glow {
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  pointer-events:none;
}

.wallet-premium-glow-a {
  width:220px;
  height:220px;
  right:-100px;
  top:-90px;
  background:rgba(255,255,255,.15);
}

.wallet-premium-glow-b {
  width:180px;
  height:180px;
  left:-90px;
  bottom:-100px;
  background:rgba(126,178,255,.20);
}

.wallet-premium-top {
  position:relative;
  z-index:3;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.wallet-owner {
  font-weight:800;
  font-size:15px;
  max-width:62%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.wallet-mini-brand {
  font-size:12px;
  font-weight:800;
  opacity:.88;
}

.wallet-big-brand {
  position:absolute;
  z-index:1;
  top:54px;
  left:20px;
  font-size:50px;
  line-height:1;
  font-weight:900;
  letter-spacing:-2.5px;
  color:rgba(255,255,255,.72);
}

.wallet-wave-card {
  position:absolute;
  z-index:2;
  left:-8%;
  right:-8%;
  bottom:64px;
  height:108px;
  border-radius:55% 50% 0 0 / 55% 55% 0 0;
  background:
    linear-gradient(
      180deg,
      rgba(111,144,255,.95) 0%,
      rgba(39,77,255,.96) 58%,
      rgba(28,67,246,.98) 100%
    );
  box-shadow:
    0 -7px 18px rgba(255,255,255,.14),
    inset 0 1px 0 rgba(255,255,255,.32);
}

.wallet-premium-bottom {
  position:absolute;
  z-index:4;
  left:18px;
  right:18px;
  bottom:18px;
}

.wallet-premium-bottom span {
  display:block;
  font-size:12px;
  font-weight:700;
  opacity:.95;
  margin-bottom:3px;
}

.wallet-premium-bottom strong {
  display:block;
  font-size:31px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-1px;
}

.wallet-mini-values {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:14px;
}

.wallet-mini-values > div {
  padding:11px 10px;
  border:1px solid #e6ebf1;
  border-radius:12px;
  background:#f8fafc;
}

.wallet-mini-values span {
  display:block;
  margin-bottom:5px;
  color:#7b8798;
  font-size:10px;
}

.wallet-mini-values strong {
  display:block;
  color:#182742;
  font-size:12px;
}

.wallet-payments-button {
  width:100%;
  min-height:46px;
  margin-top:15px;
  border:1px solid #d9e0e8;
  border-radius:999px;
  background:#fff;
  color:#152033;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:background .15s ease, transform .15s ease;
}

.wallet-payments-button:hover {
  background:#f7f9fc;
  transform:translateY(-1px);
}

/* Deixa especificamente o modal da carteira mais limpo */
.modal:has(.wallet-pop) {
  width:auto !important;
  max-width:none !important;
  padding:18px !important;
  border-radius:28px !important;
}

@media (max-width:760px) {
  .top-wallet-pill {
    padding:6px 10px;
  }

  .top-wallet-pill strong {
    font-size:13px;
  }

  .wallet-pop {
    width:min(360px, 84vw);
  }

  .wallet-premium-card {
    min-height:235px;
  }

  .wallet-big-brand {
    font-size:42px;
  }

  .wallet-mini-values {
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V5.14 — Registrar venda rápida
   ========================================================= */

.sale-auto-preview {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

.sale-auto-preview > div {
  background:#f5faf7;
  border:1px solid #e2ebe6;
  border-radius:12px;
  padding:12px;
}

.sale-auto-preview span {
  display:block;
  color:#778397;
  font-size:10px;
  margin-bottom:5px;
}

.sale-auto-preview strong {
  display:block;
  color:#087f47;
  font-size:15px;
}

.sale-auto-note {
  margin:0 0 14px;
  padding:11px 13px;
  border-radius:10px;
  background:#f6f8fb;
  color:#657287;
  font-size:11px;
  line-height:1.45;
}

.sale-advanced {
  margin:0 0 14px;
  border:1px solid #e4e9ef;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.sale-advanced summary {
  cursor:pointer;
  padding:12px 14px;
  font-size:12px;
  font-weight:800;
  color:#48566d;
}

.sale-advanced-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:0 14px 14px;
}

@media (max-width:760px) {
  .sale-auto-preview {
    grid-template-columns:1fr 1fr;
  }

  .sale-advanced-grid {
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V5.15 — Central de Criativos Automáticos
   ========================================================= */

.affiliate-creatives-page {
  padding-bottom: 60px;
}

.affiliate-creatives-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px 26px;
  margin-bottom:16px;
  border:1px solid #dfe9e3;
  border-radius:20px;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255,210,0,.20),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      #0c5c4a 0%,
      #0b8f50 58%,
      #12a35b 100%
    );
  color:#fff;
  overflow:hidden;
}

.affiliate-creatives-kicker {
  display:block;
  margin-bottom:7px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  opacity:.82;
}

.affiliate-creatives-hero h2 {
  margin:0 0 7px;
  font-size:27px;
  line-height:1.08;
  color:#fff;
}

.affiliate-creatives-hero p {
  max-width:700px;
  margin:0;
  color:rgba(255,255,255,.85);
  font-size:13px;
  line-height:1.5;
}

.affiliate-creatives-count {
  flex:0 0 auto;
  min-width:105px;
  min-height:94px;
  display:grid;
  place-items:center;
  align-content:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:18px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
}

.affiliate-creatives-count strong {
  font-size:32px;
  line-height:1;
}

.affiliate-creatives-count span {
  margin-top:5px;
  font-size:11px;
  opacity:.88;
}

.affiliate-creatives-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.affiliate-creatives-search {
  width:min(520px,100%);
  min-height:46px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 14px;
  border:1px solid #dfe6e2;
  border-radius:14px;
  background:#fff;
}

.affiliate-creatives-search span {
  color:#66758a;
  font-size:19px;
}

.affiliate-creatives-search input {
  width:100%;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  background:transparent !important;
}

.affiliate-creatives-tip {
  color:#7d8795;
  font-size:11px;
  white-space:nowrap;
}

.affiliate-creatives-grid {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:18px;
}

.affiliate-creative-card {
  overflow:hidden;
  border:1px solid #e0e7e3;
  border-radius:18px;
  background:#fff;
  box-shadow:
    0 12px 32px rgba(23,57,42,.06);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.affiliate-creative-card:hover {
  transform:translateY(-3px);
  box-shadow:
    0 18px 38px rgba(23,57,42,.11);
}

.affiliate-creative-preview {
  position:relative;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:
    linear-gradient(
      135deg,
      #f1f5f3,
      #e8efec
    );
}

.affiliate-creative-preview > img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.affiliate-creative-placeholder {
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size:64px;
}

.affiliate-creative-brand {
  position:absolute;
  top:12px;
  left:12px;
  padding:8px 11px;
  border-radius:10px;
  background:
    linear-gradient(
      135deg,
      rgba(5,52,105,.94),
      rgba(5,145,72,.94)
    );
  box-shadow:
    0 7px 18px rgba(0,0,0,.16);
}

.affiliate-creative-brand span {
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:-.02em;
}

.affiliate-creative-price {
  position:absolute;
  right:12px;
  bottom:12px;
  padding:9px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.95);
  color:#0c1830;
  font-size:15px;
  font-weight:900;
  box-shadow:
    0 7px 20px rgba(0,0,0,.12);
}

.affiliate-creative-body {
  padding:15px;
}

.affiliate-creative-title-row {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.affiliate-creative-label {
  display:block;
  margin-bottom:5px;
  color:#0a9654;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}

.affiliate-creative-title-row h3 {
  margin:0;
  color:#14213b;
  font-size:15px;
  line-height:1.28;
}

.affiliate-creative-earning {
  margin-top:12px;
  padding:10px 11px;
  border:1px solid #def0e4;
  border-radius:10px;
  background:#f4fbf6;
  color:#647168;
  font-size:10px;
  line-height:1.45;
}

.affiliate-creative-earning strong {
  color:#078d4d;
}

.affiliate-creative-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}

.affiliate-creative-actions .btn {
  width:100%;
  min-height:38px;
  padding:8px 9px;
  font-size:11px;
}

.creative-extra-section {
  margin-top:32px;
  padding-top:25px;
  border-top:1px solid #e1e7e4;
}

.creative-section-head {
  margin-bottom:14px;
}

.creative-section-head h2 {
  margin:0 0 4px;
  color:#16223b;
  font-size:20px;
}

.creative-section-head p {
  margin:0;
  color:#7a8596;
  font-size:12px;
}

@media (max-width:1100px) {
  .affiliate-creatives-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media (max-width:700px) {
  .affiliate-creatives-hero {
    align-items:flex-start;
    flex-direction:column;
  }

  .affiliate-creatives-count {
    width:100%;
    min-height:72px;
  }

  .affiliate-creatives-toolbar {
    align-items:stretch;
    flex-direction:column;
  }

  .affiliate-creatives-tip {
    white-space:normal;
  }

  .affiliate-creatives-grid {
    grid-template-columns:1fr;
  }
}


/* ============================================================
   V5.15.1 — LAYOUT AFFILIATES VERDE + MOBILE APP
   Mantém funcionalidades e criativos da V5.15.
   ============================================================ */

:root {
  --app-green: #079447;
  --app-green-2: #0cad59;
  --app-green-dark: #06783a;
  --app-green-soft: #eaf8f0;
  --app-yellow: #ffdf00;
  --app-blue: #1167d8;
  --app-navy: #12213b;
  --app-bg: #f5f7f8;
  --app-card: #ffffff;
  --app-border: #e5ebe8;
  --app-muted: #7c8798;
  --app-shadow: 0 10px 30px rgba(16, 62, 42, .07);
  --app-topbar-height: 58px;
  --app-sidebar-width: 244px;
}

html {
  background: var(--app-bg) !important;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--app-bg) !important;
  color: var(--app-navy) !important;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--app-bg);
}

/* --------------------------
   TOPBAR — estilo Affiliates
   -------------------------- */
.topbar {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 80;
  min-height: var(--app-topbar-height);
  height: var(--app-topbar-height);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding:
    max(7px, env(safe-area-inset-top))
    18px
    7px
    18px !important;
  background:
    linear-gradient(90deg, #078a44 0%, var(--app-green) 48%, #0aa550 100%) !important;
  border: 0 !important;
  box-shadow: 0 7px 24px rgba(5, 94, 44, .18) !important;
}

.topbar-left {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-brand {
  flex: 0 0 auto;
  width: 170px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.top-brand img {
  display: block;
  width: 158px !important;
  height: 34px !important;
  object-fit: contain !important;
  object-position: left center;
  background: transparent !important;
}

.search {
  width: min(430px, 100%);
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 13px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.14) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

.search span {
  color: rgba(255,255,255,.88) !important;
}

.search input {
  width: 100%;
  min-height: 36px !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.search input::placeholder {
  color: rgba(255,255,255,.74) !important;
}

.userbox {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.top-wallet-pill {
  min-height: 36px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 0 13px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0b6635 !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.10) !important;
}

.top-wallet-pill:hover {
  transform: translateY(-1px);
}

.top-wallet-pill-icon,
.top-wallet-pill strong {
  color: #0b6635 !important;
}

.notification-bell {
  position: relative;
  min-width: 36px;
  height: 36px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.13) !important;
  color: #fff !important;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--app-green);
  border-radius: 999px;
  background: #ff4242 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900;
}

.topbar-avatar {
  width: 38px !important;
  height: 38px !important;
  border: 2px solid rgba(255,255,255,.72) !important;
  background: #fff !important;
  color: var(--app-green-dark) !important;
  box-shadow: none !important;
}

.usertext b {
  color: #fff !important;
}

.topbar-role {
  margin-top: 1px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
}

.mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 18px;
}

/* --------------------------
   SIDEBAR
   -------------------------- */
.sidebar {
  position: fixed !important;
  top: var(--app-topbar-height);
  left: 0;
  bottom: 0;
  z-index: 65;
  width: var(--app-sidebar-width) !important;
  display: flex !important;
  flex-direction: column;
  padding: 20px 14px 16px !important;
  overflow-y: auto;
  background: #fff !important;
  border-right: 1px solid var(--app-border) !important;
  box-shadow: none !important;
}

.sidebar > .brand-with-logo {
  display: none !important;
}

.sidebar-mobile-head {
  display: none;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-section {
  padding: 0 12px 9px !important;
  color: #a0a9b8 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

.nav-btn {
  width: 100%;
  min-height: 43px;
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-left: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #59657a !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-btn .nav-icon {
  width: 20px;
  display: inline-grid;
  place-items: center;
  color: #84909f;
}

.nav-btn:hover {
  background: #f4f8f6 !important;
  color: var(--app-green-dark) !important;
}

.nav-btn.active {
  background: var(--app-green-soft) !important;
  color: var(--app-green-dark) !important;
  border-color: #d7f0e1 !important;
  box-shadow: inset 3px 0 0 var(--app-green) !important;
}

.nav-btn.active .nav-icon {
  color: var(--app-green) !important;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--app-border);
}

.sidebar-version {
  padding: 0 13px 8px;
  color: #a0a9b8;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.35;
}

/* --------------------------
   CONTEÚDO
   -------------------------- */
.main {
  width: calc(100% - var(--app-sidebar-width)) !important;
  min-height: 100vh;
  margin-left: var(--app-sidebar-width) !important;
  padding-top: var(--app-topbar-height) !important;
  background: var(--app-bg) !important;
}

.app-content {
  width: 100%;
}

.page {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 25px 26px 42px !important;
}

.page-head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px !important;
}

.page-head h1 {
  margin: 0 0 5px !important;
  color: var(--app-navy) !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.page-head p {
  margin: 0 !important;
  color: var(--app-muted) !important;
  font-size: 12px !important;
}

/* --------------------------
   CARTÕES / PAINÉIS / TABELAS
   -------------------------- */
.card,
.panel,
.stat-card,
.table-wrap,
.settings-card,
.help-faq-card,
.broadcast-card,
.support-new-card,
.creative-product-pack,
.affiliate-creative-card,
.tonielque-auto-card {
  background: var(--app-card) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--app-shadow) !important;
}

.card:hover,
.stat-card:hover {
  border-color: #d9e7df !important;
}

.panel {
  padding: 20px !important;
}

.panel-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.panel-head h3 {
  margin: 0 !important;
  color: var(--app-navy) !important;
}

.stat-card {
  min-height: 124px;
  padding: 18px !important;
}

.stat-icon {
  background: var(--app-green-soft) !important;
  color: var(--app-green-dark) !important;
  border: 1px solid #d8f0e2 !important;
}

.table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table th {
  color: #9099a8 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #fbfcfc !important;
}

.table th,
.table td {
  padding: 13px 14px !important;
  border-bottom: 1px solid #edf1ef !important;
}

.table tr:last-child td {
  border-bottom: 0 !important;
}

/* --------------------------
   BOTÕES / CAMPOS
   -------------------------- */
.btn,
.btn-primary,
.btn-outline,
.btn-soft,
.btn-danger {
  min-height: 40px;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

.btn-primary,
button.btn-primary {
  background: linear-gradient(180deg, #0ba552, #079447) !important;
  border-color: var(--app-green) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(7,148,71,.17) !important;
}

.btn-primary:hover,
button.btn-primary:hover {
  background: var(--app-green-dark) !important;
}

.btn-outline {
  background: #fff !important;
  border-color: #dfe6e2 !important;
  color: #244064 !important;
}

.btn-soft {
  background: #f1f7f4 !important;
  color: var(--app-green-dark) !important;
  border: 1px solid #dcebe3 !important;
}

.btn-danger {
  background: #fff4f4 !important;
  color: #d74747 !important;
  border-color: #ffd9d9 !important;
}

input,
select,
textarea {
  border: 1px solid #dfe6e2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--app-navy) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #69c894 !important;
  box-shadow: 0 0 0 4px rgba(7,148,71,.09) !important;
}

/* --------------------------
   CRIATIVOS V5.15 — visual refinado,
   sem mudar a lógica automática
   -------------------------- */
.affiliate-creatives-page .page-head {
  margin-bottom: 16px !important;
}

.affiliate-creatives-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 26px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,223,0,.18), transparent 27%),
    linear-gradient(135deg, #07833f 0%, #079447 55%, #0bad56 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(7,148,71,.15) !important;
}

.affiliate-creatives-hero h2,
.affiliate-creatives-hero p,
.affiliate-creatives-kicker {
  color: #fff !important;
}

.affiliate-creatives-count {
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.14) !important;
}

.affiliate-creatives-search {
  border-radius: 13px !important;
  background: #fff !important;
  border-color: var(--app-border) !important;
}

.affiliate-creatives-grid {
  gap: 16px !important;
}

.affiliate-creative-card {
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.affiliate-creative-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16,62,42,.10) !important;
}

/* --------------------------
   LOGIN — mais limpo no desktop/celular
   -------------------------- */
.login-shell {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

.marketing-login-card,
.login-card {
  border-radius: 22px !important;
}

.marketing-enter {
  min-height: 48px !important;
}

/* --------------------------
   MOBILE — comportamento de APP
   -------------------------- */
.mobile-tabbar {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(15, 28, 23, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  :root {
    --app-topbar-height: calc(58px + env(safe-area-inset-top));
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .topbar {
    height: var(--app-topbar-height);
    padding:
      calc(7px + env(safe-area-inset-top))
      12px
      7px
      12px !important;
  }

  .topbar-left {
    gap: 9px;
  }

  .mobile-menu {
    display: grid !important;
    flex: 0 0 38px;
  }

  .top-brand {
    width: 134px;
  }

  .top-brand img {
    width: 128px !important;
    height: 30px !important;
  }

  .search {
    display: none !important;
  }

  .usertext {
    display: none !important;
  }

  .notification-bell {
    width: 36px;
  }

  .top-wallet-pill {
    min-width: 90px;
    justify-content: center;
    padding: 0 10px !important;
  }

  .sidebar {
    top: 0 !important;
    bottom: 0 !important;
    z-index: 100 !important;
    width: min(84vw, 310px) !important;
    padding:
      calc(14px + env(safe-area-inset-top))
      14px
      calc(18px + env(safe-area-inset-bottom))
      14px !important;
    transform: translateX(-108%);
    transition: transform .22s ease;
    box-shadow: 18px 0 50px rgba(14, 42, 30, .18) !important;
    border-radius: 0 22px 22px 0;
  }

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

  .sidebar-mobile-head {
    min-height: 56px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 7px 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--app-border);
  }

  .sidebar-mobile-head img {
    width: 150px !important;
    height: 34px !important;
    object-fit: contain !important;
    object-position: left center;
    filter: drop-shadow(0 0 0 transparent);
    /* fundo verde somente para a marca ficar legível */
    padding: 7px 10px !important;
    border-radius: 11px !important;
    background: var(--app-green) !important;
  }

  .sidebar-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #f7f9f8;
    color: #536173;
    font-size: 24px;
  }

  .main {
    width: 100% !important;
    margin-left: 0 !important;
    padding-top: var(--app-topbar-height) !important;
  }

  .page {
    width: 100%;
    padding: 18px 13px 92px !important;
  }

  .page-head {
    align-items: stretch !important;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px !important;
  }

  .page-head h1 {
    font-size: 22px !important;
  }

  .page-head > *:last-child:not(:first-child) {
    align-self: stretch;
  }

  .page-head .btn {
    width: 100%;
  }

  .card,
  .panel,
  .stat-card,
  .table-wrap,
  .settings-card,
  .affiliate-creative-card,
  .creative-product-pack {
    border-radius: 16px !important;
    box-shadow: 0 6px 22px rgba(16,62,42,.06) !important;
  }

  .panel {
    padding: 16px !important;
  }

  .stat-card {
    min-height: 112px;
    padding: 15px !important;
  }

  .stats-grid,
  .dashboard-grid,
  .metrics-grid,
  .grid.products,
  .affiliate-creatives-grid,
  .settings-grid,
  .settings-main,
  .settings-side {
    grid-template-columns: 1fr !important;
  }

  .list-row {
    gap: 9px;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
    border-radius: 15px !important;
  }

  .table {
    min-width: 720px;
  }

  .btn,
  .btn-primary,
  .btn-outline,
  .btn-soft,
  .btn-danger {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .affiliate-creatives-hero {
    align-items: stretch !important;
    flex-direction: column;
    padding: 19px !important;
  }

  .affiliate-creatives-hero h2 {
    font-size: 22px !important;
  }

  .affiliate-creatives-count {
    width: 100%;
    min-height: 68px;
  }

  .affiliate-creatives-toolbar {
    align-items: stretch !important;
    flex-direction: column;
  }

  .affiliate-creatives-search {
    width: 100% !important;
  }

  .affiliate-creatives-tip {
    white-space: normal !important;
  }

  .affiliate-creative-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  /* barra inferior igual aplicativo */
  .mobile-tabbar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 75;
    min-height: 62px;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    padding: 5px;
    border: 1px solid #dfe8e3;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 13px 35px rgba(22, 60, 43, .17);
    backdrop-filter: blur(14px);
  }

  .mobile-tab {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #8a95a4;
  }

  .mobile-tab-icon {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-tab-label {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-tab.active {
    background: var(--app-green-soft);
    color: var(--app-green-dark);
  }

  .modal {
    padding: 12px !important;
    align-items: flex-end !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto;
    border-radius: 24px 24px 18px 18px !important;
  }

  .toast {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 6px;
  }

  .top-brand {
    width: 116px;
  }

  .top-brand img {
    width: 112px !important;
  }

  .top-wallet-pill {
    min-width: 77px;
    font-size: 11px;
  }

  .top-wallet-pill-icon {
    display: none;
  }

  .topbar-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .notification-bell {
    min-width: 34px;
    width: 34px;
    height: 34px;
  }

  .affiliate-creative-actions {
    grid-template-columns: 1fr !important;
  }

  .marketing-login-side,
  .login-card-wrap {
    padding: 14px !important;
  }

  .marketing-login-card,
  .login-card {
    width: 100% !important;
    border-radius: 20px !important;
  }

  .marketing-login-card h2,
  .login-card h2 {
    font-size: 24px !important;
  }
}


/* ============================================================
   V5.15.2 — CORREÇÃO EXCLUSIVA PARA COMPUTADOR
   NÃO ALTERA O LAYOUT MOBILE.
   O bug vinha do styles.css original, que deixava .app-shell
   em CSS Grid (260px + 1fr) ao mesmo tempo em que a nova
   sidebar já era fixed. Isso encolhia todo o conteúdo no PC.
   ============================================================ */

@media (min-width: 901px) {

  /* Remove o grid antigo da estrutura somente no desktop */
  .app-shell {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Sidebar continua fixa, mas não ocupa mais uma coluna invisível */
  .sidebar {
    width: var(--app-sidebar-width) !important;
    box-sizing: border-box !important;
  }

  /* Conteúdo volta a usar toda a largura disponível */
  .main {
    display: block !important;
    width: calc(100% - var(--app-sidebar-width)) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: var(--app-sidebar-width) !important;
    box-sizing: border-box !important;
  }

  .app-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .page {
    display: block !important;
    width: 100% !important;
    max-width: 1500px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Dashboard */
  .grid {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .grid.stats,
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .grid.content-grid,
  .content-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr) !important;
    width: 100% !important;
  }

  .grid.stats > *,
  .content-grid > * {
    min-width: 0 !important;
    width: auto !important;
  }

  .card.stat,
  .stat {
    width: auto !important;
    min-width: 0 !important;
  }

  /* Produtos */
  .tonielque-auto-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tonielque-auto-head {
    width: 100% !important;
  }

  .tonielque-auto-form {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .tonielque-auto-link {
    width: 100% !important;
    min-width: 0 !important;
  }

  .tonielque-auto-link input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tonielque-fixed-rules {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .tonielque-fixed-rules > div {
    min-width: 0 !important;
  }

  .grid.products,
  .products {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .product-card {
    min-width: 0 !important;
    width: auto !important;
  }

  /* Criativos */
  .affiliate-creatives-grid {
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .affiliate-creative-card {
    min-width: 0 !important;
    width: auto !important;
  }

  /* Painéis, listas e formulários não podem mais herdar largura estreita */
  .panel,
  .table-wrap,
  .settings-card,
  .help-faq-card,
  .broadcast-card,
  .support-new-card {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Mantém a barra superior ocupando corretamente o desktop */
  .topbar {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ajustes intermediários SOMENTE de desktop/tablet grande */
@media (min-width: 901px) and (max-width: 1180px) {
  .grid.stats,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid.products,
  .products,
  .affiliate-creatives-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid.content-grid,
  .content-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   V5.15.3 — BUSCA GLOBAL + MENU DO PERFIL + CAPTCHA
   ============================================================ */

.global-search-wrap {
  position: relative !important;
  overflow: visible !important;
}

.global-search-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 150;
  width: min(540px, 76vw);
  max-height: min(520px, 70vh);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 20px 55px rgba(18, 60, 42, .18);
  backdrop-filter: blur(16px);
}

.global-search-panel[hidden] {
  display: none !important;
}

.global-search-result {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #15243d;
  text-align: left;
  cursor: pointer;
}

.global-search-result:hover,
.global-search-result:focus {
  background: #eef9f3;
  outline: none;
}

.global-search-result-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8f7ef;
  color: #087b3e;
  font-weight: 900;
}

.global-search-result-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.global-search-result-copy b {
  overflow: hidden;
  color: #15243d;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.global-search-result-copy small {
  overflow: hidden;
  color: #8590a0;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.global-search-result-arrow {
  color: #0b984c;
  font-weight: 900;
}

.global-search-empty {
  padding: 15px;
  color: #798496;
  font-size: 11px;
  line-height: 1.45;
}


/* Perfil no topo */
.profile-menu-wrap {
  position: relative;
}

.profile-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.profile-menu-trigger:hover {
  background: rgba(255,255,255,.08);
}

.profile-menu-chevron {
  color: rgba(255,255,255,.8);
  font-size: 11px;
}

.profile-menu-popover {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 155;
  width: 285px;
  padding: 9px;
  border: 1px solid #dfe8e3;
  border-radius: 17px;
  background: #fff;
  color: #15243d;
  box-shadow: 0 20px 55px rgba(18, 60, 42, .20);
}

.profile-menu-popover[hidden] {
  display: none !important;
}

.profile-menu-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 13px;
  margin-bottom: 5px;
  border-bottom: 1px solid #edf1ef;
}

.profile-popover-avatar {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
}

.profile-menu-summary > div:last-child {
  min-width: 0;
}

.profile-menu-summary b,
.profile-menu-summary small {
  display: block;
}

.profile-menu-summary b {
  color: #15243d;
  font-size: 12px;
}

.profile-menu-summary small {
  margin-top: 2px;
  overflow: hidden;
  color: #8590a0;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-menu-item {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-menu-item:hover {
  background: #f2f8f5;
}

.profile-menu-item > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eaf8f0;
  color: #087c3e;
}

.profile-menu-item > div {
  min-width: 0;
}

.profile-menu-item b,
.profile-menu-item small {
  display: block;
}

.profile-menu-item b {
  color: #18263d;
  font-size: 11px;
}

.profile-menu-item small {
  margin-top: 2px;
  color: #8a94a3;
  font-size: 9px;
}

.profile-menu-divider {
  height: 1px;
  margin: 6px 4px;
  background: #edf1ef;
}

.profile-menu-item.danger > span {
  background: #fff0f0;
  color: #d84242;
}

.profile-menu-item.danger b {
  color: #c83939;
}


/* CAPTCHA da tela de login */
.login-captcha-area {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 2px;
}

#loginTurnstileWidget {
  width: 100%;
  min-height: 62px;
  display: grid;
  place-items: center;
}

.auth-captcha-setup {
  width: 100%;
  padding: 11px 12px;
  border: 1px dashed #dfb43c;
  border-radius: 11px;
  background: #fff9e5;
  color: #826300;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .profile-menu-popover {
    position: fixed;
    top: calc(var(--app-topbar-height) + 7px);
    right: 9px;
    width: min(310px, calc(100vw - 18px));
  }

  .profile-menu-chevron {
    display: none;
  }

  /* A busca do desktop permanece oculta no mobile,
     preservando o layout que já foi aprovado. */
  .global-search-panel {
    display: none !important;
  }
}
