@charset "UTF-8";
/* application.scss */
/* Подключения как в исходнике */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;1,500&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css");
/* База и компоненты */
/* base/_utilities.scss */
/* Глобальные утилиты и мелкие элементы из исходника (без изменений значений) */
/* Скроллбар */
@import "https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css";
::-webkit-scrollbar {
  width: 20px;
}

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

::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

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

/* Хелперы и утилиты */
.hider {
  display: block !important;
}

#loading {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.631);
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
  z-index: 1000000;
  display: none;
}

.spinner-my {
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 50%;
  top: 50%;
  margin: auto;
}

/* Responsive helpers из исходника */
@media (max-width: 991px) {
  #canvik {
    flex-direction: column !important;
  }
}

.nav-mobile-hidden {
  display: none !important;
}
@media (max-width: 991px) {
  .nav-mobile-hidden {
    flex-direction: column !important;
    display: block !important;
  }
}

/* Формы: input[type=file] как в исходнике */
.form-control-file {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-file[type=file] {
  overflow: hidden;
}

.form-control-file[type=file]:not(:disabled):not([readonly]) {
  cursor: pointer;
}

/* base/_components.scss */
/* Кнопка .button-85 и её анимации — без изменений */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-size: 31px;
  text-decoration: none;
  margin: 0 auto;
}

.button-85:before {
  content: "";
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}
.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* Подвал-баннер (исходный .site-footer) */
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
}

/* Линейный «shine»-текст */
.linear-wipe {
  text-align: center;
  font-family: "Fjalla One", sans-serif;
  background: linear-gradient(to right, #FFF 20%, #FF0 40%, #FF0 60%, #FFF 80%);
  background-size: 200% auto;
  font-size: 50px;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 1s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}
/* Текстовые эффекты / градиенты */
.text-gradient {
  background: -webkit-linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.yoyo {
  background: -webkit-linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Кнопки и элементы */
.info-site-button {
  padding: 3% 25% 3% 25%;
  background: -webkit-linear-gradient(315deg, #000000 0%, #100454 100%);
  border: none;
  font-size: 2rem;
}

.button-con {
  cursor: default;
}

/* Тумблеры day/night (id как в исходнике) */
#dayIcon {
  position: relative;
  width: 52px;
  height: 27px;
  top: 0px;
  margin: 2px 0px 0px 20px;
  fill: rgba(156, 174, 192, 0.8);
}

#nightIcon {
  position: relative;
  width: 20px;
  height: 20px;
  top: -3px;
  margin: 0 7px;
  fill: rgba(156, 174, 192, 0.8);
}

#dayIcon, #nightIcon {
  cursor: pointer;
}

.toggle {
  display: none;
}

.toggle, .toggle:after, .toggle:before, .toggle *, .toggle *:after, .toggle *:before, .toggle + .toggle-button {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.toggle::-moz-selection, .toggle:after::-moz-selection, .toggle:before::-moz-selection,
.toggle *::-moz-selection, .toggle *:after::-moz-selection, .toggle *:before::-moz-selection,
.toggle + .toggle-button::-moz-selection {
  background: none;
}

.toggle::selection, .toggle:after::selection, .toggle:before::selection,
.toggle *::selection, .toggle *:after::selection, .toggle *:before::selection,
.toggle + .toggle-button::selection {
  background: none;
}

.toggle + .toggle-button {
  outline: 0;
  display: inline-block;
  width: 2em;
  height: 1em;
  position: relative;
  cursor: pointer;
  border: 2px solid #333;
  user-select: none;
}

.toggle + .toggle-button:after, .toggle + .toggle-button:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}

.toggle + .toggle-button:after {
  left: 0;
}

.toggle + .toggle-button:before {
  display: none;
}

.toggle:checked + .toggle-button:after {
  left: 50%;
}

.toggle + .toggle-button {
  padding: 2px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border: 2px solid rgba(156, 174, 192, 0.27);
  border-radius: 2em;
}

.toggle + .toggle-button:after {
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background: rgba(156, 174, 192, 0.27);
  content: "";
  border-radius: 1em;
}

.toggle:checked + .toggle-button:after {
  left: 50%;
}

/* Бейджи/денежные метки */
.bodya .badge {
  font-size: 0.9rem !important;
}
.bodya .bg-money {
  background: -webkit-linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
}

/* Общие «кнопки» из исходника */
.coolman {
  padding: 10%;
  opacity: 0.9;
  padding: 1% 25% 1% 25%;
  font-size: 1.2rem;
  background: none !important;
  border: 3px outset #e9f01e !important;
  background-size: 400% 400%;
  -webkit-animation: gradient 15s ease infinite;
  animation: gradient 15s ease infinite;
  border: none;
}

.coolman:hover {
  opacity: 1;
  background: none !important;
  border: 3px solid rgb(216, 225, 37) !important;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Прочие мелочи */
.king {
  font-size: 0.8rem;
  color: darkgrey;
}

/* Страницы/секции (базовые сначала, переопределения — в конце) */
/* pages/landing.scss */
/* Весь гостевой лендинг как в исходнике */
/* .site-footer у тебя глобальный — он уже в components */
/* #no-user — основной гостевой фон + всё вложенное */
#no-user .old-header .btn {
  color: white !important;
  border-color: white !important;
  border-radius: 50px !important;
  padding: 7px 15px 5px 15px !important;
}
#no-user {
  display: block;
  background: linear-gradient(135deg, rgb(108, 0, 255) 0%, rgba(180, 0, 200, 0.95) 40%, rgba(0, 180, 255, 0.9) 100%);
  font-family: "Roboto" !important;
}
#no-user .profit {
  background: rgba(255, 255, 255, 0.8705882353) !important;
  z-index: 555;
  border-radius: 5px 5px 0px 0px;
}
@media only screen and (min-width: 771px) and (max-width: 1240px) {
  #no-user .profit {
    margin-top: 5% !important;
  }
}
#no-user footer {
  background: rgba(0, 0, 0, 0.3215686275) !important;
  font-family: "Roboto", sans-serif !important;
  margin-top: 1%;
  border-radius: 15px 15px 0px 0px;
}
#no-user .main-bg {
  color: #dfe3eb;
  font-family: "Roboto", sans-serif;
}
#no-user .yoyo {
  background: -webkit-linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#no-user .sign-up {
  border-radius: 10px !important;
  border: none;
  padding: 10px 100px 10px !important;
  font-size: 1.5rem;
}
#no-user .block3 {
  background: rgba(255, 255, 255, 0.9764705882);
  display: table;
  margin: auto;
  padding: 5%;
}
#no-user .main {
  opacity: 0.9;
  border-radius: 15px;
}
#no-user .main .block {
  background-color: white;
  border-radius: 10px;
  width: 70%;
  margin: auto;
}
#no-user .main .block2 {
  background-color: white;
  padding: 10px 25px 3px 25px;
  border-radius: 10px;
  width: 70%;
  margin: auto;
}
#no-user .main-h1 {
  font-size: calc(1.5rem + 1vh);
  padding: 15px;
  letter-spacing: 1px;
  word-break: break-word;
  text-transform: uppercase;
  font-weight: bold;
}
#no-user .tgbot {
  margin: auto;
  width: 100%;
  transform: rotate3d(0.9, 0.9, 0.3, 36deg);
  margin-top: 5%;
}
@media only screen and (min-width: 771px) and (max-width: 928px) {
  #no-user .tgbot {
    width: 120% !important;
  }
}
#no-user .iconka {
  width: 20px;
  margin: -4px 3px 0px -3px;
  padding: 0px;
}
#no-user {
  /* Translucent background for hero text on purple gradient */
}
#no-user .hero-copy {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(6px);
}
#no-user .hero-copy h1,
#no-user .hero-copy p {
  color: #fff !important;
}

