/* Opcoes (opcoes.js): a engrenagem dos icones de cima e a janela com as abas Geral, Interface e Notificacoes */
.g .g-icons .g-opc { color: #d9cfae; }
.g-opc .opc-ic { width: 20px; height: 20px; }
.opc-bg { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 10, .62); }
.opc {
  /* presa em cima (nao pula de lugar ao trocar de aba, que tem altura diferente) */
  position: fixed; z-index: 51; left: 50%; top: clamp(56px, 12vh, 110px); transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - clamp(56px, 12vh, 110px) - 16px); max-height: calc(100dvh - clamp(56px, 12vh, 110px) - 16px); display: flex; flex-direction: column;
  background: #10131d; border: 1px solid #3a4258; border-radius: 10px; box-shadow: 0 20px 60px #000c; color: var(--txt, #e8e6df); font-size: 14px;
}
.opc-svg { width: 18px; height: 18px; flex: none; }
.opc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid #2c3346;
  background: #151a29; border-radius: 10px 10px 0 0; }
.opc-h b { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2, #f0c46a); font-size: 14px; letter-spacing: .14em; }
.g .opc-x { width: 32px; height: 32px; border-radius: 6px; color: var(--dim, #9aa0ad); font-size: 15px; }
.g .opc-x:hover { background: #262b3c; color: var(--txt, #e8e6df); }
.opc-abas { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #2c3346; }
.g .opc-abas button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 9px 8px 10px;
  border-bottom: 2px solid transparent; color: var(--dim, #9aa0ad); font-weight: 600; font-size: 13.5px; }
.g .opc-abas button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g .opc-abas button:hover { color: var(--txt, #e8e6df); }
.g .opc-abas button.on { color: var(--gold-2, #f0c46a); border-bottom-color: var(--gold, #d8a64a); }
.opc-corpo { padding: 4px 16px 10px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.opc-cab { padding: 12px 0 6px; }
.opc-cab h3 { margin: 0; font-size: 15px; color: #e6ecff; }
.opc-cab p { margin: 2px 0 0; color: var(--dim, #9aa0ad); font-size: 12.5px; }
/* uma opcao: o texto a esquerda, o controle a direita */
.opc-l { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #222839; }
.opc-l.opc-l-vol { padding-bottom: 4px; }
.opc-lt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opc-lt b { font-size: 14px; color: #e6e2d6; }
.opc-lt small { color: var(--dim, #9aa0ad); font-size: 12px; line-height: 1.4; }
.opc-lc { flex: none; display: flex; align-items: center; }
.opc-st { color: var(--dim, #9aa0ad); font-size: 12.5px; text-align: right; max-width: 150px; }
.opc-st.ok { color: var(--ok, #6fc07a); }
.g .opc .btn { border: 1px solid var(--line, #2a2f3e); background: var(--panel-2, #1e2230); }
.g .opc .btn:hover:not(:disabled) { border-color: var(--gold, #d8a64a); }
/* chave liga/desliga (pilula) com Ativado/Desativado embaixo */
.opc-sw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; cursor: pointer; }
.opc-sw input { position: absolute; top: 0; left: 50%; width: 44px; height: 24px; margin: 0 0 0 -22px; opacity: 0; cursor: pointer; }
.opc-sw i { position: relative; display: block; width: 44px; height: 24px; border-radius: 12px; background: #3a4258; transition: background .15s; pointer-events: none; }
.opc-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e9e2cf; box-shadow: 0 1px 3px #0008; transition: transform .15s; }
.opc-sw input:checked + i { background: linear-gradient(180deg, #e8b85c, #c8902e); }
.opc-sw input:checked + i::after { transform: translateX(20px); background: #fff7e6; }
.opc-sw input:focus-visible + i { outline: 2px solid var(--gold-2, #f0c46a); outline-offset: 2px; }
.opc-sw small { font-size: 11px; color: var(--dim, #9aa0ad); white-space: nowrap; }
.opc-sw input:checked ~ small { color: #e0af68; }
.opc-sw.off { opacity: .45; cursor: default; }
.opc-sw.off input { cursor: default; }
/* English | Portugues */
.opc-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #0c0f17; border: 1px solid #2c3346; }
.g .opc-seg button { padding: 6px 12px; border-radius: 999px; color: var(--dim, #9aa0ad); font-weight: 600; font-size: 13px; }
.g .opc-seg button.on { background: var(--gold, #d8a64a); color: #1d1606; }
.g .opc-seg button:hover:not(.on) { color: var(--txt, #e8e6df); background: rgba(255, 255, 255, .06); }
/* volume e zoom: a barrinha embaixo da opcao */
.opc-vol { display: grid; grid-template-columns: auto 1fr 44px; align-items: center; gap: 10px; padding: 2px 0 12px; font-size: 12px; color: var(--dim, #9aa0ad); }
.opc-vol input { width: 100%; accent-color: #e0af68; }
.opc-vol b { text-align: right; color: #e6e2d6; font-variant-numeric: tabular-nums; }
/* rodape */
.opc-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 10px 16px 12px; border-top: 1px solid #2c3346;
  background: #0d1019; border-radius: 0 0 10px 10px; }
.opc-salvo { color: var(--dim, #9aa0ad); font-size: 11.5px; flex: 1 1 180px; }
.opc-sai { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.opc-sai small { color: #7d869c; font-size: 11px; }
.g .opc .opc-sair { color: #ffb4aa; border-color: #5a2a26; background: #2a1614; }
.g .opc .opc-sair:hover { border-color: #e06a5a; background: #3a1d1b; }
/* celular: folha de baixo, na largura toda */
@media (max-width: 759px) {
  .opc { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-height: 88vh; max-height: 88dvh; border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom); }
  .opc-h { border-radius: 14px 14px 0 0; padding-left: 16px; }
  .opc-abas { padding: 6px 8px 0; }
  .g .opc-abas button { flex-direction: column; gap: 3px; padding: 7px 4px 8px; font-size: 12px; }
  .opc-corpo { padding: 2px 16px 8px; }
  .opc-l { gap: 10px; }
  .opc-st { max-width: 120px; }
  .opc-pe { border-radius: 0; padding: 10px 16px 12px; }
  .opc-sai { align-items: stretch; text-align: left; flex: 1 1 100%; }
}
