/* maphrasquad — componentes de conta: select de pais e modal de alias */

  /* canais de cor do tema gótico: preto e branco, sem matiz */
  --a-hi: 255, 255, 255;
  --a1: 255, 255, 255;
  --a2: 232, 232, 232;
  --a3: 205, 205, 205;
  --a4: 168, 168, 168;
  --a5: 148, 148, 148;
  --a6: 112, 112, 112;
  --a7: 38, 38, 38;
  --t1: 220, 220, 220;
  --t2: 26, 26, 26;

.cselect { position: relative; }

.cselect__field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 9, 9, .72);
  padding: 0 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cselect.is-open .cselect__field,
.cselect__field:focus-within {
  border-color: var(--amethyst-bright);
  box-shadow: 0 0 0 3px rgba(var(--a3), .16);
}

.cselect__flag { font-size: 20px; line-height: 1; min-width: 22px; }

.cselect__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 15px;
  padding: 12px 0;
}

.cselect__input:focus { outline: none; }

.cselect__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 12, 12, .97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.cselect__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  color: var(--bone);
  padding: 9px 12px;
  cursor: pointer;
}

.cselect__opt:hover,
.cselect__opt.is-cursor { background: rgba(var(--a3), .18); }
.cselect__opt.is-on { background: rgba(var(--a3), .26); }

.cselect__emoji { font-size: 19px; }
.cselect__names { display: flex; flex-direction: column; min-width: 0; }
.cselect__name { font-size: 14.5px; }
.cselect__pt { font-size: 12px; color: var(--silver-dim); }
.cselect__none { padding: 12px; color: var(--silver-dim); font-size: 13.5px; }

/* ---- modal de alias ---- */

.alias-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(6px);
}

.alias-modal {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 23, 23, .98), rgba(11, 11, 11, .98));
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
  padding: 24px;
}

.alias-modal__title {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 6px;
  color: var(--bone);
}

.alias-modal__sub {
  margin: 0 0 18px;
  color: var(--silver-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.alias-modal__label {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 6px;
}

.alias-modal__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 7, 7, .8);
  color: var(--bone);
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.alias-modal__input:focus { outline: none; }

.alias-modal__input.is-ok {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

.alias-modal__input.is-bad {
  border-color: #ffffff;
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .10);
}

.alias-modal__hint {
  min-height: 18px;
  margin: 8px 0 18px;
  font-size: 12.5px;
  color: var(--silver-dim);
}

.alias-modal__actions { display: flex; gap: 10px; justify-content: flex-end; }

.alias-modal__btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--silver);
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

.alias-modal__btn--go {
  border-color: #ffffff;
  color: #0a0a0a;
  background: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(140, 140, 140, .22));
}

.alias-modal__btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---- linha de privacidade no editor ---- */

.ptoggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--silver);
}

.ptoggle input { width: 16px; height: 16px; accent-color: var(--amethyst-bright); }
/* ---- validacao de alias no editor ---- */

.pinput.is-ok {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
}

.pinput.is-bad {
  border-color: #ffffff;
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .10);
}

/* ---- o input do pais herda o estilo global de input: sem borda dupla ---- */

.field .cselect__input,
.cselect .cselect__input {
  min-height: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.field .cselect__input:focus,
.cselect .cselect__input:focus {
  border-color: transparent;
  box-shadow: none;
}

/* ---- lista de paises: fundo opaco e scrollbar escuro ---- */

.cselect__list {
  background: #0e0e0e;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--a6)) transparent;
}

.cselect__list::-webkit-scrollbar { width: 8px; }

.cselect__list::-webkit-scrollbar-track { background: transparent; }

.cselect__list::-webkit-scrollbar-thumb {
  background: rgb(var(--a6));
  border-radius: 8px;
}