/* #no-userik — вторая гостевая обёртка из исходника */
#no-userik {
  min-height: 100vh;
}
#no-userik body {
  font-family: "Roboto", sans-serif !important;
}
#no-userik .iconka {
  width: 20px;
  margin: -4px 3px 0px -3px;
  padding: 0px;
}
#no-userik .nav-link {
  color: white !important;
}
#no-userik header {
  font-family: "Roboto", sans-serif !important;
}
#no-userik .btn {
  border-radius: 50px !important;
  padding: 7px 15px 5px 15px !important;
}
#no-userik .align-items-start .text-center {
  background: rgba(0, 0, 0, 0.2196078431);
  padding: 5px;
  border-radius: 7px;
  border: 0.1px solid rgba(255, 255, 255, 0.2196078431);
}
#no-userik .align-items-start .text-center i {
  padding: 0px 5px 0px 0px;
  display: inline-flex;
}
#no-userik {
  display: block;
  background: linear-gradient(135deg, rgb(108, 0, 255) 0%, rgba(180, 0, 200, 0.95) 40%, rgba(0, 180, 255, 0.9) 100%);
}
#no-userik footer {
  background: rgba(0, 0, 0, 0.3215686275) !important;
  font-family: "Roboto", sans-serif !important;
  margin-top: 1%;
  border-radius: 15px 15px 0px 0px;
}
#no-userik footer a {
  color: white;
}
#no-userik .fw-bold {
  font-size: 19px !important;
  color: azure;
  padding: 3px 0px 0px 0px;
}
#no-userik .yoyo {
  color: #ffffff;
  font-size: 16.5px;
}
#no-userik .main-bg {
  color: rgb(223, 227, 235);
  font-family: "Roboto", sans-serif;
}
#no-userik .img-thumbnail {
  background-color: rgba(255, 255, 255, 0.099);
}
#no-userik .btcbotcc {
  max-width: 80%;
  border-radius: 15px;
  margin: 0% 0% 0% 5%;
}
#no-userik .main-title {
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #49ff18, 0 0 30px #49ff18, 0 0 40px #49ff18, 0 0 55px #49ff18, 0 0 75px #49ff18;
}
@keyframes mymove {
  50% {
    font-weight: bold;
  }
}
#no-userik .text-show {
  width: 48%;
}
#no-userik .image-show {
  width: 52%;
  text-align: center;
}
#no-userik .container {
  color: white;
}
#no-userik .btn {
  color: white !important;
  border-color: white !important;
}
#no-userik .robotik {
  max-width: 6% !important;
}
#no-userik .robot {
  max-width: 93% !important;
}
#no-userik .bot, #no-userik .bot-two {
  color: #eaffcf;
  text-decoration: none;
  font-weight: bolder;
}
#no-userik .bot {
  font-size: 40px;
}
#no-userik .bot-two {
  font-size: 30px;
}
#no-userik .bot:hover, #no-userik .bot-two:hover {
  color: white;
}

