@font-face {
  font-family: 'Handjet';
  src: url('/static/woff2/HandjetCircleDouble-Semibold.woff2') format('woff2');
  /* Single physical weight (Semibold) mapped across the full range so any
     font-weight (400–900) resolves to Handjet instead of falling back to a
     system font. The browser synthesises the visual weight. */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Force dark background in native fullscreen mode */
:fullscreen, :-webkit-full-screen {
  background: #000000 !important;
  background-color: #000000 !important;
}

*::-webkit-scrollbar {
  display: none;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: #8f8f8f transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  display: block;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #8f8f8f;
  border-radius: 0;
  border: none;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #8f8f8f;
}

:root {
  /* ── Поверхности (фоны) ────────────────────────────── */
  --surface-ground: #202020;   /* фон страницы            */
  --surface:        #262626;   /* карточки, модалки, панели */
  --surface-input:  #181a1b;   /* поля ввода              */
  --surface-raised: #151515;   /* шапки панелей           */

  /* ── Текст ─────────────────────────────────────────── */
  --ink:            #ebebeb;    /* основной                */
  --ink-2:          #989898;    /* приглушённый            */
  --ink-3:          #828282;    /* описания, подписи полей */
  --ink-4:          #696969;    /* статистика, самый тихий */
  --ink-translucent: #ffffff80; /* полупрозрачный белый    */

  /* ── Акцент и статусы ──────────────────────────────── */
  --brand:          #789d2a;    /* фирменный зелёный       */
  --danger:         #ef9282;    /* ошибки / опасные действия */
  --danger-strong:  #ed2b3b;    /* критический статус: блокировка */
  --success:        #789d2a;    /* успех (напр. разбан)    */
  --info:           #3fa6ff;    /* ссылки / инфо           */

  /* ── Границы, радиусы, слои ────────────────────────── */
  --line:           rgba(255, 255, 255, 0.1);  /* базовая граница */
  --line-strong:    #ffffff33;  /* заметная граница карточек */
  --modal-border:   1px solid var(--line);  /* рамка модалки  */
  --radius:         0.375rem;   /* обычный радиус          */
  --radius-lg:      16px;       /* модалки                 */
  --overlay:        rgba(0, 0, 0, 0.75);  /* затемнение под модалкой */

  /* ── Кнопки ────────────────────────────────────────── */
  --btn-color:      #ffffff;
  --btn-font-size:  1rem;
  --btn-padding-x:  2em;
  --btn-padding-y:  0.7em;
  --btn-radius:     0.5rem;
  --btn-weight:     600;

  /* ── Иконки (4-сетка) ──────────────────────────────── */
  --icon-xs:  12px;
  --icon-sm:  16px;
  --icon-md:  20px;
  --icon-lg:  24px;
  --icon-xl:  28px;
  --icon-2xl: 32px;
}

@media (min-width: 1920px) {
  :root {
    font-size: 18px;
  }
}

@media (min-width: 2560px) {
  :root {
    font-size: 20px;
  }
}

@media (min-width: 3840px) {
  :root {
    font-size: 24px;
  }
}

body,
html {
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0;
  width: 100%
}

body {
  background: var(--surface-ground);
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  font-family: 'Handjet', Arial, sans-serif;
  padding-top: 5rem;
}




button,
.btn,
.custom-file-label {
  background: var(--brand);
  border-radius: var(--btn-radius);
  border: none;
  color: var(--btn-color);
  cursor: pointer;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-weight);
  margin: 0;
  outline: none;
  overflow: hidden;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  position: relative;
  text-align: center;
  transition: filter 0.12s ease, transform 0.08s ease
}

button,
input,
select,
textarea {
  font-family: inherit
}

input[type=file] {
  background: none;
  border: none;
  color: #e0e6ed;
  font-size: 1em;
  height: 0.00625rem;
  margin-bottom: 1.2em;
  opacity: 0;
  outline: none;
  position: absolute;
  width: 0.00625rem;
  z-index: -1
}

#feed-block {
  margin-top: 3rem
}

#feed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  min-height: 7.5rem;
  width: 100%
}

#file-chosen {
  color: var(--info);
  font-size: 0.98em;
  margin-left: 1em;
  vertical-align: middle
}

#modal-cancel-btn {
  background: #222;
  border: 0.0625rem solid #3fa6ff33
}

#modal-cancel-btn,
#modal-upload-btn {
  background-position: 50% 50%;
  background-size: 120% 120%;
  border-radius: 6px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 0;
  outline: none;
  overflow: hidden;
  padding: 0.7em 2em;
  position: relative;
  text-align: center;
  transition: background-position 0.3s cubic-bezier(.4, 0, .2, 1)
}

