/* =====================================================
   Notacross — Быстрая смена аккаунтов · base.css v3.1
   Изолированный стиль, без переменных форума
   ===================================================== */

/* === Локальные переменные (ТОЛЬКО для быстровхода) === */
:root {
  --nql-bg-main:    rgba(14,14,16,.96);
  --nql-bg-soft:    rgba(255,255,255,.04);
  --nql-bg-hover:   rgba(255,255,255,.08);

  --nql-border:     rgba(255,255,255,.14);
  --nql-border-soft:rgba(255,255,255,.08);

  --nql-text-main:  #ffffff;
  --nql-text-dim:   rgba(255,255,255,.65);
  --nql-text-soft:  rgba(255,255,255,.45);

  --nql-accent:     #8f87ff;
  --nql-danger:     #ff5a5f;

  --nql-radius-lg:  14px;
  --nql-radius-md:  10px;
  --nql-radius-sm:  6px;

  --nql-shadow:     0 18px 40px rgba(0,0,0,.55);

  /* Модалка — переопределяются через data-modal-* */
  --nota-ql-modal-bg:     rgba(18,18,20,.97);
  --nota-ql-modal-color:  #ffffff;
  --nota-ql-modal-radius: 14px;
}

/* =====================================================
   ПАНЕЛЬ
   ===================================================== */

/* Обёртка в навигации */
.nota-ql {
  position: relative;
  display: inline-block;
}

/* Кнопка в навбаре */
#nota-ql-navbtn {
  cursor: pointer;
  user-select: none;
}

/* Дропдаун */
.nota-ql-pane {
  position: absolute;
  top: 42px;
  z-index: 9999;

  width: 320px;
  max-width: 92vw;

  background: var(--nql-bg-main);
  color: var(--nql-text-main);

  border-radius: var(--nql-radius-lg);
  padding: 14px;

  box-shadow: var(--nql-shadow);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.nota-ql.open .nota-ql-pane {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Заголовок */
.nota-ql-pane h4 {
  margin: 0 0 8px;
  text-transform: uppercase;
  color: var(--nql-text-soft);
  font: 700 11px var(--font3, sans-serif);
}

/* ── Список аккаунтов ── */
.nota-ql-pane .list {
  max-height: 340px;
  overflow-y: auto;
  margin: 8px 0;
  padding: 6px;
  background: var(--nql-bg-soft);
  border-radius: var(--nql-radius-md);
}

.nota-ql-pane .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.nota-ql-pane .namezone {
  padding: 3px 10px;
  border-radius: var(--nql-radius-sm);
  font-size: 11px;
  font-weight: 300;
  color: var(--nql-text-main);
  cursor: pointer;
  transition: background .2s ease;
}
.nota-ql-pane .namezone:hover {
  background: var(--nql-bg-hover);
}

/* ── Поля ввода ── */
.nota-ql-pane .row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.nota-ql-pane input[type="text"],
.nota-ql-pane input[type="password"] {
  flex: 1;
  background: var(--nql-bg-soft) !important;
  border: 1px solid var(--nql-border-soft) !important;
  border-radius: var(--nql-radius-md) !important;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--nql-text-main) !important;
  outline: none;
  transition: border .2s ease, background .2s ease;
  width: 50%;
}
.nota-ql-pane input::placeholder { color: var(--nql-text-soft); }
.nota-ql-pane input:focus {
  border-color: var(--nql-accent) !important;
  background: rgba(255,255,255,.06) !important;
}

/* ── Кнопки ── */
.nota-ql-pane .btn {
  padding: 7px 12px;
  border-radius: var(--nql-radius-md);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border .2s ease, color .2s ease, transform .15s ease;
}
.nota-ql-pane .btn:hover { transform: translateY(-1px); }

.nota-ql-pane .btn.primary {
  background: var(--nql-accent);
  color: #fff;
}
.nota-ql-pane .btn.ghost {
  background: transparent;
  border: 1px dashed var(--nql-border);
  color: var(--nql-text-dim);
}
.nota-ql-pane .btn.ghost:hover {
  color: var(--nql-text-main);
  border-color: var(--nql-text-dim);
}
.nota-ql-pane .btn.danger {
  width: 26px;
  height: 26px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--nql-border-soft);
  color: var(--nql-text-dim);
  font-size: 14px;
  transition: background .2s ease, color .2s ease, border .2s ease;
}
.nota-ql-pane .btn.danger:hover {
  background: var(--nql-danger);
  border-color: var(--nql-danger);
  color: #fff;
}

/* ── Импорт / Экспорт ── */
.nql-ie-toggle {
  margin-top: 8px;
  font-size: 11px;
  color: var(--nql-text-soft);
  cursor: pointer;
  user-select: none;
}
.nql-ie-toggle:hover { color: var(--nql-text-dim); }

.nql-ie {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--nql-border-soft);
}
.nql-ie.hidden { display: none; }

.nql-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 6px;
}
.nql-row input[type="text"] {
  background: var(--nql-bg-soft);
  border: 1px solid var(--nql-border-soft);
  border-radius: var(--nql-radius-sm);
  padding: 6px 8px;
  font-size: 11px;
  color: var(--nql-text-dim);
  outline: none;
}
.nql-btn {
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--nql-radius-sm);
  border: 1px solid var(--nql-border);
  background: transparent;
  color: var(--nql-text-dim);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nql-btn:hover {
  background: var(--nql-bg-hover);
  color: var(--nql-text-main);
}
.nql-note {
  font-size: 11px;
  color: var(--nql-text-soft);
  margin-top: 4px;
}

/* ── Тост лицензии ── */
.nota-ql-license-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20,20,22,.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
  max-width: 320px;
  z-index: 99999;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
  pointer-events: none;
}

/* =====================================================
   МОДАЛКА ВЫГУЛА
   ===================================================== */

.nota-ql-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  animation: notaQlFadeIn .35s ease forwards;
}
.nota-ql-modal-overlay.nota-ql-fadeout {
  animation: notaQlFadeOut .35s ease forwards;
}

.nota-ql-modal {
  pointer-events: auto;
  background: var(--nota-ql-modal-bg);
  color: var(--nota-ql-modal-color);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--nota-ql-modal-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  padding: 28px 36px;
  text-align: center;
  font-family: system-ui, sans-serif;
  max-width: 340px;
  width: 90%;
  animation: notaQlPulse 3s ease-in-out infinite;
}

.nota-ql-modal__icon  { font-size: 38px; margin-bottom: 10px; }
.nota-ql-modal__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.nota-ql-modal__sub {
  font-size: 13px;
  opacity: .65;
  margin-bottom: 18px;
  min-height: 18px;
}
.nota-ql-modal__stop {
  background: var(--nql-danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: filter .2s, transform .15s;
}

/* ── Чекбокс «без постинга» ── */
.nota-ql-skip-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--nql-text-soft);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nota-ql-skip-label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--nql-accent);
}


.nota-ql-modal__stop:hover  { filter: brightness(1.15); transform: translateY(-1px); }
.nota-ql-modal__stop:active { filter: brightness(.9);   transform: translateY(0); }

@keyframes notaQlFadeIn  {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes notaQlFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.94); }
}
@keyframes notaQlPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,.5); }
  50%      { box-shadow: 0 8px 48px rgba(0,0,0,.65); }
}