*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  background: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background-color: #FB0;
  border-radius: 2px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #FB0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #FB0 transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

.main-wrapper {
  padding: 32px;
  padding-top: calc(32px + 90px);
  padding-left: calc(32px + 240px);
  min-height: 100dvh;
  box-sizing: border-box;
  transition: padding .15s ease;
  overflow-x: hidden;
}

.main-wrapper.sidebar-collapsed {
  margin-left: 60px;
  padding-left: 32px
}

/* Header */
.auth-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 90px;
  background: #fff;
  border-bottom: 1px solid #E6EDF1;
  z-index: 1030;
  left: 0;
  right: 0;
  top: 0;
}

.auth-header__beta {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  color: #8AA3B9;
}

/*----------------------------------------------------------------------*/

/* ===== Mini top banner above header ===== */
.top-mini-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #FFFBF1;
  border-bottom: 1px solid #E6EDF1;
  z-index: 1031;
  display: flex;
  align-items: center;
}

.top-mini-banner__link {
  width: 100%;
  height: 12px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0E2B44;
  font-size: 13px;
  line-height: 1;
}

.top-mini-banner__link:hover {
  background: #F3F6F8;
}

.top-mini-banner__ico,
.top-mini-banner__arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.top-mini-banner__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-header {
  top: 28px;
}

.main-wrapper {
  padding-top: calc(32px + 90px + 28px);
}

/* 3) sidebar також опускаємо */
.sidebar {
  top: calc(90px + 28px);
}

/* 4) якщо хочеш щоб тости не налазили на банер */
#toast-container {
  top: calc(100px + 28px);
}

/* Mobile: менший горизонтальний паддінг */
@media (max-width: 575.98px) {
  .top-mini-banner__link {
    padding: 0 16px;
  }
}

/*----------------------------------------------------------------------*/
.btn-help-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: #F8FAFB;
  border: 1px solid #E6EDF1;
  border-radius: 12px;

  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #0E2B44;

  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* hover */
.btn-help-call:hover {
  border-radius: 12px;
  border: 1px solid #94A2AF;
  background: #F8FAFB;
  color: #0E2F4B;
}

/* active */
.btn-help-call:active {
  background: #EEF3F6;
}

/* focus (keyboard) */
.btn-help-call:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 43, 68, 0.15);
}

.help-call-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.btn-help-call__text {
  line-height: 1;
}

.btn-help-call--floating {
  position: fixed;
  right: 24px;
  bottom: 45px;
  z-index: 1000;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  background: #F8FAFB;
  border: 1px solid #E6EDF1;
  border-radius: 12px;
  color: #1E1E1E;
  text-decoration: none;
  font-weight: 500;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-help-call--floating:hover {
  border: 1px solid #94A2AF;
  background: #F8FAFB;
  color: #0E2F4B;
  transform: translateY(-2px);
}

.btn-help-call--floating:active {
  background: #EEF3F6;
  transform: translateY(0);
}

body {
  padding-bottom: 90px;
}

@media (max-width: 785px) {
  .btn-help-call--floating {
    bottom: 65px;
  }
}

@media (max-width: 597px) {
  .btn-help-call--floating {
    bottom: 80px;
  }
}

@media (max-width: 576px) {
  .btn-help-call--floating {
    right: 16px;
    bottom: 86px;
    padding: 12px;
  }

  .btn-help-call__text {
    display: none;
  }
}

@media (max-width: 322px) {
  .btn-help-call--floating {
    bottom: 97px;
  }
}

.auth-header__inner {
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-header__logo img {
  width: 156px;
  height: 40px;
}

.auth-header__right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-header__right,
.right-menu {
  overflow: visible;
  position: relative;
  z-index: 5100;
}

.header-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #E6EDF1;
  border-radius: 12px;
  background: #F8FBFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.header-burger span {
  width: 18px;
  height: 2px;
  background: #0F2A3D;
  opacity: .7;
  border-radius: 2px;
}

.right-menu {
  list-style: none;
  margin: 5px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.change-locale {
  position: relative;
  display: inline-block;
  min-width: 55px;
  z-index: 6000;
}

.locale-current::after {
  content: none !important;
}

.locale-current {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 0px 12px 12px;
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: #0f2a3d;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  outline: 0;
}

.locale-current:hover {
  background: #F8FAFB;
}

.locale-current__chevron {
  margin-left: auto;
  width: 24px;
  height: 24px;
  flex: 0 0 16px;
  display: inline-block;
  transform: rotate(0);
  transform-origin: center;
  transition: transform .15s ease;
  pointer-events: none;
}

.change-locale.open .locale-current__chevron {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin-top: -5px;
  padding: 4px 0;
  list-style: none;
  min-width: 64px;
  background: #fff;
  border: 1px solid #d6dce5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 42, 61, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 7000;
}

.sub-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  text-transform: uppercase;
  color: #0f2a3d;
}

.sub-menu a:hover {
  background: #F8FAFB;
}

.sub-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 12px;
}

