/* ASV HOTFIX 2026-05-30
   Corrige texto invisível em campos do painel admin/cliente/publico, inclusive mobile.
   Deve carregar DEPOIS do panel.css. */

:root{--asv-field-bg:#070d20;--asv-field-bg2:#0b1228;--asv-field-text:#f8fafc;--asv-field-muted:#94a3b8;--asv-field-border:rgba(148,163,184,.28);--asv-field-focus:#67e8f9;}

html body input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
html body textarea,
html body select,
html body .input,
html body .gbfxp-input,
html body .classic-manual-search,
html body .license-action-select,
html body .asv-chat-panel input,
html body .asv-chat-panel textarea,
html body #rafflePrizeType,
html body #rafflePrizeValue,
html body #classicWinnerSearch,
html body input[name="pix_key"],
html body input[name="amount"],
html body input[name="cpf"],
html body input[name="cpf_cnpj"],
html body input[data-cpf-cnpj]{
  color:var(--asv-field-text)!important;
  -webkit-text-fill-color:var(--asv-field-text)!important;
  caret-color:var(--asv-field-focus)!important;
  opacity:1!important;
  text-shadow:none!important;
  background:linear-gradient(180deg,rgba(7,13,32,.98),rgba(3,7,20,.96))!important;
  border-color:var(--asv-field-border)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}

html body input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus,
html body textarea:focus,
html body select:focus,
html body .input:focus,
html body .gbfxp-input:focus,
html body .classic-manual-search:focus,
html body #rafflePrizeType:focus,
html body #rafflePrizeValue:focus,
html body #classicWinnerSearch:focus{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:rgba(103,232,249,.75)!important;
  box-shadow:0 0 0 4px rgba(103,232,249,.12), inset 0 1px 0 rgba(255,255,255,.04)!important;
}

html body input::placeholder,
html body textarea::placeholder,
html body .input::placeholder,
html body .gbfxp-input::placeholder,
html body .classic-manual-search::placeholder,
html body #classicWinnerSearch::placeholder{
  color:var(--asv-field-muted)!important;
  -webkit-text-fill-color:var(--asv-field-muted)!important;
  opacity:1!important;
}

html body select option,
html body #rafflePrizeType option,
html body #rafflePrizeValue option,
html body .input option,
html body .gbfxp-input option{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  background:#ffffff!important;
}

html body select:disabled,
html body input:disabled,
html body textarea:disabled,
html body .input:disabled{
  opacity:.75!important;
  color:#cbd5e1!important;
  -webkit-text-fill-color:#cbd5e1!important;
  background:rgba(15,23,42,.72)!important;
}

html body input:-webkit-autofill,
html body input:-webkit-autofill:hover,
html body input:-webkit-autofill:focus,
html body textarea:-webkit-autofill,
html body select:-webkit-autofill{
  -webkit-box-shadow:0 0 0 1000px #070d20 inset!important;
  -webkit-text-fill-color:#f8fafc!important;
  caret-color:#67e8f9!important;
  transition:background-color 9999s ease-in-out 0s!important;
}

html body input::selection,
html body textarea::selection,
html body .input::selection,
html body .gbfxp-input::selection,
html body .classic-manual-search::selection{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#2563eb!important;
}

/* Campos com fundos forçados por tema/Chrome ficam legíveis mesmo quando o tema usa branco */
html body .glass input[style],
html body .glass textarea[style],
html body .glass select[style],
html body .app-content input[style],
html body .app-content textarea[style],
html body .app-content select[style]{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  background:#070d20!important;
}

/* Inputs pequenos de formulários de afiliado/faturas/chat */
html body form .input,
html body form input,
html body form textarea,
html body form select{
  min-height:44px;
}

@media(max-width:768px){
  html body input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  html body textarea,
  html body select,
  html body .input,
  html body .gbfxp-input,
  html body .classic-manual-search{
    font-size:16px!important;
    line-height:1.25!important;
    color:#f8fafc!important;
    -webkit-text-fill-color:#f8fafc!important;
    background:#070d20!important;
  }
}


/* ASV HOTFIX 2026-05-30 - reforço área do cliente/admin após migração */
html body .app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
html body .app-shell textarea,
html body .app-shell select,
html body .app-shell .input,
html body [data-cpf-cnpj],
html body input[name="email_code"],
html body input[name="password"],
html body input[name="cpf"],
html body input[name="whatsapp"],
html body input[name="company_name"]{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  caret-color:#67e8f9!important;
  opacity:1!important;
  text-shadow:none!important;
}
html body .app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not(:disabled):not([readonly]),
html body .app-shell textarea:not(:disabled):not([readonly]),
html body .app-shell select:not(:disabled){
  background:#070d20!important;
}
html body .app-shell input[readonly],
html body .app-shell input:disabled,
html body .app-shell textarea:disabled,
html body .app-shell select:disabled{
  color:#e2e8f0!important;
  -webkit-text-fill-color:#e2e8f0!important;
  background:rgba(15,23,42,.84)!important;
}
html body .app-shell input::placeholder,
html body .app-shell textarea::placeholder{
  color:#94a3b8!important;
  -webkit-text-fill-color:#94a3b8!important;
  opacity:1!important;
}
@media(max-width:768px){
  html body .app-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
  html body .app-shell textarea,
  html body .app-shell select,
  html body .app-shell .input{
    font-size:16px!important;
    color:#f8fafc!important;
    -webkit-text-fill-color:#f8fafc!important;
    opacity:1!important;
  }
}


/* ASV READABILITY 2026-08-14 - respect redesigned light surfaces */
html body .admin-content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
html body .admin-content textarea,
html body .admin-content select,
html body .admin-content .input{
  background:#f8fbfe!important;
  color:#102033!important;
  -webkit-text-fill-color:#102033!important;
  border-color:rgba(16,32,51,.16)!important;
}
html body .admin-content input::placeholder,
html body .admin-content textarea::placeholder{
  color:#6f8195!important;
  -webkit-text-fill-color:#6f8195!important;
}
html body .app-shell:not(.admin-layout) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
html body .app-shell:not(.admin-layout) textarea,
html body .app-shell:not(.admin-layout) select,
html body .app-shell:not(.admin-layout) .input{
  background:#071427!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  border-color:rgba(148,163,184,.34)!important;
}