/* ===== Header (glassy, readable on gradients) ===== */
.header-glass {
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  background: rgba(8, 12, 24, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-glass .navbar-brand {
  letter-spacing: 0.5px;
}

.header-glass .nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.header-glass .nav-link:hover {
  color: #fff;
}

.header-glass .nav-link.active {
  color: #fff;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
}

/* Make CTAs equal and nice on mobile */
@media (max-width: 991.98px) {
  .header-glass .btn {
    width: 100%;
  }
}
.style-wordbreak {
  word-break: break-all;
  overflow-wrap: anywhere;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

/* #no-user, #no-userik */
/* pages/admin.scss */
/* Весь #user из исходника — без изменений значений */
#user {
  background: white;
  font-family: "Roboto" !important;
}
#user .coinik {
  margin: 0px 4px 1px 4px;
}
#user.light {
  color: black;
  background-color: white;
}
#user.dark {
  color: white;
  background-color: #19172a;
}
#user.dark .bot-name, #user.dark .product-name, #user.dark .bot-text {
  color: white;
}
#user.dark .bg-light {
  background-color: #19172a !important;
}
#user.dark .card-body {
  color: white;
  background-color: #19172a;
}
#user.dark .card-text {
  color: white;
}
#user.dark .card-header {
  color: #072550;
}
#user.dark .bg-white {
  background-color: #19172a !important;
}
#user.dark .dropdown-toggle strong {
  color: white;
}
#user .main-sidebar i {
  padding: 0px 5px 0px 0px;
  display: inline;
}
#user .main-sidebar .nav-link {
  padding: 10px !important;
  font-size: calc(9px + 1vh);
}
#user .chat {
  font-size: 19px !important;
  color: #fc5821 !important;
}
@media only screen and (min-width: 992px) and (max-width: 1000px) {
  #user .chat {
    font-size: calc(4px + 1vh) !important;
  }
}
@media only screen and (min-width: 1001px) and (max-width: 1080px) {
  #user .chat {
    font-size: calc(4px + 1vh) !important;
  }
}
@media only screen and (min-width: 1081px) and (max-width: 1130px) {
  #user .chat {
    font-size: calc(5px + 1vh) !important;
  }
}
@media only screen and (min-width: 1131px) and (max-width: 1200px) {
  #user .chat {
    font-size: calc(7px + 1vh) !important;
  }
}
#user .new-header {
  color: #0d6efd !important;
}
#user .new-header .hah {
  text-decoration: none;
  color: dark;
  font-weight: 300;
}
#user .new-header .hah:hover {
  color: rgb(84, 1, 109);
}
#user .new-header i {
  padding: 5px;
}
#user .mone {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: flex-end;
  flex-wrap: nowrap;
  flex-direction: column-reverse;
}
#user .mone .active {
  color: white !important;
}
@media only screen and (min-width: 1000px) and (max-width: 1199px) {
  #user .mone {
    align-items: flex-end;
    justify-content: flex-start;
    align-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: column-reverse;
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1445px) {
  #user .mone {
    align-items: flex-end;
    justify-content: flex-start;
    align-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: column-reverse;
  }
}
@media only screen and (min-width: 1001px) and (max-width: 1080px) {
  #user .mone .avatar-mascot {
    display: none !important;
  }
}
@media only screen and (min-width: 1081px) and (max-width: 1130px) {
  #user .mone .avatar-mascot {
    display: none !important;
  }
}
#user .offcanvas.offcanvas-end {
  margin: 0px 0px 0px 3%;
}
#user .nav-header {
  padding: 0.4rem 0.7rem !important;
}
@media only screen and (min-width: 1001px) and (max-width: 1080px) {
  #user .nav-header {
    padding: 0.4rem 0.5rem !important;
  }
}
#user .cp-container-class {
  border: 1px solid black;
  width: 1000px;
  display: flex;
  flex-wrap: wrap;
}
#user .checkbox-container-class {
  width: 10%;
  height: 50px;
  text-align: center;
}
#user .inside a {
  color: white !important;
}
#user .inside a:hover {
  color: white !important;
}
#user .news-bot {
  font-size: 14px;
  color: #8d93df;
  text-align: center;
}
#user .footer {
  padding: 10px;
}
#user .earned-body {
  font-size: 13px;
  padding: 20px !important;
}
@media (min-width: 768px) {
  #user .offset-md-2 {
    margin-left: 13.666667% !important;
  }
}
#user .lol {
  margin: 4px 0px 0px 0px;
}
@media only screen and (min-width: 1250px) and (max-width: 1290px) {
  #user .lol {
    margin: 5px 0px 0px 0px;
  }
  #user .lol a {
    font-size: 13px;
  }
}
@media only screen and (min-width: 1400px) {
  #user .lol {
    margin: 5px 0px 0px 50px !important;
  }
}
#user footer .mb-1 {
  margin-bottom: 0.55rem !important;
}
@media only screen and (min-width: 1267px) and (max-width: 1370px) {
  #user .lol {
    margin: 4px 0px 0px 0px;
  }
  #user .lol a {
    font-size: 12px;
  }
  #user .hah {
    font-size: 15px !important;
  }
}
@media only screen and (min-width: 1371px) {
  #user .lol {
    margin: 4px 0px 0px 0px;
  }
}
#user .mascot-avatar {
  width: 50%;
}
@media (max-width: 768px) {
  #user .mascot-avatar {
    width: 10% !important;
  }
}
@media only screen and (max-width: 991px) {
  #user .navbar-toggler {
    margin: 0% 0% 0% 82%;
  }
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  #user .lol {
    margin: 4px 0px 0px 0px;
  }
  #user .lol a {
    font-size: 10px;
  }
  #user .hah {
    font-size: 15px !important;
  }
}
#user .iconka {
  width: 20px;
  margin: -4px 3px 0px -3px;
  padding: 0px;
}
#user .my-navbar {
  padding-top: 0rem;
}
@media (max-width: 1000px) {
  #user #no-user .image-show {
    width: 100%;
    text-align: center;
  }
  #user #no-user .text-show {
    width: 100%;
  }
  #user #no-user footer .text-center,
  #user #user footer .text-center {
    text-align: center !important;
    width: 90%;
  }
}
#user .ikonka {
  width: 20px;
  margin: -1px 4px 0px 0px;
  padding: 0px;
}
@media (max-width: 1243px) {
  #user .ikonka {
    width: 16px;
  }
}
@media (max-width: 1224px) {
  #user .ikonka {
    width: 14px;
    margin: 0px 4px 0px 0px;
  }
}
#user .nick {
  font-size: 1.1vw !important;
}
@media (max-width: 988px) {
  #user .nick {
    font-size: 12px !important;
  }
}
#user .slogan {
  font-size: 12px;
  color: slategrey;
  text-align: center;
}
@media (max-width: 1160px) {
  #user .slogan {
    font-size: 10px;
  }
}
#user .avatar-mascot {
  width: 40px;
  padding: 0px;
  background-color: rgba(218, 195, 251, 0.6705882353);
}
#user .arenda:hover {
  color: blueviolet;
}

