@charset "UTF-8";

/* ===================== THEME VARS ===================== */
:root {
  --bg-charcoal: #0B0B0C;
  --bg-umber: #1A1410;
  --panel-ink: #1C1613;
  --panel-ink-2: #231b17;

  --fire-ember: #FF7A1A;
  --fire-ember-dk: #E76712;
  --accent-gold: #D4AF37;

  --text-80: #E9E1D3;
  /* warm light */
  --text-70: #A39B92;
  --text-55: #8E857C;
  --text-40: #6D655E;

  --white: #FFFFFF;
  --black: #000000;

  --ring: 0 0 0 2px rgba(212, 175, 55, .45), 0 0 22px rgba(255, 122, 26, .32);
}

/* =================== RESET / BASE ===================== */
*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body,
html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(255, 122, 26, .14), transparent 60%),
    linear-gradient(180deg, #070706 0%, #0A0908 35%, #0B0B0C 100%);
  font-family: "Open Sans Regular", sans-serif;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 60px);
  box-sizing: border-box;
  padding: 30px;
  color: var(--text-80);
}

.bot_chat_body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(255, 122, 26, .14), transparent 60%),
    linear-gradient(180deg, #070706 0%, #0A0908 35%, #0B0B0C 100%);
  font-family: "Open Sans Regular", sans-serif;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 30px;
  overflow: hidden;
  color: var(--text-80);
}

.bot_chat_body-header {
  margin: 0 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, .70);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text-70);
}

@media (max-width: 767px) {
  .bot_chat_body-header {
    margin-bottom: 10px;
  }
}

.bot_chat_body-header-buttons {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

.bot_chat_body-header .button {
  margin-left: 20px;
  background: #151211;
  color: var(--text-80);
  border: 1px solid rgba(212, 175, 55, .60);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .2s, transform .12s;
}

.bot_chat_body-header .button:hover {
  box-shadow: var(--ring);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .bot_chat_body-header .button {
    margin-left: 16px;
    height: 40px;
    border-radius: 12px;
    padding: 0 5px;
    font-size: 15px;
  }
}

/* =================== MAIN CARD ======================= */
.body_content {
  background:
    linear-gradient(180deg, rgba(52, 36, 28, .96) 0%, rgba(28, 22, 19, .95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 70px);
  min-width: 280px;
  width: 100%;
  border-radius: 70px;
  padding: 70px 20px;
  position: relative;
  box-sizing: border-box;
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, .12) inset,
    0 0 18px rgba(255, 122, 26, .18);
}

@media (max-width: 1023px) {
  .body_content {
    border-radius: 50px;
    padding: 25px 20px;
  }
}

@media (max-width: 767px) {
  .body_content {
    border-radius: 25px;
    padding: 25px 10px;
    height: calc(100% - 50px);
  }
}

/* =================== BACK BUTTON ===================== */
.btn-back {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
}

.btn-back__icon {
  width: 50px;
  height: 50px;
  margin: 0 10px 0 0;
  flex-shrink: 0;
  fill: var(--accent-gold);
  color: var(--accent-gold);
  transition: fill 0.5s ease, color 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(255, 122, 26, .2));
}

@media (max-width: 1023px) {
  .btn-back__icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) {
  .btn-back__icon {
    width: 30px;
    height: 30px;
  }
}

.btn-back__label {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-80);
  text-shadow: 0 2px 14px rgba(255, 122, 26, .24);
}

@media (max-width: 1023px) {
  .btn-back__label {
    font-size: 15px;
    line-height: 1.33;
  }
}

/* =================== WITH MESSAGES =================== */
.body_content.has-messages {
  justify-content: flex-end;
  padding-bottom: 20px;
  padding-top: 20px;
}

/* =================== CHAT CONTAINER ================== */
.chat-container {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: auto;
  flex: 1;
  margin: 0;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  align-self: flex-start;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  color: var(--text-80);
}

@media (max-width: 1023px) {
  .chat-container {
    margin-right: 0;
    width: 100%;
  }
}

.chat-container__header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .chat-container__header {
    grid-template-columns: 65px 1fr 1fr;
  }
}

.chat-container__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 2px 0;
  width: 100%;
  grid-column-start: 2;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 1;
}

.chat-container__header.header-centered {
  padding-right: 120px;
  grid-template-columns: 200px auto 1fr;
  grid-column-start: 2;
  grid-column-end: 4;
}

@media (max-width: 1023px) {
  .chat-container__header.header-centered {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .chat-container__header.header-centered {
    grid-template-columns: 65px auto 1fr;
  }
}

.chat-container__header-logo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 1;
  grid-row-end: 4;
  background: #0f0d0b;
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, .22) inset,
    0 0 18px rgba(255, 122, 26, .22);
}

