

/* ═════════ БУРГЕР ═════════ */
.acct-btn { display: inline-flex !important; align-items: center; justify-content: center;
  width: 38px !important; height: 38px !important; padding: 0 !important;
  border: 1px solid #2a2a3d !important; border-radius: 10px !important;
  background: #16161f !important; color: #c9c9dd !important; cursor: pointer; }
.acct-btn:hover { background: #1e1e2a !important; border-color: #3a3a52 !important; color: #fff !important; }
.acct-btn .burger { width: 20px; height: 20px; display: block; }

/* ═════════ МЕНЮ АККАУНТА — жёстко, перебиваем базовый CSS кнопок ═════════ */
#acctMenu.acct-menu {
  position: absolute !important; right: 0 !important; top: calc(100% + 8px) !important;
  z-index: 120 !important; min-width: 250px !important; width: auto !important;
  padding: 6px !important; margin: 0 !important;
  background: #14141e !important; border: 1px solid #2a2a3d !important;
  border-radius: 12px !important; box-shadow: 0 14px 38px rgba(0,0,0,.65) !important;
  display: block !important;
}
#acctMenu .acct-head {
  display: block !important; width: auto !important; height: auto !important;
  padding: 9px 11px 11px !important; margin: 0 0 4px 0 !important;
  background: none !important; border: none !important; border-bottom: 1px solid #22223380 !important;
  border-radius: 0 !important; text-align: left !important;
}
#acctMenu .acct-mail {
  display: block !important; font-size: 12px !important; color: #8b8ba7 !important;
  word-break: break-all !important; line-height: 1.4 !important; text-align: left !important;
}
#acctMenu button.acct-item {
  display: flex !important; align-items: center !important; gap: 10px !important;
  width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 40px !important;
  padding: 10px 11px !important; margin: 0 !important;
  background: transparent !important; background-color: transparent !important;
  border: none !important; border-radius: 8px !important;
  color: #d8d8e8 !important; font-size: 14px !important; font-weight: 400 !important;
  text-align: left !important; text-transform: none !important; letter-spacing: normal !important;
  box-shadow: none !important; cursor: pointer; line-height: 1.2 !important;
}
#acctMenu button.acct-item:hover { background-color: rgba(139,92,246,.16) !important; color: #fff !important; }
#acctMenu button.acct-item svg { width: 17px !important; height: 17px !important; flex: 0 0 17px !important; opacity: .85; }
#acctMenu button.acct-item span { display: inline !important; font-size: 14px !important; }

/* ═════════ МОДАЛКА ПРОФИЛЯ ═════════ */
#modalProfile .modal-card { max-width: 440px !important; max-height: 90vh; overflow-y: auto; }
#modalProfile .field { margin-bottom: 12px !important; }
#modalProfile .field > span { display: block; font-size: 12px; color: #9a9ab5; margin-bottom: 6px; }
#modalProfile input[type="email"], #modalProfile input[type="password"] {
  width: 100% !important; height: 40px !important; padding: 0 12px !important;
  background: #0f0f17 !important; border: 1px solid #2a2a3d !important;
  border-radius: 9px !important; color: #e8e8f4 !important; font-size: 14px !important;
}
#modalProfile input:focus { border-color: #8b5cf6 !important; outline: none !important; }
#modalProfile .chk-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #8b5cf6; }
#modalProfile .btn-block { width: 100% !important; }
#modalProfile #profMsg { min-height: 18px; }