/* #user и всё, что внутри кабинета */
/* pages/chat.scss */
/* Полностью переносим блок #chat из исходника */
#chat .inbox_people {
  background: #fff none repeat scroll 0 0;
  float: left;
  overflow: hidden;
  width: 40%;
  border-right: 1px solid rgba(103, 99, 252, 0.4901960784);
}
#chat .inbox_msg {
  border: 1px solid rgba(103, 99, 252, 0.4901960784);
  clear: both;
  overflow: hidden;
  border-radius: 20px;
}
#chat .top_spac {
  margin: 20px 0 0;
}
#chat .recent_heading {
  float: left;
  width: 100%;
}
#chat .srch_bar {
  display: inline-block;
  text-align: right;
  width: 60%;
}
#chat .headind_srch {
  padding: 10px 29px 10px 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(103, 99, 252, 0.4901960784);
}
#chat .recent_heading h4 {
  color: #05728f;
  font-size: 21px;
  margin: auto;
}
#chat .srch_bar input {
  border: 1px solid rgba(103, 99, 252, 0.4901960784);
  border-width: 0 0 1px 0;
  width: 80%;
  padding: 2px 0 4px 6px;
  background: none;
}
#chat .srch_bar .input-group-addon button {
  background: rgba(0, 0, 0, 0);
  border: none;
  padding: 0;
  color: #707070;
  font-size: 18px;
}
#chat .srch_bar .input-group-addon {
  margin: 0 0 0 -27px;
}
#chat .chat_ib h5 {
  font-size: 15px;
  color: #464646;
  margin: 0 0 8px 0;
}
#chat .chat_ib h5 span {
  font-size: 13px;
  float: right;
}
#chat .chat_ib p {
  font-size: 14px;
  color: #989898;
  margin: auto;
}
#chat .chat_img {
  float: left;
  width: 11%;
}
#chat .chat_img img {
  width: 100%;
}
#chat .chat_ib {
  float: left;
  padding: 0 0 0 15px;
  width: 88%;
}
#chat .chat_people {
  overflow: hidden;
  clear: both;
}
#chat .chat_list {
  border-bottom: 1px solid #c4c4c4;
  margin: 0;
  padding: 18px 16px 10px;
}
#chat .inbox_chat {
  height: 550px;
  overflow-y: scroll;
}
#chat .active_chat {
  background: #ebebeb;
}
#chat .incoming_msg_img {
  display: inline-block;
  width: 6%;
}
#chat .incoming_msg_img img {
  width: 100%;
}
#chat .received_msg {
  display: inline-block;
  padding: 0 0 0 10px;
  vertical-align: top;
  width: 92%;
}
#chat .received_withd_msg p {
  background: #cfe2ff;
  border-radius: 3px;
  color: black;
  font-size: 14px;
  margin: 0;
  padding: 5px 10px 5px 12px;
  width: 100%;
}
#chat .time_date {
  color: #747474;
  display: block;
  font-size: 12px;
  margin: 8px 0 0;
}
#chat .received_withd_msg {
  width: 57%;
}
#chat .mesgs {
  float: left;
  padding: 30px 15px 0 25px;
  width: 60%;
}
#chat .sent_msg p {
  background: #d1e7dd;
  border-radius: 3px;
  font-size: 14px;
  margin: 0;
  color: black;
  padding: 5px 10px 5px 12px;
  width: 100%;
}
#chat .outgoing_msg {
  overflow: hidden;
  margin: 26px 0 26px;
}
#chat .sent_msg {
  float: right;
  width: 46%;
}
#chat .input_msg_write input {
  background: rgba(0, 0, 0, 0);
  border: none;
  color: #4c4c4c;
  font-size: 15px;
  min-height: 48px;
  width: 100%;
}
#chat .type_msg {
  border-top: 1px solid #c4c4c4;
  position: relative;
}
#chat .msg_send_btn {
  background: #05728f;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  height: 33px;
  position: absolute;
  right: 0;
  top: 11px;
  width: 33px;
}
#chat .messaging {
  padding: 0 0 50px 0;
}
#chat .msg_history {
  height: 516px;
  overflow-y: auto;
}

/* #chat — модуль чата */
/* pages/misc.scss */
:root {
  --header-h: 56px;
  --sidebar-w: 280px;
  --border: rgba(0,0,0,.12);
  --text: #1f2937;
}

/* Alerts */
.alert-notice {
  color: #084298;
  background-color: #cfe2ff;
  border-color: #b6d4fe;
}

.alert-alert {
  color: #084298;
  background-color: #cfe2ff;
  border-color: #b6d4fe;
}

/* Списки */
.custom-ul {
  padding: 25px !important;
}
.custom-ul li {
  padding: 0px 0px 10px 0px;
}

/* Блоки main-mir/coolman из исходника */
@media (max-width: 750px) {
  .main-mir .col-md-3 {
    margin-bottom: 10%;
  }
}
.main-mir .coolman {
  padding: 10px 24px;
  opacity: 0.95;
  font-size: 1rem;
  background: transparent;
  border: 2px solid #d8e125 !important;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.main-mir .coolman:hover {
  opacity: 1;
  border-color: #c8d10f !important;
}

/* ===== Header controls (shared, site-wide) ===== */
.controls-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.controls-group .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bs-card-bg);
  color: var(--text);
  line-height: 1;
}