@media (max-width: 767px) {
  .chat-container__header-logo {
    width: 50px;
    height: 50px;
    margin: 0 15px 5px 0;
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 1;
    grid-row-end: 2;
  }
}

.chat-container__header-title {
  color: var(--accent-gold);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(255, 122, 26, .24);
}

@media (max-width: 1023px) {
  .chat-container__header-title {
    font-size: 30px;
    line-height: 1.37;
  }
}

@media (max-width: 767px) {
  .chat-container__header-title {
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 1.35;
  }
}

.chat-container__header-subtitle {
  grid-column-start: 2;
  grid-column-end: 4;
  grid-row-start: 2;
  grid-row-end: 4;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-70);
  font-weight: 400;
  position: relative;
}

@media (max-width: 767px) {
  .chat-container__header-subtitle {
    font-size: 15px;
    line-height: 1.33;
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 4;
  }
}

.chat-container__header.header-top {
  padding: 22px 30px;
  background: rgba(28, 22, 19, .95);
  position: absolute;
  border-radius: 70px 70px 0 0;
  left: 0;
  top: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  transition: 0.2s ease;
  opacity: 0;
  z-index: 1;
  border: 1px solid rgba(212, 175, 55, .55);
}

.chat-container__header.header-top.visible {
  opacity: 1;
}

@media (max-width: 1023px) {
  .chat-container__header.header-top {
    border-radius: 50px 50px 0 0;
  }
}

@media (max-width: 767px) {
  .chat-container__header.header-top {
    border-radius: 25px 25px 0 0;
    padding: 15px 10px;
  }
}

.chat-container__header.header-top .chat-container__header-logo {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  margin-bottom: 0;
}

.chat-container__header.header-top .chat-container__header-title {
  font-size: 20px;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  grid-row-start: 1;
  grid-row-end: 4;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .chat-container__header.header-top .chat-container__header-title {
    font-size: 15px;
    line-height: 1.33;
  }
}

.chat-container__header.header-top .chat-container__header-subtitle {
  display: none;
}

.chat-container-visible {
  opacity: 1;
}

/* =================== MESSAGES ======================== */
.chat-message {
  display: block;
  align-items: center;
  max-width: 90%;
  flex-wrap: wrap;
  word-wrap: break-word;
  padding: 30px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-80);
  border-radius: 30px;
  position: relative;
  line-height: 1.35;
  margin: 0 0 15px;
}

@media (max-width: 1023px) {
  .chat-message {
    font-size: 15px;
    line-height: 1.33;
  }
}

@media (max-width: 767px) {
  .chat-message {
    margin-bottom: 10px;
  }
}

.chat-message .message-content {
  display: block;
  word-wrap: break-word;
  white-space: pre-line;
}

.chat-message p {
  margin: 0;
  word-wrap: break-word;
}

.user-message {
  background:
    linear-gradient(180deg, rgba(35, 27, 23, .95) 0%, rgba(28, 22, 19, .92) 100%);
  margin-left: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--text-80);
  border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, .12) inset;
}

@media (max-width: 1023px) {
  .user-message {
    padding: 15px 20px;
  }
}

.recipient-message {
  background-color: transparent;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 120px;
  max-width: 90%;
  padding: 0 20px 10px 20px;
  margin: 0 auto 10px 0;
  color: var(--text-80);
  border-left: 2px solid rgba(212, 175, 55, .35);
}

.recipient-message>div:first-child {
  max-width: 100%;
}

.user-message>div:first-child {
  max-width: 100%;
}

/* =================== TIMESTAMPS & ICONS ============== */
.timestamp {
  font-size: 15px;
  text-align: center;
  line-height: 1.33;
  white-space: pre;
  color: var(--text-55);
}

@media (max-width: 767px) {
  .timestamp {
    font-size: 10px;
    line-height: 1.4;
  }
}

.user-message .timestamp {
  color: var(--text-40);
  padding-left: 15px;
}

.recipient-message .timestamp {
  white-space: pre-line;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 0 0;
}

.recipient-message .bot_msg_icons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.recipient-message .bot_msg_icons span {
  margin: 0 17px 0 0;
  line-height: 0;
}

.recipient-message .bot_msg_icons span svg {
  fill: var(--text-55);
  width: 25px;
  max-height: 25px;
}

@media (max-width: 767px) {
  .recipient-message .bot_msg_icons span svg {
    width: 20px;
    max-height: 20px;
  }
}

.recipient-message .bot_msg_icons span:active svg,
.recipient-message .bot_msg_icons span:focus svg {
  fill: var(--accent-gold);
}

/* =================== DATE DIVIDER ==================== */
.date-divider {
  width: 100%;
  text-align: center;
  margin: auto 0 20px;
}