.sub-menu__item.is-current .sub-menu__link {
  cursor: none;
  pointer-events: none;
  opacity: 1;
}

.sub-menu__check {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sub-menu__check img {
  width: 20px;
  height: 20px;
  display: block;
}

.sub-menu__label {
  font-size: 14px;
}

.change-locale .locale-current[aria-expanded="true"]+.sub-menu,
.change-locale.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.change-locale .locale-current[aria-expanded="true"]::after,
.change-locale.open .locale-current::after,
.change-locale.open>span::after {
  transform: translateY(-40%) rotate(-135deg);
}

.v-sep {
  width: 1px;
  height: 24px;
  background: #b4b7b9;
}

.lk-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 16px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  color: #ffff;
  border-radius: 8px;
  border: 1px solid #0E2F4B;
  background: #0E2F4B;

  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s ease;
}

.lk-login-btn:hover {
  border-radius: 8px;
  color: #ffff;
  border: 1px solid #0E2F4B;
  background: #00498B;
}

.lk-login-btn:active {
  background: #EEF5FF;
}

/* User card */
.user-menu {
  display: flex;
  width: 260px;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.user-menu:hover {
  background: #F8FAFB;
}

.user-menu-burger {
  display: flex;
  width: 239px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.user-menu__avatar-fiz {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #90E4FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu__avatar-yr {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #FFB46F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu__avatar-fop {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #FFD465;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu__avatar-burger-fiz {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #90E4FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu__avatar-burger-yr {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #FFB46F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu__avatar-burger-fop {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #FFD465;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-burger .user-menu__info-burger,
.user-menu-burger .user-menu_info-burger {
  flex: 1 1 auto;
  min-width: 0;
}

.user-menu-burger .user-menu__name-burger,
.user-menu-burger .user-menu_name-burger {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-menu__avatar .bi {
  font-size: 20px;
  color: #0F2A3D;
}

.user-menu__avatar-burger .bi {
  font-size: 20px;
  color: #0F2A3D;
}

.user-menu__info {
  flex: 1 1 auto;
  min-width: 0;
  margin: 5px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.user-menu__info-burger {
  min-width: 0;
  line-height: 1.2;
  text-align: left;
  width: 130px;
}

.user-menu__type {
  font-size: 12px;
  color: #0F2A3D;
  opacity: .8;
}

.user-menu__type-burger {
  font-size: 12px;
  color: #0F2A3D;
  opacity: .8;
}

.user-menu__name {
  font-size: 14px;
  color: #0F2A3D;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__name-burger {
  font-size: 14px;
  color: #0F2A3D;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__chevron {
  display: inline-block;
  width: 24px;
  height: 24px;
  transform: rotate(0);
  transform-origin: center;
  transition: transform .15s ease;
}

.user-dropdown.open .user-menu__chevron {
  transform: rotate(180deg);
}

.user-menu__avatar-fiz,
.user-menu__avatar-yr,
.user-menu__avatar-fop,
.user-menu__avatar-burger-fiz,
.user-menu__avatar-burger-yr,
.user-menu__avatar-burger-fop {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  overflow: hidden;
}

.user-menu__avatar-fiz img,
.user-menu__avatar-yr img,
.user-menu__avatar-fop img,
.user-menu__avatar-burger-fiz img,
.user-menu__avatar-burger-yr img,
.user-menu__avatar-burger-fop img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
}

.user-dropdown {
  position: relative;
  z-index: 6000;
}

.user-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin-top: -5px;
  padding: 8px 8px 10px;
  list-style: none;
  min-width: 260px;
  background: #fff;
  border: 1px solid #d6dce5;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 42, 61, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
}

.user-submenu-head .head-text {
  display: grid;
  line-height: 1.1;
}

.user-submenu-head .head-type {
  font-size: 12px;
  color: #6B7785;
}

.user-submenu-head .head-name {
  font-size: 14px;
  color: #0E2B44;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-submenu-head .head-chevron {
  margin-left: auto;
  color: #0E2B44;
}

.user-submenu .tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.user-submenu .user-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #0E2B44;
  font-size: 14px;
}

.user-submenu .user-link:hover {
  background: #F8FBFF;
}

.user-link:hover {
  background: #F8FBFF;
}

.user-link img {
  display: block;
}

.user-submenu .sep {
  height: 1px;
  margin: 10px 4px;
  background: #E9EDF3;
}

.user-link.logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: 14px;
  text-decoration: none;
  line-height: 0%;
  color: #F04438;
}

.user-link.logout .logout-ic {
  width: 24px;
  height: 24px;
}

.user-link[aria-current="page"],
.user-link.is-active {
  background: #FFF6E6;
  border: 1px solid #FFE3B3;
}

.user-submenu li a {
  display: block;
  padding: 5px 7px;
  color: #0f2a3d;
  font-size: 14px;
}

.user-submenu li a:hover {
  background: #F8FBFF;
}

.user-submenu .sep {
  height: 1px;
  margin: 6px 0;
  background: #e9ecef;
}

.user-dropdown.open .user-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Sidebar + Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 1045;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  left: 0;
  width: 240px;
  /* top: 90px; */
  top: 117px;
  bottom: 0;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  transition: width .15s ease, transform .15s ease;
  z-index: 1049 !important;
  height: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  scrollbar-gutter: auto;
}