.controls-group .pill img {
  width: 18px;
  height: 18px;
  display: block;
}

.controls-group .controls-spacer {
  width: 6px;
}

/* Icon buttons (lang/theme) */
header.app-header .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bs-card-bg);
  box-shadow: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

header.app-header .icon-btn:hover {
  transform: translateY(-1px);
}

header.app-header .icon-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.25);
}

/* Lang dropdown button alignment */
.header-lang .dropdown-toggle {
  padding: 0 12px;
  height: 36px;
  min-width: 50px;
  width: auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#theme-toggle {
  padding: 0 8px;
  height: 36px;
  width: 50px;
}

.header-lang {
  position: relative;
  overflow: visible;
}

.header-lang .dropdown-menu {
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: auto !important;
  inset: auto !important;
  margin-top: 0 !important;
  z-index: 5000 !important;
}

/* Dark theme variants */
[data-bs-theme=dark] .controls-group .pill,
[data-bs-theme=dark] .icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

/* Backdrop visible */
label.app-backdrop {
  cursor: pointer;
}

@media (min-width: 1024px) {
  .header-icon {
    display: none !important;
  }
}
/* Ensure app-sidebar opens above overlay on mobile */
.app-sidebar {
  background: var(--bs-card-bg);
  backdrop-filter: blur(16px);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

[data-bs-theme=dark] .app-sidebar {
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

/* Header glass effect */
header.app-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 1040;
  min-height: var(--header-h, 56px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bs-card-bg);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-bs-theme=dark] header.app-header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Desktop grid: sidebar + main */
@media (min-width: 1024px) {
  .app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w, 280px) 1fr;
    align-items: start;
  }
  .app-sidebar {
    position: sticky;
    top: var(--header-h, 56px);
    height: calc(100dvh - var(--header-h, 56px));
  }
  .app-main {
    padding: 16px;
    min-height: calc(100dvh - var(--header-h, 56px));
  }
}
/* Main spacing under sticky header (mobile-first) */
.app-main {
  padding: 12px;
  min-height: calc(100dvh - var(--header-h, 56px));
}

/* === Scroll lock when sidebar is open === */
#nav-toggle:checked ~ #user.app,
#nav-toggle:checked ~ .layout,
#nav-toggle:checked ~ main.app-main {
  overflow: hidden;
  height: 100dvh;
}

/* Kill any accidental border under the header (e.g., from BS utilities) */
header.app-header {
  border-bottom: 0 !important;
}

/* === select_bot как sidebar .menu-item === */
#botSwitcher.menu-item {
  /* повторяем ключевые параметры тайла; остальное уже есть в .menu-item */
  display: flex;
  width: 100%;
  background: var(--sidebar-item-bg);
  border: 1px solid var(--sidebar-border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 12px 14px; /* на случай, если сбивалось Bootstrap-ом */
  border-radius: 14px;
  color: var(--sidebar-text);
  text-decoration: none;
}

/* hover/active — оставить такие же как у .menu-item (наследуются), но на всякий случай: */
#botSwitcher.menu-item:hover {
  background: var(--sidebar-item-hover);
}

#botSwitcher.menu-item:active {
  transform: translateY(1px);
}

/* выравнивание текста в две строки под .label (как в сайдбаре) */
#botSwitcher.menu-item .label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#botSwitcher.menu-item .label small {
  display: block;
  opacity: 0.75;
}

/* каретка: плавный поворот при открытии */
#botSwitcher.menu-item .caret {
  transition: transform 0.2s ease;
}

#botSwitcher[aria-expanded=true] .caret {
  transform: rotate(180deg);
}

/* фокус-ринг как у остальных кнопок */
#botSwitcher.menu-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* тёмная тема «из коробки» через переменные; дополнительного не нужно */
#langModal .modal-content {
  border-radius: 16px;
}

#langModal .list-group-item {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* footer, alerts, ul и общие блоки */
/* ВАЖНО: хедер/сайдбар импортируем ПОСЛЕ всего, чтобы перебить конфликтующие правила */
/* pages/sidebar.scss */
/* Вырезанный из #user сайдбар (точная копия исходника) */
:root {
  --sidebar-bg: #ffffff;
  --sidebar-text: #0f172a;
  --sidebar-muted: #667085;
  --sidebar-border: #e5e7eb;
  --sidebar-item-bg: #ffffff;
  --sidebar-item-hover: #f5f7fb;
  --sidebar-item-active: linear-gradient(90deg, rgba(123,97,255,.12), rgba(88,161,255,.12));
}

/* glass backgrounds to match header */
:root {
  --glass-sidebar-bg: rgba(255,255,255,.72);
}

[data-bs-theme=dark] {
  --glass-sidebar-bg: rgba(17,24,39,.72);
}

[data-bs-theme=dark] {
  --sidebar-bg: rgba(10, 14, 25, 0.72);
  --sidebar-text: #e6e8ee;
  --sidebar-muted: #9aa4b2;
  --sidebar-border: rgba(255,255,255,0.12);
  --sidebar-item-bg: rgba(255,255,255,0.04);
  --sidebar-item-hover: rgba(255,255,255,0.08);
  --sidebar-item-active: linear-gradient(90deg, rgba(123,97,255,.20), rgba(88,161,255,.20));
}