@media (max-width: 767px) {
  .date-divider {
    margin: auto 0 10px;
  }
}

.date-divider span {
  padding: 0 10px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-55);
  background: #151211;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50px;
  padding: 10px 20px;
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow: 0 0 18px rgba(255, 122, 26, .18);
}

@media (max-width: 1023px) {
  .date-divider span {
    font-size: 15px;
    line-height: 1.33;
  }
}

@media (max-width: 767px) {
  .date-divider span {
    padding: 10px 15px;
  }
}

/* =================== INPUT AREA ====================== */
.input-container {
  width: 100%;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
}

.input-container textarea {
  flex: 1;
  height: 70px;
  padding: 10px 20px 10px;
  margin: 10px 0 20px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-70);
  background: none;
  border: none;
  outline: none;
  border-radius: 10px;
  box-sizing: border-box;
  resize: none;
  transition: 0.2s ease;
}

@media (max-width: 1023px) {
  .input-container textarea {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .input-container textarea {
    border-radius: 15px;
    padding-bottom: 10px;
  }
}

.input-container:focus-within textarea {
  height: 90px;
}

.focused {
  border: 3px solid rgba(212, 175, 55, .85);
  transition: all 0.2s ease;
}

/* =================== TEXT/FILES WRAP ================= */
.text_files_container {
  background: rgba(28, 22, 19, .95);
  border: 3px solid rgba(28, 22, 19, .95);
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25) inset;
}

@media (max-width: 767px) {
  .text_files_container {
    border-radius: 15px;
  }
}

.text_files_container.focused {
  border: 3px solid rgba(212, 175, 55, .85);
  transition: all 0.2s ease;
  box-shadow: var(--ring);
}

.text_container {
  background-color: transparent;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  border: none;
}

.text_container button {
  border: 1px solid rgb(21, 0, 255);
  /* оставляем как было — логика может зависеть */
}

/* =================== SEND & INPUT BUTTONS ============ */
#send-button svg path {
  fill: var(--fire-ember);
}

#input_buttons {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 20px;
  bottom: 20px;
}

#input_buttons svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 767px) {
  #input_buttons svg {
    width: 20px;
    height: 20px;
  }
}

#input_buttons button {
  width: 30px;
  height: 30px;
  margin-right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 767px) {
  #input_buttons button {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
}

#input_buttons button svg path {
  fill: var(--text-55);
}

#input_buttons button:active svg path {
  fill: var(--fire-ember);
}

.focused textarea {
  outline: none;
  color: var(--text-80);
}

.input-container button {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

/* =================== BACK ROW & DOTS ================= */
.back_container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  box-sizing: border-box;
  padding: 0 7% 20px;
  color: var(--text-80);
  display: none;
}

@media (max-width: 1023px) {
  .back_container {
    padding: 0 65px 25px;
  }
}

@media (max-width: 767px) {
  .back_container {
    padding: 0 20px 20px;
  }
}

.dots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.dots div {
  width: 24px;
  height: 24px;
  margin: 0 0 0 10px;
  border-radius: 50%;
  background: var(--text-40);
  box-shadow: 0 0 8px rgba(255, 122, 26, .18);
}

@media (max-width: 1023px) {
  .dots div {
    width: 16px;
    height: 16px;
    margin-left: 8px;
  }
}

@media (max-width: 767px) {
  .dots div {
    width: 10px;
    height: 10px;
    margin-left: 5px;
  }
}

.has-messages .back_container svg {
  fill: var(--text-55);
  color: var(--text-55);
}

.has-messages .back_container div:nth-child(1) p {
  color: var(--text-55);
}

/* =================== LOADER ========================== */
.loader {
  width: 100%;
  color: var(--text-55);
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.35;
  padding-left: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
}

.loader div {
  display: block;
  margin-right: 15px;
}

@media (max-width: 1023px) {
  .loader {
    font-size: 15px;
    line-height: 1.33;
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .loader {
    margin-bottom: 10px;
  }
}

/* =================== SPLASH ========================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-screen img {
  border-color: var(--accent-gold);
  border-radius: 15px;
  border-width: 2px;
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 38px rgba(255, 122, 26, .26);
  background: #14110F;
}

/* =================== BUTTONS (SHORTCUT / ACTION) ===== */
.shortcut-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1.5em;
  background: linear-gradient(180deg, var(--fire-ember) 0%, var(--fire-ember-dk) 100%);
  color: #0B0B0C;
  border: 1px solid rgba(255, 122, 26, .75);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .35) inset,
    0 0 0 1px rgba(255, 122, 26, .22) inset;
  transition: filter .2s, box-shadow .2s;
}

