/* Suporte flutuante (ver suporte.js) e menu de três risquinhos no celular (ver menu.js). */
/* "Suporte" sai do menu do topo: agora é o botão no canto */
body:not(.admin-mode) header nav a[href="#suporte"],body:not(.admin-mode) aside a[href="#suporte"]{display:none}
#supw{--y:#f4e222;position:fixed;right:18px;bottom:18px;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
#supw>*{pointer-events:auto}
.supw-fab{position:relative;width:58px;height:58px;border-radius:50%;border:0;background:var(--y);color:#0d0e0f;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 30px #000a,0 0 0 4px #f4e22226;transition:transform .15s}
.supw-fab:hover,.supw-fab:focus-visible{transform:scale(1.06);outline:none}
.supw-fab svg{width:26px;height:26px}
.supw-fab b{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff4d4f;color:#fff;font:700 11px/20px Inter,system-ui,sans-serif;border:2px solid #031419}
.supw-panel{width:min(400px,calc(100vw - 36px));max-height:min(640px,calc(100svh - 120px));display:flex;flex-direction:column;border:1px solid #21383e;border-radius:20px;background:#071c22;box-shadow:0 30px 80px #000c;overflow:hidden}
.supw-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #17303a;background:#0b1f26}
.supw-head strong{display:block;color:#fff;font-size:17px}.supw-head small{color:#81999e;font-size:12px}
.supw-x{width:34px;height:34px;border-radius:50%;border:1px solid #21383e;background:none;color:#fff;font-size:20px;line-height:1;cursor:pointer}
.supw-tabs{display:flex;gap:6px;padding:12px 14px 0}
.supw-tabs button{flex:1;padding:9px 8px;border:1px solid #21383e;border-radius:999px;background:#0b1f26;color:#c6d0d1;font-size:12.5px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:6px}
.supw-tabs button.on{border-color:var(--y);color:var(--y);background:#f4e2221a}
.supw-tabs b{font-size:10.5px;padding:1px 7px;border-radius:999px;background:#ffffff14}
.supw-body{flex:1;overflow:auto;padding:14px;display:grid;gap:10px;align-content:start}
.supw-new{width:100%;justify-content:center;gap:8px}.supw-new svg{width:16px;height:16px}
.supw-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.supw-list button{width:100%;text-align:left;display:grid;gap:5px;padding:12px 14px;border:1px solid #21383e;border-radius:14px;background:#0b1f26;color:#fff;cursor:pointer}
.supw-list button:hover{border-color:#f4e22288}
.supw-l1{display:flex;align-items:center;gap:8px;font-size:11px;color:#81999e}.supw-l1 small{margin-left:auto}
.supw-list strong{font-size:14px;font-weight:600}
.supw-l3{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.supw-l3 small{color:#81999e;font-size:11.5px}
.supw-empty{margin:4px 0 0;color:#81999e;font-size:13px;line-height:1.5;text-align:center}
.supw-back{justify-self:start;border:0;background:none;color:var(--y);font-size:13px;cursor:pointer;padding:0}
.supw-th{display:grid;gap:4px;padding-bottom:10px;border-bottom:1px solid #17303a}.supw-th span{font-size:11px;color:#81999e}.supw-th strong{color:#fff;font-size:15px}
.supw-msgs{display:grid;gap:8px;max-height:280px;overflow:auto}
.supw-reply textarea{width:100%}
.supw-faq details{border-bottom:1px solid #17303a;padding:10px 2px}
.supw-faq summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;color:#fff;font-size:14px;list-style:none}
.supw-faq summary::-webkit-details-marker{display:none}.supw-faq summary span{color:var(--y)}
.supw-faq p{margin:8px 0 0;color:#81999e;font-size:13px;line-height:1.55}
@media(max-width:720px){
  #supw{right:14px;bottom:14px}
  #supw.open{left:0;right:0;bottom:0;top:0;align-items:stretch;justify-content:flex-end;padding:0;background:#000a}
  #supw.open .supw-panel{width:100%;max-height:88svh;border-radius:22px 22px 0 0;border-bottom:0}
  #supw.open .supw-fab{position:absolute;top:calc(12svh - 70px);right:14px;width:48px;height:48px}
}

/* menu de três risquinhos (só no celular) */
#menu-btn{display:none}
@media(max-width:720px){
  body:not(.admin-mode)>header{flex-wrap:nowrap!important;min-height:0!important;height:64px!important;padding:0 16px!important;gap:8px!important}
  body:not(.admin-mode)>header nav{display:none!important}
  body:not(.admin-mode)>header .brand{margin-right:auto}
  body:not(.admin-mode)>header .brand img{width:84px}
  #menu-btn{display:grid;gap:4px;place-content:center;width:38px;height:38px;flex:none;border:1px solid #ffffff30;border-radius:999px;background:none;cursor:pointer;padding:0}
  #menu-btn i{display:block;width:16px;height:1.6px;background:#fff;border-radius:2px;transition:transform .2s,opacity .2s}
  #menu-btn.on{border-color:#f4e222}#menu-btn.on i{background:#f4e222}
  #menu-btn.on i:nth-child(1){transform:translateY(5.6px) rotate(45deg)}#menu-btn.on i:nth-child(2){opacity:0}#menu-btn.on i:nth-child(3){transform:translateY(-5.6px) rotate(-45deg)}
  #menu-sheet{position:sticky;top:64px;z-index:40;display:grid;padding:6px 16px 14px;background:#080909f2;backdrop-filter:blur(14px);border-bottom:1px solid #ffffff14}
  #menu-sheet[hidden]{display:none}
  #menu-sheet a{display:flex;justify-content:space-between;align-items:center;padding:15px 4px;border-bottom:1px solid #ffffff12;color:#e8eaec;text-decoration:none;font-size:18px}
  #menu-sheet a:last-child{border-bottom:0}
  #menu-sheet a span{color:#81999e;font-size:14px}
  #menu-sheet a.active{color:#f4e222}#menu-sheet a.active span{color:#f4e222}
  body:not(.admin-mode) .hx{min-height:min(calc(100svh - 64px),640px)!important}
}
.supw-th>:last-child{justify-self:start}
@media(max-width:720px){
  #supw.open .supw-fab{display:none}
  #menu-sheet{grid-template-columns:1fr}
  #menu-sheet a{width:100%;max-width:none;margin:0}
}
#menu-sheet[hidden]{display:none!important}
@media(min-width:721px){#menu-sheet{display:none!important}}

/* Ajustes gerais no iPhone */
@media(max-width:720px){
  /* espaço no fim da página para o botão de suporte não cobrir o rodapé */
  body:not(.admin-mode):not(.guest) .foot{padding-bottom:84px}
  /* títulos das páginas antigas (ex.: Minha campanha) no mesmo estilo centralizado */
  body:not(.admin-mode) main>.ph{display:block;text-align:center;padding:14px 0 18px;margin-bottom:18px}
  body:not(.admin-mode) main>.ph .ph-t{font-size:34px;letter-spacing:-.04em}
  body:not(.admin-mode) main>.ph .ph-2{font-size:22px;margin-top:4px}
  body:not(.admin-mode) main>.ph .ph-aside{display:none}
  /* abas em pílula menores: as três cabem na tela */
  body:not(.admin-mode) .cd-page .cd-tabs{gap:6px}
  body:not(.admin-mode) .cd-page .cd-tabs button{padding:8px 11px;font-size:12px;gap:5px}
}
@media(max-width:400px){body:not(.admin-mode) .cd-page .cd-tabs{gap:5px}body:not(.admin-mode) .cd-page .cd-tabs button{padding:7px 9px;font-size:11px;gap:4px}.cd-page .cd-tabs button b{padding:1px 5px}}

/* Enquadramento no celular: nada pode alargar a página além da tela (sem arrastar para o lado). */
@media(max-width:720px){
  html,body:not(.admin-mode){overflow-x:hidden;max-width:100%}
  body:not(.admin-mode)>header{max-width:100vw;box-sizing:border-box}
  body:not(.admin-mode)>header .language-select,body:not(.admin-mode)>header #account{flex-shrink:1;min-width:0}
  body:not(.admin-mode)>header .language-select select{max-width:118px;text-overflow:ellipsis}
  body:not(.admin-mode) .hx{max-width:100vw}
}

/* sem registro: a janela "Minha conta" não oferece mais "Atualizar registro" nem "Sair" */
#modal #edit-reg,#modal #logout-reg{display:none!important}

/* Paleta do Worbit Rewards em todas as páginas do creator: preto no topo descendo para o azul-petróleo (#031419),
   cartões #0b1f26, bordas #21383e, texto secundário #81999e e o amarelo suave #f4e222 nos destaques. */
html body:not(.admin-mode):not(.guest){background:#031419 linear-gradient(180deg,#050606 0,#050606 140px,#041116 380px,#031419 620px) no-repeat!important}
body:not(.admin-mode) .hx{background:#050606!important}
body:not(.admin-mode) .hc{background:linear-gradient(180deg,#050606 0,#041116 160px,#031419 360px,#031419 100%)!important}
body:not(.admin-mode)>header{background:#050606f0!important}
/* destaques suaves (bordas e textos acesos) no amarelo do Rewards; botões cheios continuam no amarelo da marca */
.cd-tabs button.on,.bk-seg button.on,.bk-per button.on,.supw-tabs button.on{border-color:#f4e222!important;color:#f4e222!important;background:#f4e22214!important}
.cd-head p,.hc-head a,.bk-lbl{color:#81999e}
.hc-card.on{border-color:#f4e22266!important}

/* Grade ao fundo do banner da Início (como o painel do Rewards): linhas finas com pontos nos cruzamentos, sumindo nas bordas */
body:not(.admin-mode) .hx:before{background-image:
  radial-gradient(circle,rgba(216,214,107,.22) 1.2px,transparent 1.8px),
  linear-gradient(rgba(129,153,158,.10) 1px,transparent 1px),
  linear-gradient(90deg,rgba(129,153,158,.10) 1px,transparent 1px)!important;
  background-size:44px 44px!important;background-position:-22px -22px,0 0,0 0!important;
  -webkit-mask-image:radial-gradient(ellipse 85% 75% at 50% 40%,#000 45%,transparent 100%);mask-image:radial-gradient(ellipse 85% 75% at 50% 40%,#000 45%,transparent 100%)}
@media(min-width:721px){body:not(.admin-mode) .hx:before{background-size:64px 64px!important;background-position:-32px -32px,0 0,0 0!important}}

/* Botões e cantos no formato do Worbit Rewards: retângulos com canto quase reto (2px), botão principal no
   amarelo suave #f4e222 com texto escuro, secundário como link sublinhado; cabeçalho no petróleo #071b20. */
body:not(.admin-mode)>header{background:#071b20f2!important;border-bottom-color:#21383e!important}
#menu-sheet{background:#071b20f5!important}
body:not(.admin-mode) .btn,body:not(.admin-mode) .btn.primary,body:not(.admin-mode) .ha-btn,body:not(.admin-mode) .supw-new,body:not(.admin-mode) .bk-sq-go,
body:not(.admin-mode) .hx-ball span,body:not(.admin-mode) .bk-box-top a,body:not(.admin-mode) .bk-sq-chips button{border-radius:2px!important}
body:not(.admin-mode) .btn.primary,body:not(.admin-mode) .ha-btn,body:not(.admin-mode) .supw-new,body:not(.admin-mode) .bk-sq-go,body:not(.admin-mode) [data-submit].btn{
  background:#f4e222!important;border-color:#f4e222!important;color:#0b1415!important;font-weight:500!important;letter-spacing:.01em}
body:not(.admin-mode) .btn.primary:hover,body:not(.admin-mode) .ha-btn:hover,body:not(.admin-mode) .supw-new:hover,body:not(.admin-mode) .bk-sq-go:hover{background:#fff04d!important}
body:not(.admin-mode) .btn:not(.primary){background:none!important;border:0!important;border-bottom:1px solid #f3f3ef80!important;border-radius:0!important;padding-left:0!important;padding-right:0!important;color:#f3f3ef!important}
body:not(.admin-mode) .btn:not(.primary):hover{border-bottom-color:#f4e222!important;color:#f4e222!important}
/* botão do topo (Encontrar minha campanha): retângulo escuro com borda amarela suave */
body:not(.admin-mode) .hx-ball span{background:#071b20!important;border-color:#f4e222!important}
/* abas e filtros: retângulos com canto de 2px */
body:not(.admin-mode) .cd-tabs button,body:not(.admin-mode) .bk-per button,body:not(.admin-mode) .supw-tabs button,body:not(.admin-mode) .bk-seg,body:not(.admin-mode) .bk-seg button,
body:not(.admin-mode) header .language-select select,body:not(.admin-mode) header .account-login,#menu-btn,.bk-range-btn{border-radius:2px!important}
/* cartões e caixas: cantos quase retos, como os cofres do Rewards */
body:not(.admin-mode) .hc-card,body:not(.admin-mode) .active-camp,body:not(.admin-mode) .todo,body:not(.admin-mode) .mv-row,body:not(.admin-mode) .bk-stats>div,
body:not(.admin-mode) .bk-sum div,body:not(.admin-mode) .supw-list button,body:not(.admin-mode) .bk-cal,body:not(.admin-mode) .glass-note,.supw-panel,.bk-sq-dest{border-radius:3px!important}
.bk-acts i,.bk-op i,.supw-fab,.supw-x,.bk-cal-h button{border-radius:50%!important}
html body:not(.admin-mode) .cd-page .active-camp,html body:not(.admin-mode) .hc-card{border-radius:3px!important}

/* Início no celular: o título desce para o meio do espaço livre (o vão fica dividido acima e abaixo dele),
   sem mudar a altura do banner nem o tamanho da roda. */
@media(max-width:720px){
  body:not(.admin-mode) .hx-mid{margin-top:auto!important;margin-bottom:0}
  body:not(.admin-mode) .hx-ball{margin-top:auto!important}
}
/* frases de cima um pouco mais abaixo no celular */
@media(max-width:720px){body:not(.admin-mode) .hx-tags{margin-top:clamp(22px,5svh,48px)!important}}
@media(max-width:720px){body:not(.admin-mode) .hx-sc1{top:210px}body:not(.admin-mode) .hx-sc2{top:200px}body:not(.admin-mode) .hx-sc4{top:235px}body:not(.admin-mode) .hx-sc7{top:250px}}
@media(max-width:720px){body:not(.admin-mode) .hx-sc4{left:calc(50% + 92px);top:222px}}

/* Botão de fechar das janelas (ex.: detalhes da campanha): fica visível por cima da imagem, redondo,
   e o contorno amarelo de foco só aparece para quem navega pelo teclado (não ao tocar/abrir). */
#modal>.close{z-index:5;top:12px;right:12px;width:36px;height:36px;display:grid;place-items:center;padding:0;border-radius:50%!important;
  background:#071b20d9!important;border:1px solid #21383e!important;color:#f3f3ef!important;font-size:22px;line-height:1;outline:none;box-shadow:0 6px 18px #0008}
#modal>.close:focus:not(:focus-visible){outline:none!important;box-shadow:0 6px 18px #0008}
#modal>.close:focus-visible{outline:2px solid #f4e222!important;outline-offset:2px}
#modal>.close:hover{border-color:#f4e222!important;color:#f4e222!important}

/* Cantos iguais aos cards do Worbit Rewards (quase retos) em todo o site do creator, celular e computador.
   Ficam redondos só o que é círculo de propósito (botão de suporte, ícones, bolinhas, anel). */
body:not(.admin-mode) main :is(.hc-card,.active-camp,.todo,.mv-row,.glass-note,.bk-sec,.bk-cal,.bk-range-btn,.bk-sum div,.bk-stats>div,
  .mc-card,.mc-one,.mc-tx,.mc-pill,.mc-sacar,.mc-sq,.mc-av,.mc-sac,.mc-ic,.mc-tip,
  .if-sheet,.if-chart,.if-sum span,.if-rec button,.if-tip,.bk-per,.bk-per button,
  .dk-box,.dk-b,.dk-cur,.dk-seg,.dk-seg button,.dk-sep span,
  .cd-tabs button,.hc-img,.ha-img,.active-art,.hx-ball span,.ha-btn,.ha-chip,.cd-sub b,.cd-tabs button b){border-radius:3px!important}
body:not(.admin-mode) main :is(.mc-tx,.if-sheet){border-radius:3px 3px 0 0!important}
@media(min-width:721px){body:not(.admin-mode) main :is(.mc-tx,.if-sheet){border-radius:3px!important}}
.supw-panel,.supw-list button,.supw-tabs button,#modal{border-radius:3px!important}
.mc-dots i,.bk-dots i,.dk-li i,.bk-op i,.bk-acts i,.supw-fab,.supw-x,#modal>.close,.bk-cal-h button,.if-pt,.mc-bar i,.mc-bar i b,.dk-bar i{border-radius:999px!important}
/* cartão de saldo: bem arredondado (vem depois da regra de cantos retos, por isso vence) */
html body:not(.admin-mode) main .mc-page .mc-card{border-radius:26px!important}