.app-sidebar {
  background: var(--glass-sidebar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: clamp(0px, 88vw, 360px);
  transform: translateX(-105%);
  will-change: transform;
  transition: transform 0.25s ease, box-shadow 0.2s ease;
  z-index: 1042; /* above header on mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  pointer-events: none; /* closed: do not intercept clicks */
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
}

.app-sidebar .sidebar-scroll {
  padding-top: calc(var(--header-h, 56px) + 8px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  position: relative;
}

/* Subtle custom scrollbar */
.app-sidebar .sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.app-sidebar .sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.app-sidebar .sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

[data-bs-theme=dark] .app-sidebar .sidebar-scroll {
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

[data-bs-theme=dark] .app-sidebar .sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}

/* Soft bottom fade inside the scroll area */
.app-sidebar .sidebar-scroll::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* When checkbox is ON → show sidebar */
#nav-toggle:checked ~ .app-sidebar,
#nav-toggle:checked ~ .layout .app-sidebar,
#nav-toggle:checked ~ .layout .app-shell .app-sidebar {
  transform: translateX(0);
  pointer-events: auto;
}

/* Backdrop tied to the checkbox */
label.app-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1041; /* above header (1040), below sidebar (1042) */
  pointer-events: none;
}

#nav-toggle:checked ~ label.app-backdrop,
#nav-toggle:checked ~ .layout label.app-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sidebar nav list reset (matches Slim patch) */
.app-sidebar .menu-list {
  list-style: none;
  margin: 0;
  padding: 12px 10px;
  display: grid;
  gap: 10px;
}

.app-sidebar .menu-list > li {
  margin: 0;
}

/* Desktop: sidebar always visible, sticky under header; burger hidden via header CSS */
@media (min-width: 1024px) {
  #nav-toggle {
    display: none;
  }
  label.app-backdrop {
    display: none;
  }
  .app-sidebar-overlay {
    display: none;
  }
  .app-sidebar {
    position: sticky;
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    transform: none !important;
    pointer-events: auto !important;
    width: var(--sidebar-w, 280px);
    overflow-y: auto;
    background: var(--glass-sidebar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.04);
  }
  .app-sidebar .sidebar-scroll {
    position: relative;
  }
  .app-sidebar .sidebar-scroll::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    height: 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
    pointer-events: none;
  }
}
/* Sidebar open (support both #user.app and .app containers) */
#nav-toggle:checked ~ #user.app .app-sidebar,
#nav-toggle:checked ~ .app .app-sidebar {
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sidebar-border);
  background: var(--sidebar-item-bg);
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  min-height: 52px;
}

.menu-item:hover {
  background: var(--sidebar-item-hover);
  border-color: #d8dee6;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1);
}

/* Keyboard focus ring */
.menu-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.menu-item:active {
  transform: translateY(1px);
}

.menu-item.danger {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.35);
}

/* === New sidebar item complements === */
/* Icon, label and badge layout */
.app-sidebar .menu-item .icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  width: 24px;
  text-align: center;
}

.app-sidebar .menu-item .label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar .menu-item .badge-wrap {
  margin-inline-start: auto;
}

/* Active state with gradient indicator (support both .active and .is-active) */
.menu-item.active,
.menu-item.is-active {
  background: var(--sidebar-item-hover);
  border-color: #cbd5e1;
  box-shadow: none;
  position: relative;
}

.menu-item.active::before,
.menu-item.is-active::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #3b82f6, #22c55e);
}

/* Danger modifier (new naming) — keep old one for BC */
.menu-item--danger {
  border-color: rgba(198, 40, 40, 0.35);
}

.menu-item--danger:hover {
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.18);
}

.menu-item--danger:hover, .menu-item.danger:hover {
  background: rgba(220, 53, 69, 0.06);
}

[data-bs-theme=dark] .app-sidebar img.iconka,
[data-bs-theme=dark] .app-sidebar img.ikonka {
  filter: brightness(0.9) contrast(1.08);
}

/* ==== Header theming with day/night toggle ==== */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
}