.sidebar::-webkit-scrollbar-track {
  margin: 0;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-submenu {
  height: 0 !important;
  opacity: 0;
  visibility: hidden;
  padding-block: 0;
  pointer-events: none;
  margin-left: 0;
}

/* WebKit */
.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: #E9EDF3;
  border-radius: 8px;
  margin: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: linear-gradient(90deg, #FFFFFF 32%, #FFC107 32%);
  /* біла смуга + жовтий бар */
  border: 1px solid #FFD54A;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #FFFFFF 32%, #FFB300 32%);
}

.sidebar {
  scrollbar-width: thin;
}

.sb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #E9EDF3;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sbh-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0E2B44;
}

.sbh-logo img {
  width: 25px;
  height: 32px;
  display: block;
}

.sbh-locale {
  margin-left: auto;
  margin-bottom: 0;
}

.sbh-locale .locale-current {
  padding: 8px 28px 8px 12px;
}

.sbh-locale .sub-menu {
  right: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
  padding: 17px 14px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

.sidebar-item .has-sub {
  margin-bottom: 0;
}

.row-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

.sidebar.collapsed .row-link {
  justify-content: center;
  gap: 0;
  padding: 0;
  width: 100%;
}

.sidebar-nav__content .sidebar-item.link:last-of-type {
  margin-bottom: 0 !important;
}

.sidebar.collapsed .sidebar-nav {
  --sb-pad: 0;
  padding: 0;
}

.sidebar.collapsed .sidebar-item {
  justify-content: center;
  margin: 0;
  width: 100%;
  border-radius: 8px;
}

.sidebar-item:hover {
  background: #F8FAFB;
}

.sidebar-item.link {
  color: inherit;
  text-decoration: none;
}

.sidebar-nav__content .sidebar-item.link:last-of-type {
  margin-bottom: 72px;
}

.sidebar-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #FF5A66;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: #0E2F4B;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-ext {
  margin-left: auto;
}