#modal-cancel-btn:hover {
  background: #333;
  color: #fff
}

#modal-preview-block img,
#modal-preview-block video {
  background: #000;
  border-radius: 0.75rem;
  height: auto !important;
  max-height: 60vh !important;
  max-width: 100% !important;
  object-fit: contain !important;
  overflow: hidden !important;
  width: auto !important
}

#modal-preview-block video,
.alb-slide video{
  height: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  overflow: hidden !important;
  width: auto !important
}











.centered-form {
  align-items: center;
  animation: slide-fadein 1.1s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 1
}

.centered-form h2 {
  color: #e0e6ed;
  font-weight: 500;
  letter-spacing: 0.0625rem;
  margin-bottom: 1.5em
}

.centered-form::after {
  bottom: 32px;
  content: '';
  display: none !important;
  filter: blur(32px);
  height: 120px;
  left: 50%;
  opacity: 0.95;
  pointer-events: none;
  position: absolute;
  top: auto;
  transform: translateX(-50%);
  width: 380px;
  z-index: -1
}

.close {
  color: #3fa6ff;
  cursor: pointer;
  font-size: 2em;
  font-weight: 700;
  position: absolute;
  right: 22px;
  top: 18px;
  transition: color 0.2s;
  z-index: 10
}

.close:hover {
  color: #fff
}

.drop-icon {
  display: block;
  font-size: 2.5em;
  margin-bottom: 18px;
  user-select: none
}



.drop-zone {
  align-items: center;
  animation: drop-fadein 1.2s cubic-bezier(.4, 0, .2, 1);
  background: rgba(10, 20, 40, 0.25);
  border-radius: 16px;
  border: 1px dashed #3fa6ff55;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto 1.125rem auto;
  max-width: 39.375rem;
  min-height: 13.125rem;
  min-width: min(31.875rem, 90vw);
  position: relative;
  transition: border-color 0.2s, background 0.2s
}


































.modal {
  animation: modal-fadein 0.3s cubic-bezier(.4, 0, .2, 1);
  background: var(--overlay);
  backdrop-filter: blur(8px);
  display: none;
  height: 100vh;
  left: 0;
  overflow: auto;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 1000
}

.modal-content {
  align-items: center;
  animation: modal-content-fadein 0.4s cubic-bezier(.4, 0, .2, 1);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--modal-border);
  display: flex;
  flex-direction: column;
  margin: 7vh auto;
  max-width: min(700px, 90vw);
  min-width: min(320px, 90vw);
  padding: 3rem 3rem 2.25rem 3rem;
  position: relative
}





.result {
  margin-top: 1.2em;
  word-break: break-all
}

.result a {
  color: #3fa6ff;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s
}

.result a:hover {
  text-decoration: underline
}

.support-modal {
  align-items: center;
  backdrop-filter: blur(8px);
  background: var(--overlay);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000
}