[data-bs-theme=dark] .app-header {
  background: rgba(17, 24, 39, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6e8ee;
}

/* === Off-canvas sidebar: mobile-first (checkbox-driven) === */
/* Hide the controlling checkbox visually */
#nav-toggle {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* сайдбар в кабинете */
/* ===== Header (изолировано) ============================================== */
:root {
  --hdr-h: 56px;
  --header-h: var(--hdr-h, 56px);
  --hdr-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-bs-theme=dark] {
  --hdr-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.app-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1030;
  min-block-size: var(--header-h, 56px); /* allow 2nd row on mobile */
  inline-size: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: hidden;
  max-width: 100%;
  /* SassC-safe responsive padding (без clamp/min) */
  padding-inline: 12px;
}

@media (min-width: 480px) {
  .app-header {
    padding-inline: 2vw;
  }
}
@media (min-width: 1280px) {
  .app-header {
    padding-inline: 20px;
  }
}
.app-header {
  background: var(--bs-card-bg);
  color: var(--bs-body-color);
  border-bottom: 1px solid var(--bs-border-color);
  backdrop-filter: blur(12px);
  box-shadow: var(--hdr-shadow);
}

/* === Visual polish for header content === */
.app-header, .app-header * {
  -webkit-font-smoothing: antialiased;
}

.hdr-actions > * {
  align-self: center;
}

.hdr-actions {
  gap: 10px;
}

/* Withdraw button: consistent size & subtle shadow */
.hdr-actions .btn.btn-primary {
  block-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  padding-inline: 16px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}

.hdr-actions .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  background: linear-gradient(90deg, #1d4ed8, #1e40af);
}

.hdr-actions .btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.hdr-actions .btn.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

/* Balance block */
.wallet-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wallet-balance strong.metric {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.wallet-balance span.small {
  color: var(--bs-secondary-color);
}

/* Exchange rates as compact pills */
.exchange-rates ul {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.exchange-rates .metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  font-variant-numeric: tabular-nums;
}

.exchange-rates img.iconka, .exchange-rates img.ikonka {
  inline-size: 18px;
  block-size: 18px;
}

/* Language/Theme icon buttons already styled; normalize margins */
.hdr-actions .dropdown, .hdr-actions .icon-btn {
  margin: 0 !important;
}

/* Typography tweaks */
.app-header {
  line-height: 1.2;
}

/* Responsive: shrink pills on smaller widths */
@media (max-width: 768px) {
  .exchange-rates .metric {
    padding: 4px 8px;
    border-radius: 10px;
  }
  .exchange-rates img.iconka, .exchange-rates img.ikonka {
    inline-size: 16px;
    block-size: 16px;
  }
}
.app-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.hdr-actions {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Бургер/иконки (только в хедере, чтобы не конфликтовало глобально) */
.app-header .btn-burger,
.app-header .icon-btn {
  inline-size: 36px;
  block-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-header .btn-burger:focus-visible,
.app-header .icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.25);
}

.app-header .btn-burger:hover,
.app-header .icon-btn:hover {
  transform: translateY(-1px);
}

/* Иконки в кнопках */
.app-header .icon {
  inline-size: 18px;
  block-size: 18px;
  display: block;
}

/* Поддержка твоих старых классов, но только здесь */
.app-header .mone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-header .new-header {
  color: inherit;
}

.app-header .nav-header {
  padding: 0.4rem 0.7rem !important;
}

/* Медиа: ничего лишнего — Bootstrap сам делает остальное */
/* === Burger via label[for="nav-toggle"] (совместимо с текущей разметкой) === */
.app-header label[for=nav-toggle] {
  inline-size: 36px;
  block-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.app-header label[for=nav-toggle]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.25);
}

.app-header label[for=nav-toggle]:hover {
  transform: translateY(-1px);
}

/* Три полоски внутри label — используем span-ы (если присутствуют) */
.app-header label[for=nav-toggle] > span {
  display: block;
  inline-size: 18px;
  block-size: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.app-header label[for=nav-toggle] > span + span {
  margin-top: 4px;
}

/* Состояние: когда чекбокс активен — анимируем иконку */
#nav-toggle:checked ~ header.app-header label[for=nav-toggle] > span {
  transform: scaleX(0.9);
}

/* На десктопе бургер скрыт */
@media (min-width: 992px) {
  .app-header label[for=nav-toggle] {
    display: none;
  }
}
/* Выравнивание зон в хедере: бренд слева, действия справа */
.app-header .brand {
  margin-inline-start: 4px;
}

/* Ensure dropdowns inside header are not clipped */
.app-header .hdr-actions {
  margin-inline-start: auto;
  gap: 10px;
  overflow: visible !important;
}

.app-header .hdr-actions .dropdown-menu {
  z-index: 5000 !important;
}

/* Предотвращаем перекрытие: хедер всегда поверх бэкдропа */
.app-header {
  z-index: 1040;
}

/* --- Layout guards to prevent mid-width breakage --- */
.app-header {
  display: flex;
  flex-wrap: nowrap;
}

.app-header .brand {
  flex: 0 0 auto;
  min-width: 0;
}

.app-header .hdr-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap; /* не переносим элементы */
  min-width: 0; /* позволяем ужиматься */
}
.app-header .hdr-actions > * {
  flex: 0 0 auto;
  margin: 0 !important;
  position: static;
  align-self: center;
}

/* Кнопки/иконки не сжимаются */
.app-header .hdr-actions .btn,
.app-header .hdr-actions .dropdown,
.app-header .hdr-actions .icon-btn {
  flex: 0 0 auto;
}

/* Метрики не заставляют переносить строку */
.app-header .hdr-actions .metric {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Кнопка выравнена по высоте с иконками */
.app-header .hdr-actions .btn {
  block-size: 36px;
  line-height: 1;
  padding-inline: 14px;
  font-weight: 600;
}

/* Узкие экраны: постепенно скрываем лишние метрики */
@media (max-width: 640px) {
  .app-header .hdr-actions .metric:nth-of-type(n+3) {
    display: none;
  }
}
@media (max-width: 480px) {
  .app-header .hdr-actions .metric:nth-of-type(n+2) {
    display: none;
  }
}
/* Чуть уменьшаем зазоры в диапазоне 640–900px */
@media (min-width: 640px) and (max-width: 900px) {
  .app-header .hdr-actions {
    gap: 6px;
  }
}
/* === Binance-like topbar complements === */
.topbar {
  min-height: var(--header-h, 56px);
  inline-size: 100%;
}

.brand-link {
  font-size: 15px;
  letter-spacing: 0.2px;
  font-weight: 700;
}

/* Icon button used for the “more” menu */
.btn.icon-btn {
  inline-size: 36px;
  block-size: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.icon-btn > .bi {
  font-size: 18px;
  line-height: 1;
}

/* Compact metrics list */
.metric {
  white-space: nowrap;
}

.exchange-rates ul {
  margin: 0;
  padding: 0;
}

.exchange-rates li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Mobile two-row layout (<=576px) === */
@media (max-width: 576px) {
  .app-header {
    padding-inline: 10px;
  }
  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .topbar .left {
    flex: 1 1 100%;
    order: 1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .topbar .hdr-actions {
    flex: 1 1 100%;
    order: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
  }
  /* Компактность элементов во второй строке */
  .topbar .wallet-balance {
    flex: 1 1 auto;
    min-width: 220px;
  }
  .topbar .wallet-balance .metric {
    font-size: 12px;
  }
  .topbar .wallet-balance .btn {
    block-size: 32px;
    padding-inline: 12px;
  }
  .topbar .exchange-rates {
    flex: 1 1 auto;
    min-width: 200px;
  }
  .topbar .exchange-rates ul {
    gap: 10px;
  }
  .topbar .exchange-rates li {
    gap: 4px;
  }
  .topbar .exchange-rates .metric {
    font-size: 12px;
  }
  /* Часы и прочие иконки — не растягиваем */
  .topbar .live-clock, .topbar .icon-btn, .topbar label.burger {
    flex: 0 0 auto;
  }
  /* Резерв: если совсем мало места — скрыть тильду ~USD */
  .topbar .wallet-balance span.small.text-muted.ms-2 {
    display: none;
  }
}
/* subtle dot separators between distant groups (optional, non-invasive) */
.hdr-actions .spacer-dot {
  inline-size: 4px;
  block-size: 4px;
  border-radius: 50%;
  background: var(--bs-border-color);
  opacity: 0.9;
}

/* Бургер — новая версия (3 линии -> X) */
.app-header #burger.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--bs-card-bg);
  color: var(--bs-body-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-header #burger.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.app-header #burger.hamburger,
.app-header #burger .hamburger-box .line {
  transition: all 0.3s ease;
}

.app-header #burger .hamburger-box {
  width: 24px;
  height: 18px;
  position: relative;
}

.app-header #burger .hamburger-box .line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.app-header #burger .hamburger-box .line:nth-child(1) {
  top: 0;
}

.app-header #burger .hamburger-box .line:nth-child(2) {
  top: 8px;
}