.item-caret {
  margin-left: auto;
  flex: 0 0 24px;
  object-fit: contain;
  opacity: .8;
  transition: transform .15s ease, opacity .15s ease;
  border: none;
  background: none;
}

.item-caret img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.item-caret:hover {
  opacity: 1;
}

.has-sub[aria-expanded="true"] .item-caret {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  margin: 0 0 0px 36px;
  padding: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  opacity: 0;
  transition: height .15s ease, opacity .15s ease, padding .15s ease;
  will-change: height;
}

.sidebar-submenu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-block: 8px;
  margin-left: 0;
}

.sidebar-submenu.open li a {
  padding-left: 36px;
}

.submenu-link {
  display: flex;
  padding: 12px 12px 18px 0;
  font-size: 14px;
  color: #476176;
  justify-content: start;
  align-items: center;
}

.submenu-link:hover {
  background: #F8FAFB;
  color: #0E2B44;
}


.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .item-caret,
.sidebar.collapsed .item-ext {
  display: none;
}

.sidebar.collapsed .icon-badge {
  right: -8px;
}

.sidebar-toggle {
  left: 0;
  right: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 1030;
  margin-top: auto;
  position: sticky;
  bottom: 38px;
  background: #fff;
}

.sidebar-toggle:hover {
  background: #f8f9fa;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  min-height: 96%;
}

.sb-bottom {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #E9EDF3;
  padding: 8px 0 10px;
}

.sb-logout .sidebar-icon,
.sb-logout .sidebar-text {
  color: #F04438;
}

.sb-logout:hover {
  background: #FFF1F1;
}

.sb-logout .bi {
  font-size: 18px;
}

/* modal */
.modal-backdrop {
  z-index: 1050;
}

.modal {
  z-index: 1060;
}

.modal-open .auth-header,
.modal-open .sidebar,
.modal-open .footer {
  pointer-events: none;
}

.modal .fade .modal-dialog {
  transform: translateY(-16px);
  transition: transform .2s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

.confirm-modal .modal-content {
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(10, 34, 65, .18);
}

.confirm-modal .cm-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: start;
  border-bottom: 1px solid #EAEFF4;
}

.confirm-modal .cm-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cm-icon-box {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #F76F6F;
  background: #FEECEC;
}

.cm-text {
  padding-bottom: 24px;
}

.confirm-modal .cm-text {
  font-size: 18px;
  line-height: 1.35;
  color: #0E2F4B;
  font-weight: 600;
}

.confirm-modal .cm-btn-cancel {
  height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #F05A5A;
  color: #E63B3B;
  background: #fff;
}

.confirm-modal .cm-btn-cancel:hover {
  background: #FFF5F5;
}

.confirm-modal .cm-btn-ok {
  height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #FFC107;
  border: 1px solid #FFC107;
  color: #0E2F4B;
  font-weight: 600;
}

.confirm-modal .cm-btn-ok:hover {
  background: #FFB800;
  border-color: #FFB800;
}

#confirmModal {
  z-index: 6010 !important;
}

.confirm-open .auth-header,
.confirm-open .sidebar,
.confirm-open .footer,
.confirm-open footer,
.confirm-open .site-footer {
  z-index: 500 !important;
}

body.modal-open .auth-header,
body.modal-open .sidebar,
body.modal-open .footer,
body.modal-open footer,
body.modal-open .site-footer {
  z-index: 1 !important;
  pointer-events: none;
}

.phone-verify-modal .modal-dialog {
  max-width: 500px;
}


/* =====  animation (paymodal + confirmmodal) ===== */

.paymodal[aria-hidden="false"],
.confirmmodal[aria-hidden="true"]~.confirmmodal[aria-hidden="false"],
.confirmmodal[aria-hidden="false"] {
  animation: lkmodal-fade-in .15s ease-out;
}

.paymodal[aria-hidden="false"] .paymodal__dialog,
.confirmmodal[aria-hidden="false"] .confirmmodal__dialog {
  animation: lkmodal-slide-down .25s ease-out;
}