.shortcut-button:hover {
  filter: saturate(1.05) brightness(1.03);
  box-shadow: var(--ring);
}

.send-confirm-button,
.cancel-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  font-size: 2em;
  color: #0B0B0C;
  background: linear-gradient(180deg, var(--fire-ember) 0%, var(--fire-ember-dk) 100%);
  border: 1px solid rgba(255, 122, 26, .75);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .35) inset,
    0 0 0 1px rgba(255, 122, 26, .22) inset;
  transition: filter .2s, box-shadow .2s;
}

.send-confirm-button:hover,
.cancel-button:hover {
  filter: saturate(1.05) brightness(1.03);
  box-shadow: var(--ring);
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  justify-content: flex-end;
}

/* =================== INLINE INPUT ==================== */
.inline-input {
  display: inline-block;
  padding: 5px;
  font-size: 1.5em;
  border: 2px solid var(--accent-gold);
  border-radius: 5px;
  color: var(--accent-gold);
  background-color: #14110F;
  margin: 0 5px;
  min-width: 120px;
  max-width: calc(100% - 20px);
}

/* =================== POPUP =========================== */
.popup-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #14110F;
  color: var(--text-80);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .6), 0 0 22px rgba(255, 122, 26, .28);
  display: none;
  z-index: 10000;
  text-align: center;
  max-width: 80%;
  min-width: 300px;
  border: 1px solid rgba(212, 175, 55, .85);
}

.popup-text {
  font-size: 1.125em;
  margin-bottom: 10px;
  color: var(--text-80);
}

.popup-close {
  cursor: pointer;
  font-size: 1em;
  padding: 8px 16px;
  background: linear-gradient(180deg, var(--fire-ember) 0%, var(--fire-ember-dk) 100%);
  color: #0B0B0C;
  border: 1px solid rgba(255, 122, 26, .75);
  border-radius: 5px;
  margin-top: 10px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .35) inset,
    0 0 0 1px rgba(255, 122, 26, .22) inset;
}

.popup-close:hover {
  filter: saturate(1.05) brightness(1.03);
  box-shadow: var(--ring);
}

/* =================== MISC ============================ */
.speaker-button {
  transition: opacity 0.2s ease-in-out;
}

.record-button {
  margin: 0;
  padding: 0;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-left: 20px;
  background-color: transparent;
}

.record-button img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
}

@media (max-width: 1023px) {
  .record-button {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 767px) {
  .record-button {
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 20px;
    right: 23px;
  }
}

.record-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
}

/* =================== HEADER (CONTENT) ================ */
.header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 120px;
  box-sizing: border-box;
  background: rgba(28, 22, 19, .95);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 22px 0 23px 20%;
  color: var(--text-80);
  margin-bottom: 60px;
  font-size: 1.5em;
  transition: transform 0.5s ease-in-out;
  z-index: 10;
  overflow: hidden;
}

.header-logo {
  width: 100px;
  height: 100px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 15px 0 0;
  overflow: hidden;
  background: #0f0d0b;
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, .22) inset,
    0 0 18px rgba(255, 122, 26, .22);
}

.header-logo img,
.header-logo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 980px;
  height: 120px;
}