/* ═════════ СВОЙ КАЛЕНДАРЬ ═════════ */
.sbp {
  position: absolute; z-index: 300; width: 262px; padding: 10px;
  background: #14141e; border: 1px solid #2a2a3d; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sbp[hidden] { display: none; }
.sbp .sbp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sbp .sbp-head span { font-size: 13px; font-weight: 600; color: #e8e8f4; }
.sbp .sbp-head button {
  width: 26px; height: 26px; border: none; border-radius: 7px; background: #1e1e2a;
  color: #c9c9dd; font-size: 15px; line-height: 1; cursor: pointer;
}
.sbp .sbp-head button:hover { background: #2a2a3d; color: #fff; }
.sbp .sbp-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.sbp .sbp-dow span { font-size: 10px; color: #6b6b8a; text-align: center; font-weight: 600; }
.sbp .sbp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.sbp .sbp-day {
  height: 30px; border: none; border-radius: 7px; background: none;
  color: #d8d8e8; font-size: 12px; cursor: pointer;
}
.sbp .sbp-day:hover { background: #26263a; color: #fff; }
.sbp .sbp-day.is-today { color: #a78bfa; font-weight: 700; }
.sbp .sbp-day.is-sel { background: #8b5cf6; color: #fff; font-weight: 600; }
.sbp .sbp-empty { height: 30px; }

/* ═════════ ПОДПИСИ ПОЛЕЙ ПРОКСИ — НЕ обрезать ═════════ */
.px-lbl {
  display: block !important; font-size: 10px !important; line-height: 1.6 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
  color: #8b8ba7 !important; font-weight: 600 !important;
  margin: 0 0 6px 0 !important; padding: 0 !important;
  overflow: visible !important; height: auto !important; max-height: none !important;
  white-space: nowrap !important;
}
.px-field { display: flex; flex-direction: column; gap: 0; margin-bottom: 0; }
#proxyCountry, #proxyDays, #proxyType { height: 38px !important; padding: 0 10px !important; font-size: 13px !important; }

/* ═════════ МЕНЮ ЭКСПОРТА — как обычное меню, без серых квадратов ═════════ */
#expMenu.exp-menu {
  position: absolute !important; right: 0 !important; top: calc(100% + 6px) !important;
  z-index: 120 !important; min-width: 170px !important; width: auto !important;
  padding: 6px !important; background: #14141e !important;
  border: 1px solid #2a2a3d !important; border-radius: 11px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.6) !important; display: block !important;
}
#expMenu[hidden] { display: none !important; }
#expMenu button.exp-item {
  display: flex !important; align-items: center !important; gap: 8px !important;
  width: 100% !important; height: auto !important; min-height: 38px !important;
  padding: 9px 11px !important; margin: 0 !important;
  background: transparent !important; background-color: transparent !important;
  border: none !important; border-radius: 8px !important;
  color: #d8d8e8 !important; font-size: 13px !important; font-weight: 400 !important;
  text-align: left !important; text-transform: none !important; letter-spacing: normal !important;
  box-shadow: none !important; cursor: pointer; line-height: 1.2 !important;
}
#expMenu button.exp-item:hover { background-color: rgba(139,92,246,.16) !important; color: #fff !important; }
/* ═════════ ВЫБОР ПРОКСИ: аккуратные поля (19.10.2026) ═════════ */
.px-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.px-picker .px-field { display: flex; flex-direction: column; min-width: 0; }
.px-picker .px-lbl {
  display: block; font-size: 10px; line-height: 1.5; letter-spacing: .06em;
  text-transform: uppercase; color: #8b8ba7; font-weight: 600;
  margin: 0 0 6px 0; height: auto; max-height: none; overflow: visible; white-space: nowrap;
}
.px-picker select {
  height: 38px; padding: 0 30px 0 10px; font-size: 13px; color: #e8e8f4;
  background: #14141e; border: 1px solid #2a2a3d; border-radius: 9px;
  appearance: none; -webkit-appearance: none; min-width: 148px; cursor: pointer;
/* ═════════ ВЫБОР ПРОКСИ: аккуратные поля (19.10.2026) ═════════ */
.px-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.px-picker .px-field { display: flex; flex-direction: column; min-width: 0; }
.px-picker .px-lbl {
  display: block; font-size: 10px; line-height: 1.5; letter-spacing: .06em;
  text-transform: uppercase; color: #8b8ba7; font-weight: 600;
  margin: 0 0 6px 0; height: auto; max-height: none; overflow: visible; white-space: nowrap;
}
.px-picker select {
  height: 38px; padding: 0 30px 0 10px; font-size: 13px; color: #e8e8f4;
  background-color: #14141e; border: 1px solid #2a2a3d; border-radius: 9px;
  appearance: none; -webkit-appearance: none; min-width: 148px; cursor: pointer;
  background-repeat: no-repeat; background-position: right 10px center;
}
.px-picker select:focus { border-color: #8b5cf6; outline: none; }
#proxyType { min-width: 250px; }
#proxyCountry { min-width: 210px; }
#proxyDays { min-width: 132px; }
.px-field-btn { justify-content: flex-end; }
.px-field-btn .btn { height: 38px; padding: 0 18px; }

/* 🔧 19.10.2026: .reveal даёт opacity:0 пока не сработает анимация — а для блока
   выбора прокси она не срабатывала, поля были невидимы. Принудительно показываем. */
.px-picker, .px-picker .px-field, .px-picker .px-lbl {
  opacity: 1 !important; visibility: visible !important; transform: none !important;
}
/* ═════════ ФИКСЫ 20.10: шапка, прокси в строку, график ═════════ */

/* 1. ШАПКА: базовый CSS задаёт .hd-in { padding: 10px 0; flex-wrap: wrap }
      и он перебивает мои правила → шапка сплющивается до 42px, бургер на top:2.
      Перебиваем ЖЁСТКО. */
header.hd { padding: 0 !important; }
header.hd .wrap {
  width: 100% !important; max-width: 1120px !important;
  margin: 0 auto !important; padding: 0 18px !important;
}
@media (min-width: 900px) {
  header.hd .wrap { padding: 0 24px !important; }
}
header.hd .hd-in {
  display: flex !important; align-items: center !important; flex-wrap: nowrap !important;
  gap: 14px !important; min-height: 68px !important; height: 68px !important;
  padding: 0 !important; margin: 0 !important;
}
header.hd .logo { flex: 0 0 auto !important; }
header.hd .nav-pills {
  flex: 1 1 auto !important; min-width: 0 !important;
  display: flex !important; flex-wrap: nowrap !important;
  align-items: center !important; gap: 4px !important;
}
header.hd .hd-actions { flex: 0 0 auto !important; margin-left: auto !important; display: flex; align-items: center; }
header.hd .acct-btn { margin-top: 0 !important; }

/* 2. ВЫБОР ПРОКСИ — В СТРОКУ (слева направо), подписи СВЕРХУ полей */
.px-picker {
  display: flex !important; flex-direction: row !important;
  flex-wrap: wrap !important; align-items: flex-end !important;
  gap: 14px !important; margin: 0 0 14px 0 !important;
}
.px-picker .px-field {
  display: flex !important; flex-direction: column !important;
  align-items: flex-start !important; gap: 0 !important;
  flex: 0 0 auto !important; width: auto !important; margin: 0 !important;
}
.px-picker .px-lbl {
  display: block !important; height: auto !important; max-height: none !important;
  font-size: 10px !important; line-height: 1.4 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; color: #8b8ba7 !important; font-weight: 600 !important;
  margin: 0 0 6px 2px !important; padding: 0 !important; white-space: nowrap !important;
  overflow: visible !important;
}
.px-picker select {
  display: block !important; width: auto !important;
  height: 40px !important; padding: 0 32px 0 12px !important;
  font-size: 13px !important; color: #e8e8f4 !important;
  background-color: #14141e !important; border: 1px solid #2a2a3d !important;
  border-radius: 9px !important; cursor: pointer;
}
.px-picker .px-field-btn { justify-content: flex-end !important; }
.px-picker .px-field-btn .btn {
  height: 40px !important; padding: 0 20px !important; white-space: nowrap !important;
}
#proxyType { min-width: 250px !important; }
#proxyCountry { min-width: 210px !important; }
#proxyDays { min-width: 132px !important; }

/* 3. ГРАФИК — компактный, аккуратный, без «мелких букв по центру» */
.dash-chart-card { padding: 16px 18px !important; }
.dash-chart-card h3 { font-size: 14px !important; margin: 0 0 4px 0 !important; }
.dash-chart-card .muted { font-size: 12px !important; }
svg#chart.chart { height: 180px !important; max-height: 180px !important; }
#chart text { font-size: 11px !important; }


/* ═════════ ПЛИТКИ ДАШБОРДА (20.10.2026) ═════════ */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.dstat {
  background: #12121a; border: 1px solid #23233a; border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.dstat-l { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #8b8ba7; font-weight: 600; }
.dstat-v { font-size: 24px; font-weight: 700; color: #f0f0f8; line-height: 1.15; font-variant-numeric: tabular-nums; word-break: break-word; }
.dstat-s { font-size: 12px; color: #7a7a96; }

/* ФИНАЛЬНЫЙ фикс шапки 20.10 */
header.hd .hd-in, .hd-in { min-height: 68px !important; height: 68px !important; padding: 0 !important; }

}
/* ═════ ФИНАЛЬНЫЙ ФИКС ШАПКИ — в самом конце файла, без @media (20.10.2026) ═════ */
header.hd > .wrap.hd-in,
header.hd .hd-in,
.hd-in {
  min-height: 68px !important;
  height: 68px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  max-width: 1120px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
header.hd .hd-actions { margin-left: auto !important; display: flex !important; align-items: center !important; }
header.hd .acct-btn { margin: 0 !important; }

/* выбор прокси — строго в строку */
.px-picker {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 14px !important;
}
.px-picker .px-field { display: flex !important; flex-direction: column !important; flex: 0 0 auto !important; }
.px-picker .px-lbl {
  display: block !important; height: auto !important; min-height: 14px !important;
  font-size: 10px !important; line-height: 14px !important; margin: 0 0 6px 2px !important;
  text-transform: uppercase !important; color: #8b8ba7 !important; font-weight: 600 !important;
  overflow: visible !important; white-space: nowrap !important; opacity: 1 !important;
}
.px-picker select { height: 40px !important; }
/* ═════ ФИКСЫ 20.10 (сессия 2): меню, отступ плиток, страны ═════ */

/* 1. МЕНЮ АККАУНТА: родитель .acct-wrap имеет position: static → меню
      позиционировалось от body и уезжало за правый край (right:1265 при btn 1193).
      Делаем родителя relative — меню встанет ПОД кнопкой. */
.hd-actions .acct-wrap,
.acct-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}
#acctMenu.acct-menu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 10px) !important;
  margin: 0 !important;
  min-width: 200px !important;
  max-width: calc(100vw - 24px) !important;
  transform: none !important;
}

/* 2. ПЛИТКИ: отступ сверху от предыдущего блока */
.dash-stats,
.dash-stats.reveal,
.dash-stats.reveal.is-in {
  margin-top: 26px !important;
  margin-bottom: 22px !important;
}

/* 3. ВЫБОР ПРОКСИ: держим в строке, подписи не срезаются */
.px-picker { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-end !important; gap: 14px !important; }
.px-picker .px-lbl { min-height: 14px !important; height: auto !important; overflow: visible !important; }
/* ═════ ФИКС: меню аккаунта было раскрыто по умолчанию (20.10.2026) ═════
   ПРИЧИНА: мой CSS задал #acctMenu.acct-menu { display: block !important },
   а это ПЕРЕБИВАЕТ атрибут hidden (у hidden браузерное display:none, но
   !important в авторе сильнее). Поэтому меню висело открытым всегда.

   РЕШЕНИЕ: явное правило [hidden] { display: none !important } — с большей
   специфичностью, чем общий display:block. */
#acctMenu.acct-menu[hidden],
#acctMenu[hidden],
.acct-menu[hidden] {
  display: none !important;
}
#acctMenu.acct-menu:not([hidden]) {
  display: block !important;
}

/* то же для меню экспорта и календаря (у них та же ловушка) */
#expMenu.exp-menu[hidden],
#expMenu[hidden],
.exp-menu[hidden],
#sbPick[hidden],
.sbp[hidden] {
  display: none !important;
}
#expMenu.exp-menu:not([hidden]),
#sbPick.sbp:not([hidden]) {
  display: block !important;
}
/* ═════ ФИКС: кнопка Set new password была за пределами экрана (20.10.2026) ═════
   ПРИЧИНА: модалка Profile выросла (email + подписка + пароль), .modal-card получил
   max-height:519px и overflow:auto, но НЕ был сcentreрован по вертикали —
   кнопка оказалась на top:623 при высоте окна 577 → недоступна без прокрутки.
   Хозяин нажимал «Set new password» и «ничего не менялось» — кнопки просто не было видно.

   РЕШЕНИЕ: карточка прижата к верху, ограничена по высоте, ВНУТРИ прокрутка;
   поля компактнее; кнопка всегда доступна скроллом. Плюс sticky-футер с кнопкой. */
#modalProfile { align-items: flex-start !important; padding: 24px 16px !important; }
#modalProfile .modal-card {
  max-height: calc(100vh - 48px) !important;
  height: auto !important;
  overflow-y: auto !important;
  margin: 0 auto !important;
  padding: 24px 22px 22px !important;
}
#modalProfile .field { margin-bottom: 10px !important; }
#modalProfile input[type="email"],
#modalProfile input[type="password"] { height: 38px !important; }
#modalProfile .chk-row { margin-bottom: 14px !important; }
#modalProfile h3[data-i18n="prof.pw"] { margin: 14px 0 10px !important; padding-top: 14px !important; }
#modalProfile #btnSetPassword,
#modalProfile #btnChangeEmail { position: sticky; bottom: 0; }


/* ═════ СООБЩЕНИЯ ПРОФИЛЯ — всегда видимы (20.10.2026) ═════ */
#profMsg.prof-msg {
  display: none;
  font-size: 13px; line-height: 1.45;
  margin-top: 12px; padding: 9px 12px; border-radius: 9px;
  word-break: break-word;
}
#profMsg.prof-msg:not([style*="display:none"]) { display: block; }


/* ═════════ МОБИЛЬНАЯ ВЕРСИЯ (20.10.2026) ═════════ */
@media (max-width: 880px) {
  /* пилюли-навигация скрываем — они обрезались и требовали скролла */
  header.hd .nav-pills { display: none !important; }
  /* бургер уезжает ВПРАВО */
  header.hd .hd-actions { margin-left: auto !important; }
  header.hd .hd-in { min-height: 60px !important; height: 60px !important; gap: 10px !important; }
  header.hd .logo-text { font-size: 17px; }

  /* меню аккаунта = полноэкранная панель под шапкой */
  #acctMenu.acct-menu {
    position: fixed !important;
    left: 12px !important; right: 12px !important;
    top: 70px !important;
    width: auto !important; max-width: none !important;
    max-height: calc(100vh - 86px) !important;
    overflow-y: auto !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }
  #acctMenu button.acct-item {
    min-height: 46px !important; font-size: 15px !important;
    padding: 12px 14px !important;
  }
  .mob-nav-block { display: block !important; }
  .mob-divider {
    height: 1px; background: #22223380; margin: 6px 4px;
  }
}

/* на десктопе блок мобильных ссылок не нужен */
@media (min-width: 881px) {
  .mob-nav-block { display: none !important; }
}
/* ═════ ФИКС ВЫРАВНИВАНИЯ ШАПКИ (20.10.2026, замечание хозяина) ═════
   ПРОБЛЕМА: шапка имела .wrap { padding: 0 }, а контент .wrap { padding: 0 24px }.
   Итог: логотип на left:73, а «Hello!» на left:97 — шапка уезжала влево на 24px,
   бургер вправо на те же 24px (right:1193 vs карточки right:1169).

   РЕШЕНИЕ: шапке ТОТ ЖЕ внутренний padding, что у контента — тогда лого и бургер
   встают ровно по краям карточек. */
header.hd .wrap.hd-in,
header.hd .hd-in {
  padding: 0 24px !important;
  max-width: 1120px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* на мобильных тот же padding, что у контента (18px) */
@media (max-width: 880px) {
  header.hd .wrap.hd-in,
  header.hd .hd-in {
    padding: 0 18px !important;
    min-height: 60px !important;
    height: 60px !important;
  }
}