.support-modal-content {
  animation: modalFadeIn 0.3s ease;
  background: var(--surface) !important;
  border: var(--modal-border) !important;
  border-radius: var(--radius-lg) !important;
  max-width: 520px !important;
  min-width: 320px !important;
  width: calc(100% - 32px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.support-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.support-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.support-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.support-modal-close svg {
  display: block;
}

.support-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  width: 100%;
}

.support-notice {
  position: relative;
  padding: 24px 32px 8px 50px;
  box-sizing: border-box;
}

.support-notice-line {
  position: absolute;
  left: 32px;
  top: 24px;
  width: 2px;
  height: 48px;
  background: var(--brand, #789d2a);
}

.support-notice-text {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.support-modal-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 32px 16px;
  box-sizing: border-box;
}

.support-card-new {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 21px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}

.support-card-new:hover {
  transform: translateY(-1px);
}

.support-card-tg {
  background-color: #1a2332;
  border-color: rgba(0, 136, 204, 0.3);
}

.support-card-tg:hover {
  background-color: #1e2a3d;
  border-color: rgba(0, 136, 204, 0.5);
}

.support-card-tg .support-card-icon-container {
  background-color: rgba(0, 136, 204, 0.15);
  color: #0088cc;
}

.support-card-tg .support-card-subtitle {
  color: rgba(0, 136, 204, 0.7);
}

.support-card-chat {
  background-color: #1a2010;
  border-color: rgba(120, 157, 42, 0.3);
}

.support-card-chat:hover {
  background-color: #212814;
  border-color: rgba(120, 157, 42, 0.5);
}

.support-card-chat .support-card-icon-container {
  background-color: rgba(120, 157, 42, 0.15);
  color: var(--brand, #789d2a);
}

.support-card-chat .support-card-subtitle {
  color: rgba(120, 157, 42, 0.7);
}

.support-card-icon-container {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-card-icon-container img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.support-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.support-card-title {
  color: #e0e0e0;
  font-size: 17px;
  font-weight: 600;
  line-height: 23px;
  margin-bottom: 2px;
}

.support-card-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
}

.support-modal-footer-new {
  padding: 0 32px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.support-link-new {
  color: var(--brand, #789d2a);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.support-link-new:hover {
  text-decoration: underline;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.support-modal.show {
  display: flex
}

.settings-modal {
  align-items: center;
  backdrop-filter: blur(8px);
  background: var(--overlay);
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10001
}

.settings-modal.show {
  display: flex
}

.settings-modal-content {
  animation: modalSlideIn 0.3s ease;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--modal-border);
  max-width: 440px;
  padding: 28px 32px;
  position: relative;
  width: 90%
}

.settings-modal-close {
  background: none;
  border: none;
  color: #989898;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 4px;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: color 0.2s ease
}

.settings-modal-close:hover {
  color: #fff
}

.settings-modal-title {
  color: #ebebeb;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff11
}

.settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.settings-row-label {
  color: #e0e0e0;
  font-size: 18px;
  font-weight: 600
}

.settings-row-desc {
  color: #777;
  font-size: 15px
}

.settings-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0
}

.settings-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #3a3a3a;
  border-radius: 24px;
  transition: background 0.2s ease
}

.settings-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #aaa;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease
}

.settings-toggle input:checked + .settings-toggle-slider {
  background: #c0392b
}

.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(20px);
  background: #fff
}

.settings-consent-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 10px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.4
}

.settings-consent-notice svg {
  flex-shrink: 0;
  margin-top: 1px
}

.settings-consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end
}

.settings-consent-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  background: #c0392b;
  color: #fff
}

.settings-consent-btn:hover {
  background: #e74c3c
}

.settings-consent-cancel {
  background: #3a3a3a;
  color: #ccc
}

.settings-consent-cancel:hover {
  background: #4a4a4a
}

.dropdown-item.settings-btn {
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left
}

.dropdown-item.settings-btn svg,
.dropdown-item.settings-btn img {
  filter: brightness(0) invert(1);
  width: var(--icon-md);
  height: var(--icon-md)
}


@keyframes bgfade {
  0% {
    background: #102347
  }

  100% {
    background: #050914
  }
}

@keyframes body-fadein {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes card-fadein {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes drop-fadein {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes modal-content-fadein {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes modal-fadein {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@keyframes slide-fadein {
  from {
    opacity: 0;
    transform: translateY(40px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media (max-width: 600px) {

  #modal-preview-block img,
  #modal-preview-block video {
    height: auto !important;
    max-height: 40vh !important;
    max-width: 90vw !important;
    object-fit: contain !important;
    overflow: hidden !important;
    width: auto !important
  }

  .centered-form {
    padding: 1.2em 0.5em;
    width: 95vw
  }

  .centered-form::after {
    bottom: 12px;
    height: 80px;
    width: 95vw
  }

  .drop-zone {
    max-width: 98vw;
    min-height: 120px;
    min-width: 0;
    width: 95vw
  }

  

  

  .header {
    font-size: 1em;
    padding: 12px 10px
  }

  .modal-content {
    max-width: 98vw;
    min-width: 0;
    padding: 18px 4vw 18px 4vw
  }
}

/* Стили .notify живут в static/css/notify.css (подключается из notify.js). */

html, body {
  text-rendering: geometricPrecision;
  font-variation-settings: normal;
  -webkit-text-stroke: 0;
}

.badge-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  vertical-align: middle;
}

.profile-name-row {
  display: flex;
  align-items: center;
  line-height: 1;
}
.user-badge-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.user-badge-icon-profile {
  width: 0.8em;
  height: 0.8em;
}
/* В строке ника бейджи, ник и соц-иконки — все flex-центрированы и одной
   высоты (24px), чтобы ничего не «вылезало» за profile-name-row. */
.profile-name-row .user-badge-icon-profile {
  width: var(--icon-lg);
  height: var(--icon-lg);
  border-radius: 6px;
  display: block;
}
.mobile-only .profile-name-row .user-badge-icon-profile {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

@media (max-width: 1024px) and (min-width: 481px) {
  body {
    padding-top: 4rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 4rem;
  }

}

html.no-scroll, body.no-scroll, body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}