.header-title {
  font-size: 1.25em;
  font-weight: 400;
  max-height: 70px;
  color: var(--accent-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 14px rgba(255, 122, 26, .24);
}

.header-subtitle {
  font-size: 0.875em;
  color: var(--text-70);
  opacity: 1;
  transition: opacity .5s, max-height .5s;
}

.header-top .header-subtitle {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.header-top {
  transform: translateY(0);
}

/* =================== CONTENT WRAPPER ================= */
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 0 0;
  overflow: hidden;
  transition: height 1s ease-in-out;
}

.has-messages .content-wrapper {
  height: 100dvh;
  padding-top: 25px;
  box-sizing: border-box;
}

/* =================== TOOLTIP ========================= */
.tooltip {
  position: absolute;
  width: 25%;
  background: rgba(0, 0, 0, .8);
  color: var(--text-80);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.875em;
  text-align: center;
  display: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

/* =================== FOOTER ========================== */
.footer {
  width: 100%;
  background: transparent;
  color: var(--text-55);
  text-align: center;
  padding: 10px 5px;
  font-size: 0.875em;
  position: relative;
  bottom: 0;
  left: 0;
}

/* =================== MEDIA QUERIES (AS-IS) =========== */
@media (max-width: 1450px) {
  .bot_chat_body {
    padding: 25px;
  }

  .chat-container {
    gap: 12px;
  }

  .loader {
    height: 22px;
    font-size: 1.15em;
  }

  .shortcut-button,
  .send-confirm-button,
  .cancel-button {
    padding: 9px 18px;
    font-size: 0.9375em;
  }

  .popup-text {
    font-size: 1.05em;
  }

  .popup-close {
    font-size: 0.9375em;
  }

  .header {
    height: 85px;
    padding: 20px 0 20px 18%;
    margin-bottom: 50px;
  }

  .header-logo {
    width: 45px;
    height: 45px;
  }

  .content-wrapper {
    padding: 25px 0 0;
  }

  .tooltip {
    font-size: 0.8125em;
    padding: 8px;
  }

  .footer {
    padding: 8px 4px;
    font-size: 0.8125em;
  }
}

@media (max-width: 1150px) {

  body,
  .bot_chat_body {
    padding: 20px;
  }

  .chat-container {
    gap: 10px;
  }

  .recipient-message .bot_msg_icons img {
    margin: 0 12px 0 0;
  }

  .loader {
    height: 20px;
    font-size: 1em;
  }

  .shortcut-button,
  .send-confirm-button,
  .cancel-button {
    padding: 8px 15px;
    font-size: 0.875em;
    border-radius: 8px;
  }

  .action-buttons {
    gap: 8px;
    margin-top: 4px;
  }

  .inline-input {
    padding: 4px;
    font-size: 0.8125em;
    min-width: 100px;
  }

  .popup-container {
    padding: 15px;
    min-width: 250px;
  }

  .popup-text {
    font-size: 0.9375em;
    margin-bottom: 8px;
  }

  .popup-close {
    font-size: 0.875em;
    padding: 6px 12px;
  }

  .header {
    height: 75px;
    padding: 18px 0 18px 15%;
    margin-bottom: 40px;
  }

  .header-logo {
    width: 40px;
    height: 40px;
    margin: 0 12px 0 0;
  }

  .header-title-container {
    max-width: 800px;
  }

  .content-wrapper {
    padding: 20px 0 0;
  }

  .tooltip {
    width: 30%;
    font-size: 0.75em;
    padding: 6px;
    max-height: 180px;
  }

  .footer {
    padding: 6px 4px;
    font-size: 0.75em;
  }
}

/* =================== SEND BUTTON SIZE ================ */
#send-button {
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  margin: 20px 20px 0 0;
  align-self: flex-start;
  padding: 0;
}

#send-button svg {
  width: 50px;
  height: 50px;
}

@media (max-width: 767px) {
  #send-button svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  #send-button {
    width: 30px;
    height: 30px;
  }
}

/* === Patch: no borders on messages, gold Login, no header borders === */

/* 1) Сообщения без рамок/попыток их рисовать */
.user-message {
  border: none !important;
  box-shadow: none !important;
}

.recipient-message {
  border: none !important;
  /* убираем левую линию */
  box-shadow: none !important;
}

/* 2) Кнопка Login — полностью золотая
   Подхватываем самые частые варианты селекторов: */
.bot_chat_body-header .button-login,
.bot_chat_body-header .button.login,
.bot_chat_body-header #header_login_btn,
.bot_chat_body-header #header_login_btn,
.bot_chat_body-header .button[data-role="login"] {
  background: var(--accent-gold) !important;
  color: #0B0B0C !important;
  border: 1px solid var(--accent-gold) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.bot_chat_body-header .button-login:hover,
.bot_chat_body-header .button.login:hover,
.bot_chat_body-header #header_login_btn:hover,
.bot_chat_body-header #header_login_btn:hover,
.bot_chat_body-header .button[data-role="login"]:hover {
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .35), 0 0 18px rgba(212, 175, 55, .28);
}

/* 3) Убрать рамки у хедеров */
.bot_chat_body-header {
  border: none !important;
  box-shadow: none !important;
}

/* верхний «липкий» хедер внутри карточки */
.chat-container__header.header-top {
  border: none !important;
  box-shadow: none !important;
}

/* контентный .header (если используется сверху карточки) */
.header {
  box-shadow: none !important;
}

/* Login / Sign Up buttons — тот же шрифт, что и у сообщений */
.bot_chat_body-header .button,
.bot_chat_body-header .button[data-role="login"],
.bot_chat_body-header .button[data-role="signup"] {
  font-family: "Open Sans Regular", sans-serif !important;
  font-size: 20px;
  /* подгони под размер текста сообщений */
  font-weight: 400;
  /* подстрой под .chat-message */
  line-height: 1.35;
}

/* =================== botwizard ================ */
.bot_wizard_body {
  margin: 0;
  background-color: #5066C9;
  font-family: "Open Sans Regular", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 160px;
  overflow: hidden;
}

@media (max-width: 1700px) {
  .bot_wizard_body {
    padding: 20px 120px;
  }
}

@media (max-width: 1500px) {
  .bot_wizard_body {
    padding: 20px 80px;
  }
}