.app-header #burger .hamburger-box .line:nth-child(3) {
  bottom: 0;
}

/* Состояние «открыто» — превращаемся в крестик */
#nav-toggle:checked ~ header.app-header #burger .hamburger-box .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#nav-toggle:checked ~ header.app-header #burger .hamburger-box .line:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ header.app-header #burger .hamburger-box .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Утилита для скрытого текста */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[data-bs-theme=dark] header, [data-bs-theme=dark] .new-header, [data-bs-theme=dark] .app-header {
  background-color: #0d1117;
  border-bottom: 1px solid #1f2937;
}
[data-bs-theme=dark] .icon-btn,
[data-bs-theme=dark] .theme-toggle-btn,
[data-bs-theme=dark] .header-lang button,
[data-bs-theme=dark] .badge {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}
[data-bs-theme=dark] .icon-btn:hover,
[data-bs-theme=dark] .theme-toggle-btn:hover,
[data-bs-theme=dark] .header-lang button:hover,
[data-bs-theme=dark] .badge:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
[data-bs-theme=dark] .badge {
  background-color: #1f2937;
  color: #f9fafb;
}

.modal-footer form.button_to {
  width: auto;
  display: inline-block;
}

.modal-footer .btn {
  width: auto !important;
  min-width: 100px;
}

/* хедер в кабинете */
/* Вендоры */
#upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: white;
  font-size: 1.2rem;
}

/* Fallback CSS variables (overridden by base/tokens or page-specific files) */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --border: rgba(2, 6, 23, 0.08);
  --txt: #101828;
}

/* Dashboard v2 styles */
.app-dashboard .card {
  border: none;
  background-color: #fff;
  transition: box-shadow 0.2s ease-in-out;
}
.app-dashboard .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}
.app-dashboard .badge {
  font-size: 0.75rem;
}
.app-dashboard h2.display-6 {
  font-weight: 600;
  line-height: 1.2;
}
.app-dashboard small.text-muted {
  font-size: 0.8rem;
}
.app-dashboard .alert {
  border-radius: 0.5rem;
}
.app-dashboard {
  /* spacing between rows */
}
.app-dashboard .row.g-3 > [class*=col-] {
  margin-bottom: 1rem;
}

/* ---- Toast / Notifications (beautiful, modern) ---- */
.z-notify {
  position: fixed;
  inset: auto 0 0 auto; /* rely on .bottom-0 .end-0 from markup but be safe */
  z-index: 5000; /* выше любых сайдбаров/офканвасов */
  pointer-events: none; /* стек не блокирует клики */
}

.z-notify .js-notice {
  width: min(92vw, 360px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 3px 12px rgba(0, 0, 0, 0.08);
  transform-origin: bottom right;
  overflow: hidden; /* прогресс-бар искапывается внутрь */
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  position: relative;
}

.z-notify .js-notice:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 5px 16px rgba(0, 0, 0, 0.1);
}

/* Card body paddings a bit denser */
.z-notify .js-notice .card-body {
  padding: 0.75rem 0.9rem;
}

.z-notify .js-notice .fw-semibold {
  letter-spacing: 0.2px;
}

.z-notify .js-notice .small {
  opacity: 0.85;
}

/* Close button look & feel */
.z-notify .js-notice .btn-close {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.15s ease, transform 0.15s ease;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.z-notify .js-notice .btn-close:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Progress bar (uses --lifespan CSS var, default 6000ms) */
.z-notify .js-notice::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transform-origin: left center;
  animation: toast-progress var(--lifespan, 6000ms) linear forwards;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
/* Color variants (optional future use) */
.z-notify .js-notice.is-success::after {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.z-notify .js-notice.is-info::after {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.z-notify .js-notice.is-warning::after {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.z-notify .js-notice.is-danger::after {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Entry/exit animations (reuse existing classes) */
@keyframes notify-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes notify-out {
  to {
    transform: translateY(12px);
    opacity: 0;
  }
}
.z-notify .js-notice {
  animation: notify-in 160ms ease-out;
}

.z-notify .js-notice.is-hiding {
  animation: notify-out 160ms ease-in forwards;
}

/* Tune default icon bubble in both themes */
.z-notify .js-notice .bg-success.bg-opacity-10 {
  background-color: rgba(34, 197, 94, 0.12) !important; /* prettier green */
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .z-notify {
    left: 0;
    right: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .z-notify .js-notice {
    width: 100%;
    max-width: none;
  }
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
  .z-notify .js-notice {
    background: rgba(24, 24, 27, 0.86);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.35);
  }
  .z-notify .js-notice .small {
    opacity: 0.75;
  }
  .z-notify .js-notice .bg-success.bg-opacity-10 {
    background-color: rgba(34, 197, 94, 0.18) !important;
  }
}