.paymodal[aria-hidden="false"] .paymodal__backdrop,
.confirmmodal[aria-hidden="false"] .confirmmodal__backdrop {
  animation: lkmodal-backdrop-fade .15s ease-out;
}

.shipmodal {
  animation: shipmodal-fade-in .15s ease-out;
}

.shipmodal__dialog {
  animation: shipmodal-slide-down .15s ease-out;
}

/* ===== Toasts ===== */
#toast-container {
  position: fixed;
  top: 100px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1201;
  pointer-events: none
}

#toast-container>* {
  pointer-events: auto
}

.u-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 280px;
  padding: 12px 12px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(14, 43, 68, .15);
  background: #E8F2FF;
  color: #0E2B44;
  opacity: 0;
  flex-wrap: wrap;
  transform: translateY(-12px);
  transition: transform .15s ease, opacity .15s ease;
  width: fit-content;
  max-width: min(720px, calc(100vw - 32px));
  white-space: normal;
  overflow: visible;
}

.u-toast__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px
}

.u-toast__body {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.u-toast__title img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px
}

.u-toast.is-show {
  opacity: 1;
  transform: translateY(0)
}

.u-toast.is-hide {
  opacity: 0;
  transform: translateX(40px)
}

.u-toast.is-general {
  background: #E8F2FF;
  border-color: #CFE1FF
}

.u-toast.is-attention {
  background: #FFF4EB;
  border-color: #FFD7B3
}

.u-toast.is-warning {
  background: #FEECEC;
  border-color: #F76F6F;
}

.u-toast.is-success {
  background: #EFFBEF;
  border-color: #30B52D
}

.u-toast.is-loading {
  background: #FFFFFF;
  border-color: #E5EAF0
}

.u-toast__ico {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center
}

.u-toast__ico img {
  width: 20px;
  height: 20px;
  display: block
}

.u-toast__list {
  margin: 6px 0 0 18px;
  padding: 0;
  list-style: disc
}

.u-toast__list li {
  margin: 2px 0
}

.lock-alert .u-toast__body {
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.lock-alert {
  padding: 14px 16px;
  border-radius: 12px;
  min-width: 280px;
  max-width: 420px;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  animation: fadeIn .15s ease-out;
}

.lock-alert.toast-success {
  border-radius: 6px;
  border: 1px solid var(--Palette-Green-600, #30B52D);
  background: var(--Palette-Green-50_bg, #EFFBEF);
}

.lock-alert.toast-warn {
  background: #FFF4EB;
  border: 1px solid #FFB167;
  color: #0E2F4B;
}

.lock-alert.toast-success .t-ic {
  font-size: 14px;
  line-height: 1;
  color: #2FAA4B
}

.lock-alert.toast-error {
  background: #FFF6F6;
  border: 1px solid #FF7C7C;
  color: #0E2F4B;
}

.lock-alert.hide {
  opacity: 0;
  transform: translateX(100%);
  transition: all .15s ease
}

/* CUSTOM SELECT */
.select,
.c-select {
  position: relative;
}

.select select {
  width: 100%;
  min-width: 0;
}

.c-select:focus-within .c-select__btn {
  border-color: #CFE1FF;
  background: #fff;
}

.c-select__native,
.shipselect__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.c-select__btn,
.shipselect__btn {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  color: #0E2B44;
  cursor: pointer;
}

.c-select__btn:hover,
.shipselect__btn:hover {
  background: #fff;
}

.c-select__value,
.shipselect__value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.c-select__chevron,
.shipselect__chevron {
  width: 24px;
  height: 24px;
  transition: transform .2s ease;
  opacity: .8;
  pointer-events: none;
}

.c-select[aria-open="true"] .c-select__chevron,
.shipselect__btn[aria-expanded="true"] .shipselect__chevron {
  transform: rotate(180deg);
}

.c-select__list,
.shipselect__list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(14, 43, 68, .12);
  max-height: 240px;
  overflow: auto;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 2100;
}

.c-select__list-top {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(14, 43, 68, .12);
  max-height: 240px;
  overflow: auto;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 2100;
}

.c-select__list-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(14, 43, 68, .12);
  max-height: 240px;
  overflow: auto;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 2100;
}

.c-select[aria-open="true"] .c-select__list,
.c-select[aria-open="true"] .c-select__list-top,
.c-select[aria-open="true"] .c-select__list-bottom,
.shipselect[aria-open="true"] .shipselect__list {
  display: block;
}

.c-select__option,
.shipselect__option {
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1.2;
  color: #0E2B44;
  display: block;
  font-size: 14px;
}

.c-select__option[aria-selected="true"],
.shipselect__option.is-selected {
  background: #EEF5FF;
}

.c-select__option:hover,
.c-select__option[aria-current="true"],
.shipselect__option:hover {
  background: #F6F8FA;
}

.c-select__list-top {
  display: none;
  position: absolute;
  z-index: 10;
}

.c-select.is-open .c-select__list-top,
.c-select[aria-open="true"] .c-select__list-top {
  display: block;
}

.c-input-select {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(14, 43, 68, .06);
  overflow: hidden;
  min-width: 260px;
  flex: 1 1 auto;
}

.c-input-select__input {
  flex: 1 1 auto;
  height: 100%;
  padding: 0 44px 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #0E2B44;
}

.c-input-select__input::placeholder {
  color: #9AA7B2;
}

.c-input-select__chevron {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #fff;
  cursor: default;
}

.c-input-select__chevron::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #E5EAF0;
}