@media (max-width: 1023px) {
  .bot_wizard_body {
    padding: 20px;
  }
}

.bot_wizard_body_content {
  background:
    linear-gradient(180deg, rgba(52, 36, 28, .96) 0%, rgba(28, 22, 19, .95) 100%);
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow:
    0 0 0 1px rgba(255, 122, 26, .12) inset,
    0 0 18px rgba(255, 122, 26, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-height: 875px;
  width: 100%;
  max-width: 1600px;
  position: relative;
  box-sizing: border-box;
  margin: auto 0;
}

.bot_wizard_body_content .header {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  position: relative;
  height: auto;
}

.bot_wizard_body_content .header .header-title-container {
  justify-content: center;
  height: auto;
}

.bot_wizard_body_content .header .header-title {
  font-size: 1.875em;
  font-weight: 400;
}

.bot_wizard_body_content .header-subtitle:empty {
  display: none;
}

.bot_wizard_body_content .header .header-title-container {
  width: 70%;
}

.bot_creation_box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0 90px;
}

@media (max-width: 767px) {
  #wizard-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.wizard-box {
  text-align: start;
  padding: 40px 50px 20px;
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 530px;
  margin: auto;
  box-sizing: border-box;
  color: var(--text-80);
  background-color: rgba(28, 22, 19, .95);
}

@media (max-width: 767px) {
  .wizard-box {
    flex-direction: column;
    align-items: center !important;
  }
}

.wizard-box h2 {
  font-size: 1.875em;
  font-weight: 300;
  color: #051356;
  margin-bottom: 10px;
  padding: 0 0 0 30px;
  color: var(--text-80)
}

@media (max-width: 767px) {
  .wizard-box h2 {
    padding-left: 20px;
  }
}

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  width: 60%;
  max-width: 1000px;
  margin: 0 auto;
  position: absolute;
  bottom: 20px;
  left: 20%;
}

.wizard-button {
  background-color: transparent;
  color: var(--fire-ember);
  border: none;
  cursor: pointer;
  font-size: 1.25em;
  font-weight: 400;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.wizard-button p {
  margin: 0 15px;
}

.wizard-button:disabled {
  cursor: not-allowed;
}

.radio-container {
  text-align: left;
  margin-top: 20px;
}

.radio-container label {
  display: flex;
  align-items: center;
  margin: 30px 0;
  cursor: pointer;
  font-size: 1.25em;
  font-weight: 400;
}

.radio-container input {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(212, 175, 55, .85);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-right: 15px;
  background-color: transparent;
}

.radio-container input:checked {
  border: 3px solid rgba(212, 175, 55, .85);
}

.radio-container input:hover {
  border: 3px solid rgba(212, 175, 55, .85);
  cursor: pointer;
}

.radio-container input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: rgba(212, 175, 55, .85);
  border-radius: 50%;
}

.bot-logo {
  width: 150px;
  height: 150px;
  background: rgba(28, 22, 19, .95);
  border: 1px solid rgba(212, 175, 55, .85);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}

.bot-input {
  min-width: 200px;
  max-width: 600px;
  width: 100%;
  height: 50px;
  padding: 15px 30px;
  box-sizing: border-box;
  font-size: 1.25em;
  font-weight: 400;
  color: var(--text-70);
  background: rgba(28, 22, 19, .95);
  border: 3px solid rgba(28, 22, 19, .95);
  border-radius: 3px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25) inset;
}

.bot-input:focus {
  outline: none;
  color: var(--text-70);
  border: 1px solid rgba(212, 175, 55, .85);
  transition: all 0.2s ease;
}

.bot-input:focus::placeholder {
  color: var(--text-70);
}

.bot-instructions {
  min-width: 200px;
  max-width: 600px;
  width: 100%;
  height: 180px;
  padding: 15px 30px;
  box-sizing: border-box;
  font-size: 1.25em;
  font-weight: 400;
  color: var(--text-70);
  resize: none;
  outline: none;
  background: rgba(28, 22, 19, .95);
  border: 1px solid rgba(28, 22, 19, .95);
  border-radius: 3px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25) inset;
}

.bot-instructions:focus {
  outline: none;
  border: 1px solid rgba(212, 175, 55, .85);
  transition: all 0.2s ease;
  color: var(--text-70);
}

.bot-instructions:focus::placeholder {
  color: var(--text-70);
}

.bot-description {
  min-width: 200px;
  max-width: 600px;
  width: 100%;
  height: 180px;
  padding: 15px 30px;
  box-sizing: border-box;
  font-size: 1.25em;
  font-weight: 400;
  color: var(--text-70);
  resize: none;
  outline: none;
  background: rgba(28, 22, 19, .95);
  border: 1px solid rgba(28, 22, 19, .95);
  border-radius: 3px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25) inset;
}

.bot-description:focus {
  outline: none;
  border: 1px solid rgba(212, 175, 55, .85);
  transition: all 0.2s ease;
  color: var(--text-70);
}

.bot-description:focus::placeholder {
  color: var(--text-70);
}

#bot-logo-tooltip {
  position: absolute;
  background-color: #5066C9;
  color: white;
  padding: 5px 10px;
  border: solid white 2px;
  border-radius: 5px;
  font-size: 1em;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.header-subtitle {
  margin-top: 10px;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.checkbox-container label {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Расстояние между чекбоксом и текстом */
  cursor: pointer;
  font-size: 1.25em;
  font-weight: 300;
}

.checkbox-container input[type=checkbox] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  outline: none;
  background-color: transparent;
  border: 3px solid var(--accent-gold);
  position: relative;
  flex-shrink: 0;
}

.checkbox-container input[type=checkbox]:checked {
  border: 3px solid var(--accent-gold);
  position: relative;
}

.checkbox-container input[type=checkbox]:hover {
  border: 3px solid var(--accent-gold);
  position: relative;
}

.checkbox-container input[type=checkbox]:checked::before {
  content: url("../images/checked_btn_gold.svg");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-go-paid-plan-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1.5em;
  background: linear-gradient(180deg, var(--fire-ember) 0%, var(--fire-ember-dk) 100%);
  color: #0B0B0C;
  border: 1px solid rgba(255, 122, 26, .75);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .35) inset,
    0 0 0 1px rgba(255, 122, 26, .22) inset;
  transition: filter .2s, box-shadow .2s;
}

.wizard-go-paid-plan-button:hover {
  filter: saturate(1.05) brightness(1.03);
  box-shadow: var(--ring);
}

@media (max-width: 1700px) {
  .bot_wizard_body_content {
    max-height: 800px;
  }

  .bot_wizard_body_content .header .header-title {
    font-size: 1.7em;
  }

  .wizard-box {
    padding: 50px;
    max-height: 480px;
  }

  .wizard-box h2 {
    font-size: 1.7em;
  }

  .wizard-navigation {
    width: 100%;
    left: 10%;
  }

  .wizard-button {
    font-size: 1.15em;
  }

  .radio-container label {
    margin: 25px 0;
    font-size: 1.15em;
  }

  .radio-container input {
    width: 27px;
    height: 27px;
    margin-right: 13px;
  }

  .radio-container input:checked::after {
    width: 14px;
    height: 14px;
  }

  .bot-input {
    height: 46px;
    padding: 13px 25px;
    font-size: 1.15em;
  }

  .bot-instructions,
  .bot-description {
    height: 160px;
    padding: 13px 25px;
    font-size: 1.15em;
  }

  #bot-logo-tooltip {
    font-size: 0.9em;
    padding: 4px 8px;
  }

  .checkbox-container {
    gap: 25px;
  }

  .checkbox-container label {
    font-size: 1.15em;
    gap: 13px;
  }

  .checkbox-container input[type=checkbox] {
    width: 25px;
    height: 25px;
  }

  .checkbox-container input[type=checkbox]:checked::before {
    width: 16px;
    height: 16px;
  }

  .wizard-go-paid-plan-button {
    padding: 13px 25px;
    font-size: 1.15em;
    border-radius: 25px;
  }
}

@media (max-width: 1500px) {
  .bot_wizard_body_content {
    max-height: 700px;
  }

  .bot_wizard_body_content .header .header-title {
    font-size: 1.5em;
  }

  .bot_wizard_body_content .header .header-title-container {
    width: 80%;
  }

  .wizard-box {
    padding: 40px;
    max-height: 430px;
  }

  .wizard-box h2 {
    font-size: 1.5em;
  }

  .wizard-navigation {
    width: 70%;
    left: 15%;
  }

  .wizard-button {
    font-size: 1em;
  }

  .wizard-button p {
    margin: 0 10px;
  }

  .radio-container {
    margin-top: 15px;
  }

  .radio-container label {
    margin: 20px 0;
    font-size: 1em;
  }

  .radio-container input {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-width: 2px;
  }

  .radio-container input:checked::after {
    width: 12px;
    height: 12px;
  }

  .bot-input {
    min-width: 180px;
    height: 42px;
    padding: 10px 20px;
    font-size: 1em;
  }

  .bot-instructions,
  .bot-description {
    min-width: 180px;
    height: 140px;
    padding: 10px 20px;
    font-size: 1em;
  }

  #bot-logo-tooltip {
    font-size: 0.85em;
    padding: 3px 6px;
    border-width: 1px;
  }

  .checkbox-container {
    gap: 20px;
  }

  .checkbox-container label {
    font-size: 1em;
    gap: 10px;
  }

  .checkbox-container input[type=checkbox] {
    width: 22px;
    height: 22px;
    border-width: 2px;
  }

  .checkbox-container input[type=checkbox]:checked::before {
    width: 14px;
    height: 14px;
  }

  .wizard-go-paid-plan-button {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 20px;
  }
}