.c-input-select__chevron img {
  width: 16px;
  height: 16px;
  opacity: .8;
}

.groupbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  height: 44px;
  align-items: center;
  display: flex;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #E5EAF0;
}

.btn--light {
  background: #fff;
  color: #E25555;
}

.btn--accent {
  background: #FFD200;
  color: #1E1E1E;
  border-color: #F2C700;
  box-shadow: 0 8px 24px rgba(14, 43, 68, .15);
}

.btn--accent:hover {
  background: #F2C700;
}

#controlsCreate .groupbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#controlsCreate .groupbar__actions .btn {
  min-width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.badge--warn {
  border: 1px solid #FFB167;
  background: #FFF4EB;
  color: #FF8614;
}

.badge--info {
  border: 1px solid #67B7FF;
  background: #EBF5FF;
  color: #0F8EFF;
}

.badge--success {
  border: 1px solid #30B52D;
  background: #EFFBEF;
  color: #279225;
}

.badge--danger {
  border: 1px solid #F76F6F;
  background: #FEECEC;
  color: #F31B1B;
}

.badge--loyalty {
  color: #791BF3;
  border-radius: 6px;
  border: 1px solid #A05EF7;
  background: #F4ECFE;
}

/* Footer */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 39px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: #fff;
  font-size: 12px;
  color: #7B8794;
  z-index: 1049;
  border-top: 1px solid #E6EDF1;
}

.footer span:first-child {
  font-weight: 700;
  margin-right: 10px;
}

/* Loader animation styles */
.preloader-wrapper {
  position: relative;
  top: 50%;
  left: 50%;
  width: 185px;
  height: 185px;
  z-index: 10;
  margin-left: -22.5px;
  margin-bottom: 45px;
  margin-top: 100px;
}

.preloader-green,
.preloader-orange,
.preloader-blue {
  display: none !important;
}

.preloader-red {
  position: relative;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  margin: 0;
}

.preloader-red::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #E9EEF5;
}

.preloader-red::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#F5C54C 0 25%, transparent 25% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  animation: preloader-rotate 1.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.page-preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.page-content--hidden {
  display: none;
}

.page-content--visible {
  display: block;
}

@media (max-width: 991.98px) {
  #pagePreloader {
    padding-left: 0 !important;
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.main-wrapper--reveal {
  animation: pageFadeIn 0.2s ease-out both;
}

/* KEYFRAMES */

@keyframes shipmodal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shipmodal-slide-down {
  from {
    transform: translateY(-25%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes lkmodal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes lkmodal-slide-down {
  from {
    transform: translateY(-20%);
    opacity: 0;
  }

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

@keyframes lkmodal-backdrop-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes preloader-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .preloader-red::after {
    animation-duration: 2.4s;
  }
}

/* RESPONSIVE: MAIN WRAPPER */

@media (max-width: 991.98px) {

  .main-wrapper,
  .main-wrapper.sidebar-collapsed {
    padding-left: 32px;
  }
}

@media (max-width: 575.98px) {
  .main-wrapper {
    padding: 20px;
    padding-top: calc(40px + 90px);
    padding-bottom: 50px;
  }
}

@media (max-width: 991.98px) {
  .header-burger {
    display: flex;
  }
}

@media (hover:hover) and (pointer:fine) {

  .change-locale:not(.open) .locale-current:hover .locale-current__chevron,
  .change-locale:not(.open) .locale-current:focus-visible .locale-current__chevron {
    transform: rotate(180deg);
  }
}

@media (any-hover:hover) and (pointer:fine) {

  .change-locale:hover .sub-menu,
  .change-locale:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (hover:hover) and (pointer:fine) {
  .user-menu:hover .user-menu__chevron {
    transform: rotate(180deg);
  }
}

.user-menu__chevron-burger {
  font-size: 14px;
  color: #0F2A3D;
}

@media (max-width: 992px) {

  .user-menu__name,
  .user-menu,
  .user-menu__type {
    display: none;
  }

  .auth-header__right {
    display: none;
  }
}

@media (min-width: 997px) {
  .user-menu-burger {
    display: none;
  }

  .user-menu__name-burger,
  .user-menu__type-burger,
  .user-menu__chevron-burger {
    display: block;
  }

  .user-menu__avatar-burger .bi-person-fill {
    width: 22px;
    height: 22px;
  }
}

@media (any-hover:hover) and (pointer:fine) {
  .user-dropdown:hover .user-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 992px) {
  .sb-header {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

@media (min-width: 992px) {
  .sidebar-nav__content {
    padding-bottom: 72px !important;
  }
}

@media (max-width: 991.98px) {
  .sidebar-nav__content {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 1630px) {
  .sidebar-item {
    padding: 17px 14px 16px 15px;
  }

  .sidebar-item.link.sb-logout {
    margin-bottom: 60px !important;
  }

  .sidebar-toggle {
    bottom: 30px;
  }
}

@media (min-width: 992px) {
  .sb-bottom {
    display: none;
  }
}

@media (max-width: 992px) {
  .footer {
    z-index: 1000;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: 240px;
    top: 0;
    bottom: 0;
    background: #fff;
    height: auto;
    border-right: 1px solid #e0e0e0;
    transition: width .15s ease, transform .15s ease;
    z-index: 1060 !important;
    height: 100%;
  }

  .sidebar.collapsed {
    width: 60px;
  }
}

@media (max-width: 1343px) {
  #controlsCreate {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  #controlsCreate .c-input-select {
    width: 100%;
  }

  #controlsCreate .groupbar__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  #controlsCreate .groupbar__actions .btn {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  #controlsCreate .controls__toggle {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1343px) {
  .docs-controls__left {
    flex-wrap: wrap;
    gap: 12px;
  }

  .c-input-select {
    width: 100%;
  }

  .groupbar__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .policy-page {
    margin-left: 0 !important;
  }

  .policy-card {
    max-width: 100%;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
  }

  .policy-doc__title {
    font-size: 20px;
    line-height: 110%;
    margin-bottom: 14px;
  }

  .policy-doc__h2 {
    font-size: 18px;
    line-height: 120%;
    margin-top: 16px;
    margin-bottom: 10px;
  }

  .policy-doc__sub,
  .policy-doc p,
  .policy-doc__list li {
    font-size: 14px;
    line-height: 140%;
  }

  .policy-doc ul,
  .policy-doc ol {
    padding-left: 18px;
  }

  .policy-doc__list {
    padding-left: 18px;
  }
}

@media (max-width: 576px) {
  .policy-card {
    padding: 14px 12px;
  }

  .policy-doc__title {
    font-size: 22px;
  }

  .policy-doc__h2 {
    font-size: 18px;
  }
}