/* =================== FILE UPLOAD BOX ================== */
.file-upload-box__input {
  display: none;
}

.file-upload-box__label {
  display: block;
  width: 100%;
  padding: 20px;
  background: rgba(28, 22, 19, .95);
  border: 3px solid rgba(28, 22, 19, .95);
  border-radius: 3px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25) inset;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: background-color 0.3s ease;
  margin: 0 0 15px;
}

.file-upload-box__label:hover {
  border: 3px solid rgba(212, 175, 55, .85);
}

@media screen and (max-width: 767px) {
  .file-upload-box__label {
    font-size: 16px;
    padding: 10px;
  }

}

.uploaded-files-box__list {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

@media screen and (max-width: 767px) {
  .uploaded-files-box__list {
    max-height: 100px;
  }
}

.uploaded-files-box__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.uploaded-files-box__delete {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--fire-ember) 0%, var(--fire-ember-dk) 100%);
  color: #0B0B0C;
  border: 1px solid rgba(255, 122, 26, .75);
  border-radius: 10px;
  margin-left: 10px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .35) inset,
    0 0 0 1px rgba(255, 122, 26, .22) inset;
  transition: filter .2s, box-shadow .2s;
}

.uploaded-files-box__delete:hover {
  filter: saturate(1.05) brightness(1.03);
  box-shadow: var(--ring);
}

@media screen and (max-width: 767px) {
  .uploaded-files-box__delete {
    padding: 5px 10px;
    font-size: 14px;
  }
}

.lessons-container__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 20px 0;
}

@media screen and (max-width: 767px) {
  .lessons-container__wrapper {
    margin: 10px 0;
  }
}

.lessons-container .shortcut-button {
  margin-left: 10px;
  flex-shrink: 0;
  font-size: 16px;
}

.lessons-container__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .lessons-container__list {
    max-height: 100px;
  }
}

.lessons-container__list li {
  margin-bottom: 5px;
  font-size: 16px;
  color: var(--text-80);
  margin: 0 0 10px;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, .85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px 5px 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.lessons-container__list-title {
  display: block;
  width: 100%;
  cursor: pointer;
  word-break: break-all;
}

.lessons-container__delete {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 10px;
  background: linear-gradient(180deg, var(--fire-ember) 0%, var(--fire-ember-dk) 100%);
  color: #0B0B0C;
  border: 1px solid rgba(255, 122, 26, .75);
  border-radius: 5px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .35) inset,
    0 0 0 1px rgba(255, 122, 26, .22) inset;
  transition: filter .2s, box-shadow .2s;
}

.lessons-container__delete:hover {
  filter: saturate(1.05) brightness(1.03);
  box-shadow: var(--ring);
}

.lesson-detail {
  margin: 0 auto 60px;
}

.lesson-detail h2 {
  margin: 10px 0;
}

.lesson-detail .shortcut-button {
  font-size: 16px;
  margin-top: 20px;
}

@media screen and (max-width: 767px) {
  .lesson-detail {
    padding: 10px 5px 0;
    margin: 0 auto;
  }

  .lesson-detail h2 {
    font-size: 1em;
  }

  .lesson-detail .bot-description {
    height: 100px;
  }

  .lesson-detail .shortcut-button {
    margin: 5px 0 0;
    width: 100%;
    padding: 5px 10px;
    font-size: 14px;
  }
}

.file-container__img {
  max-height: 400px;
  border: 2px solid var(--fire-ember);
  margin: 10px 0 5px;
  border-radius: 8px;
  height: auto;
  max-width: 100%;
}

.file-container__video {
  max-height: 400px;
  border: 2px solid var(--fire-ember);
  margin: 10px 0 5px;
  border-radius: 8px;
  max-width: 100%;
  background-color: #000;
}

.file-container p {
  color: var(--fire-ember);
}

.file-download {
  display: inline-block;
  margin: 10px 0;
  color: var(--accent-gold);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
}

.file-download__icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}

.file-download span {
  text-decoration: underline;
}

.file-download:hover span {
  text-decoration: none;
  filter: saturate(1.05) brightness(1.03);
}

@media screen and (max-width: 767px) {
  .file-container__img {
    max-height: 200px;
  }
  
  .file-container__video {
    max-height: 250px;
  }
}