@charset "UTF-8";
:root {
  --bs-blue: #1e30f3;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #e21e80;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #1e30f3;
  --bs-secondary: #e21e80;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 30, 48, 243;
  --bs-secondary-rgb: 226, 30, 128;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-font-sans-serif: "Plus Jakarta Sans";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-bg: #fff;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-2xl: 2rem;
  --bs-border-radius-pill: 50rem;
  --bs-link-color: #1e30f3;
  --bs-link-hover-color: #1826c2;
  --bs-code-color: #e21e80;
  --bs-highlight-bg: #fff3cd;
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  font-weight: var(--bs-body-font-weight);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);
  text-align: var(--bs-body-text-align);
  background-color: var(--bs-body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h5, .h5, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1, .h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
}

h2, .h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  h2, .h2 {
    font-size: 2rem;
  }
}

h3, .h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  h3, .h3 {
    font-size: 1.75rem;
  }
}

h5, .h5 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  padding-left: 2rem;
}

ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul ul {
  margin-bottom: 0;
}

small, .small {
  font-size: 0.875em;
}

a {
  color: var(--bs-link-color);
  text-decoration: underline;
}
a:hover {
  color: var(--bs-link-hover-color);
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  vertical-align: middle;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  text-transform: none;
}

button,
[type=button],
[type=submit] {
  -webkit-appearance: button;
}
button:not(:disabled),
[type=button]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::file-selector-button {
  font: inherit;
  -webkit-appearance: button;
}

[hidden] {
  display: none !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.display-3 {
  font-size: calc(1.525rem + 3.3vw);
  font-weight: 300;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  .display-3 {
    font-size: 4rem;
  }
}

.display-4 {
  font-size: calc(1.475rem + 2.7vw);
  font-weight: 300;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  .display-4 {
    font-size: 3.5rem;
  }
}

.display-5 {
  font-size: calc(1.425rem + 2.1vw);
  font-weight: 300;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  .display-5 {
    font-size: 3rem;
  }
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.container {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
   .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
   .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
   .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
   .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
   .container {
    max-width: 1320px;
  }
}
.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.025);
  padding-left: calc(var(--bs-gutter-x) * 0.025);
  margin-top: var(--bs-gutter-y);
}

.col {
  flex: 1 0 0%;
}

.row-cols-1 > * {
  flex: 0 0 auto;
  width: 100%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

.gx-5 {
  --bs-gutter-x: 3rem;
}
@media (min-width: 768px) {
  .row-cols-md-3 > * {
    flex: 0 0 auto;
    width: 33.3333333333%;
  }
}
@media (min-width: 992px) {
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-lg-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }
}
@media (min-width: 1200px) {
  .col-xl-9 {
    flex: 0 0 auto;
    width: 75%;
  }
}
@media (min-width: 1400px) {
  .col-xxl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .col-xxl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .col-xxl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  .col-xxl-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
}

.btn {
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-font-family: ;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 400;
  --bs-btn-line-height: 1.5;
  --bs-btn-color: #212529;
  --bs-btn-bg: transparent;
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: transparent;
  --bs-btn-border-radius: 0.375rem;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
  --bs-btn-disabled-opacity: 0.65;
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
  display: inline-block;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-family: var(--bs-btn-font-family);
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  line-height: var(--bs-btn-line-height);
  color: var(--bs-btn-color);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  background-color: var(--bs-btn-bg);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
.btn:hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}
.btn:focus-visible {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
  outline: 0;
  box-shadow: var(--bs-btn-focus-box-shadow);
}
:not(.btn-check) + .btn:active, .btn:first-child:active, .btn.active, .btn.show {
  color: var(--bs-btn-active-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}
:not(.btn-check) + .btn:active:focus-visible, .btn:first-child:active:focus-visible, .btn.active:focus-visible, .btn.show:focus-visible {
  box-shadow: var(--bs-btn-focus-box-shadow);
}
.btn:disabled, .btn.disabled {
  color: var(--bs-btn-disabled-color);
  pointer-events: none;
  background-color: var(--bs-btn-disabled-bg);
  border-color: var(--bs-btn-disabled-border-color);
  opacity: var(--bs-btn-disabled-opacity);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1e30f3;
  --bs-btn-border-color: #1e30f3;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1a29cf;
  --bs-btn-hover-border-color: #1826c2;
  --bs-btn-focus-shadow-rgb: 64, 79, 245;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1826c2;
  --bs-btn-active-border-color: #1724b6;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1e30f3;
  --bs-btn-disabled-border-color: #1e30f3;
}

.btn-outline-light {
  --bs-btn-color: #f8f9fa;
  --bs-btn-border-color: #f8f9fa;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #f8f9fa;
  --bs-btn-hover-border-color: #f8f9fa;
  --bs-btn-focus-shadow-rgb: 248, 249, 250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #f8f9fa;
  --bs-btn-active-border-color: #f8f9fa;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #f8f9fa;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #f8f9fa;
  --bs-gradient: none;
}

.btn-outline-dark {
  --bs-btn-color: #212529;
  --bs-btn-border-color: #212529;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #212529;
  --bs-btn-hover-border-color: #212529;
  --bs-btn-focus-shadow-rgb: 33, 37, 41;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #212529;
  --bs-btn-active-border-color: #212529;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #212529;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #212529;
  --bs-gradient: none;
}

.btn-lg {
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-font-size: 1.25rem;
  --bs-btn-border-radius: 0.5rem;
}

.fade {
  transition: opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
  .fade {
    transition: none;
  }
}
.fade:not(.show) {
  opacity: 0;
}

.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .collapsing {
    transition: none;
  }
}

.nav {
  --bs-nav-link-padding-x: 1rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-font-weight: ;
  --bs-nav-link-color: var(--bs-link-color);
  --bs-nav-link-hover-color: var(--bs-link-hover-color);
  --bs-nav-link-disabled-color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
  font-size: var(--bs-nav-link-font-size);
  font-weight: var(--bs-nav-link-font-weight);
  color: var(--bs-nav-link-color);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .nav-link {
    transition: none;
  }
}
.nav-link:hover, .nav-link:focus {
  color: var(--bs-nav-link-hover-color);
}
.nav-link.disabled {
  color: var(--bs-nav-link-disabled-color);
  pointer-events: none;
  cursor: default;
}

.navbar {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0.5rem;
  --bs-navbar-color: rgba(0, 0, 0, 0.55);
  --bs-navbar-hover-color: rgba(0, 0, 0, 0.7);
  --bs-navbar-disabled-color: rgba(0, 0, 0, 0.3);
  --bs-navbar-active-color: rgba(0, 0, 0, 0.9);
  --bs-navbar-brand-padding-y: 0.3125rem;
  --bs-navbar-brand-margin-end: 1rem;
  --bs-navbar-brand-font-size: 1.25rem;
  --bs-navbar-brand-color: rgba(0, 0, 0, 0.9);
  --bs-navbar-brand-hover-color: rgba(0, 0, 0, 0.9);
  --bs-navbar-nav-link-padding-x: 0.5rem;
  --bs-navbar-toggler-padding-y: 0.25rem;
  --bs-navbar-toggler-padding-x: 0.75rem;
  --bs-navbar-toggler-font-size: 1.25rem;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --bs-navbar-toggler-border-color: rgba(0, 0, 0, 0.1);
  --bs-navbar-toggler-border-radius: 0.375rem;
  --bs-navbar-toggler-focus-width: 0.25rem;
  --bs-navbar-toggler-transition: box-shadow 0.15s ease-in-out;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x);
}
.navbar > .container {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  padding-top: var(--bs-navbar-brand-padding-y);
  padding-bottom: var(--bs-navbar-brand-padding-y);
  margin-right: var(--bs-navbar-brand-margin-end);
  font-size: var(--bs-navbar-brand-font-size);
  color: var(--bs-navbar-brand-color);
  text-decoration: none;
  white-space: nowrap;
}
.navbar-brand:hover, .navbar-brand:focus {
  color: var(--bs-navbar-brand-hover-color);
}

.navbar-nav {
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-font-weight: ;
  --bs-nav-link-color: var(--bs-navbar-color);
  --bs-nav-link-hover-color: var(--bs-navbar-hover-color);
  --bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.navbar-nav .show > .nav-link,
.navbar-nav .nav-link.active {
  color: var(--bs-navbar-active-color);
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-toggler {
  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
  font-size: var(--bs-navbar-toggler-font-size);
  line-height: 1;
  color: var(--bs-navbar-color);
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
}
@media (prefers-reduced-motion: reduce) {
  .navbar-toggler {
    transition: none;
  }
}
.navbar-toggler:hover {
  text-decoration: none;
}
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 var(--bs-navbar-toggler-focus-width);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: var(--bs-navbar-toggler-icon-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: var(--bs-navbar-nav-link-padding-x);
    padding-left: var(--bs-navbar-nav-link-padding-x);
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

.card {
  --bs-card-spacer-y: 1rem;
  --bs-card-spacer-x: 1rem;
  --bs-card-title-spacer-y: 0.5rem;
  --bs-card-border-width: 1px;
  --bs-card-border-color: var(--bs-border-color-translucent);
  --bs-card-border-radius: 0.375rem;
  --bs-card-box-shadow: ;
  --bs-card-inner-border-radius: calc(0.375rem - 1px);
  --bs-card-cap-padding-y: 0.5rem;
  --bs-card-cap-padding-x: 1rem;
  --bs-card-cap-bg: rgba(0, 0, 0, 0.03);
  --bs-card-cap-color: ;
  --bs-card-height: ;
  --bs-card-color: ;
  --bs-card-bg: #fff;
  --bs-card-img-overlay-padding: 1rem;
  --bs-card-group-margin: 0.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: var(--bs-card-height);
  word-wrap: break-word;
  background-color: var(--bs-card-bg);
  background-clip: border-box;
  border: var(--bs-card-border-width) solid var(--bs-card-border-color);
  border-radius: var(--bs-card-border-radius);
}

.card-body {
  flex: 1 1 auto;
  padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
  color: var(--bs-card-color);
}

.badge {
  --bs-badge-padding-x: 0.65em;
  --bs-badge-padding-y: 0.35em;
  --bs-badge-font-size: 0.75em;
  --bs-badge-font-weight: 700;
  --bs-badge-color: #fff;
  --bs-badge-border-radius: 0.375rem;
  display: inline-block;
  padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
  font-size: var(--bs-badge-font-size);
  font-weight: var(--bs-badge-font-weight);
  line-height: 1;
  color: var(--bs-badge-color);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--bs-badge-border-radius);
}
.badge:empty {
  display: none;
}

.btn .badge {
  position: relative;
  top: -1px;
}

.overflow-hidden {
  overflow: hidden !important;
}

.d-inline {
  display: inline !important;
}

.d-grid {
  display: grid !important;
}

.d-flex {
  display: flex !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.border-0 {
  border: 0 !important;
}

.h-100 {
  height: 100% !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.m-0 {
  margin: 0 !important;
}

.mx-1 {
  margin-right: 0.25rem !important;
  margin-left: 0.25rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mt-auto {
  margin-top: auto !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.px-5 {
  padding-right: 3rem !important;
  padding-left: 3rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-6 {
  font-size: 1rem !important;
}

.fw-light {
  font-weight: 200 !important;
}

.fw-bolder {
  font-weight: bolder !important;
}

.text-center {
  text-align: center !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-primary {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.text-white {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
}

.text-muted {
  --bs-text-opacity: 1;
  color: #6c757d !important;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.bg-light {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

.bg-white {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}

.rounded-3 {
  border-radius: var(--bs-border-radius-lg) !important;
}

.rounded-4 {
  border-radius: var(--bs-border-radius-xl) !important;
}

@media (min-width: 576px) {
  .d-sm-flex {
    display: flex !important;
  }
  .flex-sm-row {
    flex-direction: row !important;
  }
  .justify-content-sm-center {
    justify-content: center !important;
  }
  .me-sm-3 {
    margin-right: 1rem !important;
  }
}
@media (min-width: 768px) {
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}
@media (min-width: 992px) {
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  .text-lg-start {
    text-align: left !important;
  }
}
@media (min-width: 1400px) {
  .justify-content-xxl-start {
    justify-content: flex-start !important;
  }
  .text-xxl-start {
    text-align: left !important;
  }
}
@media (min-width: 1200px) {
  .fs-2 {
    font-size: 2rem !important;
  }
  .fs-3 {
    font-size: 1.75rem !important;
  }
}
body,
html {
  height: 100%;
}

.bg-gradient-primary-to-secondary {
  background: #1e30f3;
  background: linear-gradient(135deg, #1e30f3 0%, #e21e80 100%);
}

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

.rounded-4 {
  border-radius: 1rem !important;
}

.feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  font-size: 1.5rem;
}

/* меню рег та лог*/
@media screen and (min-width: 900px) {
    .login-section,
    .register-section {
        display: block;
        height: 510px;
        width: 500px;
        position: fixed;
        left: calc(50% - 250px);
        top: 100px;
        background-color: white;
        border: solid 1px #741FB5;
        padding: 25px;
        border-radius: 10px;
        z-index: 10;
    }
    
    .login-section h2,
    .register-section h2 {
        text-align: center;
        color: black;
    }

    .form-input {
        position: relative;
        top: 20px;
    }
    .field {
        position: relative;
        left: calc(50% - 200px);
        width: 400px;
    }
    .field input {
        width: 100%;
        padding: 14px 10px;
        font-size: 17px;
        border: 1px solid #ccc;
        outline: none;
    }
    .field label {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 17px;
        pointer-events: none;
        transition: 0.2s ease;
        background: white;
        padding: 0 4px;
    }
    .field input:focus + label,
    .field input:not(:placeholder-shown) + label {
        top: -6px;
        font-size: 12px;
        color: #333;
    }
    .register-section button {
        position: relative;
        left: calc(50% - 200px);
        top: 0px;
        width: 400px;
        padding: 15px;
        background-color: #741FB5;
        font-size: 16px;
        color: white;
        border: solid 1px #741FB5;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.5s;
    }
    
    .form-input button:hover {
        background-color: #4e117c;
    }
    .btn-close-logreg {
      position: relative;
      top: -20px;
      font-size: 40px;
      cursor: pointer;
    }
    .login-section button {
        position: relative;
        left: calc(50% - 200px);
        top: 0px;
        width: 400px;
        padding: 15px;
        background-color: #741FB5;
        font-size: 16px;
        color: white;
        border: solid 1px #741FB5;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.5s;
    }
    #google-login-btn {
        display: flex;
        gap: 20px;
        position: relative;
        left: calc(50% - 200px);
        height: 55px;
        width: 400px;
        padding: 15px;
        background-color: white;
        font-size: 16px;
        color: black;
        border: solid 1px #741FB5;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.5s;
        text-decoration: none;
    }
    #google-login-btn img {
        position: relative;
        top: -10px;
    }
    .password-toggle-btn {
        display: none;
        height: 20px;
        width: 120px;
        position: absolute;
        top: 14px;
        right: 5px;
        font-size: 14px;
        cursor: pointer;
        background-color: white;
        text-align: end;
    }    
    .btn-open-login {
        display: block;
        font-size: 14px;
        width: calc(100% - 15px);
        position: relative;
        left: 50px;
        top: 0px;
        cursor: pointer;
    }
    .btn-open-reg {
        font-size: 14px;
        display: block;
        width: calc(100% - 15px);
        position: relative;
        left: 50px;
        top: 0px;
        cursor: pointer;
    }
    .black-shadow {
        position: fixed;
        top: 0px;
        left: 0px;
        display: none;
        width: 100%;
        height: 100%;
        background-color: #33333341;
        z-index: 5;
    }
    .error-container {
        font-size: 14px;
        text-align: center;
        width: 100%;
        color: rgb(201, 4, 4);
    }
    .error-container.login {
        position: absolute;
        top: -22px;
    }
    .error-container.register {
        position: absolute;
        top: -22px;
    }
    .list-btns-login {
      position: relative;
      top: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
}
@media screen and (max-width: 900px) {
    .login-section,
    .register-section {
        display: block;
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background-color: white;
        padding: 18px;
        z-index: 10;
    }
    .login-section h2,
    .register-section h2 {
        position: relative;
        top: 95px;
        text-align: center;
        color: black;
    }

    .form-input {
        position: relative;
        top: 140px;
    }
    .field {
        position: relative;
        left: 20px;
        width: calc(100% - 40px);
    }
    .field input {
        width: 100%;
        padding: 14px 10px;
        font-size: 15px;
        border: 1px solid #ccc;
        outline: none;
    }
    .field label {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 15px;
        pointer-events: none;
        transition: 0.2s ease;
        background: white;
        padding: 0 4px;
    }
    .field input:focus + label,
    .field input:not(:placeholder-shown) + label {
        top: -6px;
        font-size: 12px;
        color: #333;
    }
    .register-section button {
      position: relative;
      left: 20px;
      top: 0px;
      width: calc(100% - 40px);
      padding: 15px;
      background-color: #741FB5;
      color: white;
      font-size: 15px;
      border-radius: 10px;
      border: solid 1px #741FB5
    }
    .btn-close-logreg {
        font-size: 38px;
    }
    .password-toggle-btn {
        display: none;
        height: 20px;
        width: 120px;
        position: absolute;
        top: 14px;
        right: -10px;
        font-size: 14px;
        cursor: pointer;
        background-color: white;
        text-align: end;
    }
    .btn-open-login {
        display: block;
        width: calc(100% - 15px);
        text-align: center;
        position: relative;
        top: 0px;
    }
    .btn-open-reg {
        display: block;
        width: calc(100% - 15px);
        text-align: center;
        position: relative;
        top: 0px;
    }
    .black-shadow {
        position: fixed;
        top: 0px;
        left: 0px;
        display: none;
        width: 100%;
        height: 100%;
        background-color: #33333341;
        z-index: 10;
    }
    #google-login-btn {
      display: flex;
      gap: 20px;
      position: relative;
      left: 20px;
      top: 0px;
      height: 55px;
      width: calc(100% - 40px);
      padding: 15px;
      background-color: white;
      font-size: 16px;
      color: black;
      border: solid 1px #741FB5;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.5s;
      text-decoration: none;
    }
    #google-login-btn img {
        position: relative;
        top: -10px;
    }
    .login-section button {
        position: relative;
        left: 20px;
        top: 0px;
        width: calc(100% - 40px);
        padding: 15px;
        background-color: #741FB5;
        font-size: 16px;
        color: white;
        border: solid 1px #741FB5;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.5s;
    }
    .error-container {
        font-size: 14px;
        text-align: center;
        width: calc(100% - 30px);
        color: rgb(201, 4, 4);
    }
    .error-container.login {
        position: relative;
        top: 0px;
    }
    .error-container.register {
        position: relative;
        top: 0px;
    }
    .list-btns-login {
      position: relative;
      top: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
}
/* --------- */

.ai-blob {
  position: relative;
  left: calc(50% - 55px);
  width: 110px;
  height: 110px;
  margin-bottom: 25px;

  background: linear-gradient(315deg,#1e30f3,#e21e80,#1e30f3);
  background-size: 300% 300%;

  animation: gradientMove 8s ease infinite,
             blobMorph 10s ease-in-out infinite,
             blobRotate 20s linear infinite,
             fadeIn 1s ease forwards;

  filter: blur(10px);
  opacity: 0;
}
@keyframes gradientMove {
  0% {background-position:0% 50%;}
  50% {background-position:100% 50%;}
  100% {background-position:0% 50%;}
}
@keyframes blobMorph {
  0% {
    border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  }
  25% {
    border-radius: 50% 60% 40% 60% / 60% 40% 55% 45%;
  }
  50% {
    border-radius: 65% 35% 60% 40% / 45% 65% 35% 55%;
  }
  75% {
    border-radius: 45% 55% 50% 50% / 60% 40% 60% 40%;
  }
  100% {
    border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  }
}
@keyframes blobRotate {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1); }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.typing::after{
  content: "|";
  margin-left: 4px;
  animation: blink 0.5s infinite;
}
@keyframes blink{
  0%,100%{opacity:1;}
  50%{opacity:0;}
}
@media screen and (max-width: 840px)  {
  .chat-container {
    flex: 1; 
    max-height: 100%;
    width: 100%;
    overflow-y: auto;
    position: relative;
    padding: 20px;
  }
  .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    width: 100%;
  }
}
@media screen and (min-width: 841px) {
  .chat-container {
    flex: 1;
    max-height: 100%; 
    width: 100%;
    overflow-y: auto;
    padding: 20px;
  }
  .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    width: 70%;
    left: 15%;
  }
  #type-ai-container {
    position: relative;
    left: 25px;
    width: calc(100% - 50px);
  }
}
@media screen and (min-width: 1240px)  {
  .chat-container {
    flex: 1; 
    max-height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 20px;
  }
  .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    width: 50%;
    left: 25%;
  }
}

.chat-container {
  position: relative;
}
.chat-wrapper {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 700px;
  z-index: 100;
}
.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px;
  border-radius: 20px;
  background: #f5f5f5;
  box-shadow: 0 5px 15px gray;
}
@media screen and (max-width: 550px) {
  .message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
  }
}
@media screen and (min-width: 551px) {
  .message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
  }
}
.chat-messages {
  padding-bottom: 120px;
}
.chat-input textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 10px;

  resize: none;
  overflow: hidden;

  min-height: 40px;
  max-height: 120px; /* ліміт як у чатах */
  line-height: 1.4;
}
.media-container {
  display: flex;
  gap: 10px;

  padding: 10px;

  border-radius: 15px;

  max-height: 120px;
  overflow-y: auto;
}
.media-item {
  max-width: 100px;
  max-height: 100px;
  border-radius: 10px;
  box-shadow: 0px 0px 5px gray;
  object-fit: cover;
}
.send-btn {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  border: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.send-btn img {
  width: 22px;
  height: 22px;
}

.left-actions {
  display: flex;
  gap: 5px;
}
.icon-btn {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: none;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.plus-btn img {
  width: 40px;
  height: 40px;
}
.media-wrapper {
  position: relative;
  display: inline-block;
}
.media-item {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
.media-wrapper video {
  width: 120px;
  height: 100px;
}
.remove-media {
  position: absolute;
  top: -6px;
  right: -6px;

  width: 22px;
  height: 22px;

  border: none;
  border-radius: 50%;
  background: white;
  color: black;
  font-size: 14px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

/* ------ */
section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* повідомлення користувача (праворуч) */
.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  border-bottom-right-radius: 4px;

  padding: 10px;
  max-width: 420px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-image,
.message-video {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.message-file {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  font-size: 14px;
}

/* повідомлення ШІ (ліворуч) */
.message.ai {
  align-self: flex-start;
  background: #f1f1f1;
  color: #222;
  border-bottom-left-radius: 4px;
}

.message.ai.rich-message {
  padding: 14px 16px;
  line-height: 1.55;
}
.message.ai.rich-message p {
  margin: 0 0 10px;
}
.message.ai.rich-message p:last-child,
.message.ai.rich-message ul:last-child,
.message.ai.rich-message ol:last-child,
.message.ai.rich-message blockquote:last-child {
  margin-bottom: 0;
}
.message.ai.rich-message ul,
.message.ai.rich-message ol {
  margin: 7px 0 12px;
  padding-left: 22px;
}
.message.ai.rich-message li + li {
  margin-top: 5px;
}
.message.ai.rich-message h3,
.message.ai.rich-message h4,
.message.ai.rich-message h5 {
  margin: 2px 0 9px;
  color: #17131f;
  line-height: 1.3;
}
.message.ai.rich-message h3 { font-size: 18px; }
.message.ai.rich-message h4 { font-size: 17px; }
.message.ai.rich-message h5 { font-size: 16px; }
.message.ai.rich-message strong {
  color: #3f237a;
  font-weight: 750;
}
.message.ai.rich-message mark {
  padding: 1px 4px;
  border-radius: 4px;
  background: #e9ddff;
  color: #3c2368;
}
.message.ai.rich-message code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #dedee4;
  color: #29252f;
  font-size: .9em;
}
.message.ai.rich-message blockquote {
  margin: 8px 0 12px;
  padding: 8px 12px;
  border-left: 3px solid #7957d5;
  background: rgba(121, 87, 213, .08);
  color: #51485f;
}

.message.ai.subtitle-selection-message {
  width: min(650px, 100%);
  max-width: min(650px, 92%);
  box-sizing: border-box;
}
.subtitle-style-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.subtitle-style-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d9d5e3;
  border-radius: 14px;
  background: #fff;
  color: #241d2f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.subtitle-style-card[hidden] { display: none; }
.subtitle-style-card:hover,
.subtitle-style-card:focus-visible {
  border-color: #7651d5;
  box-shadow: 0 8px 22px rgba(90, 55, 150, .16);
  transform: translateY(-2px);
  outline: none;
}
.subtitle-style-card.selected {
  border-color: #6542c5;
  box-shadow: 0 0 0 2px rgba(101, 66, 197, .18);
}
.subtitle-style-card:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}
.subtitle-style-card.selected:disabled { opacity: 1; }
.subtitle-style-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 9px;
  background: #171128;
}
.subtitle-style-card strong {
  color: #2a2036;
  font-size: 14px;
  line-height: 1.2;
}
.subtitle-style-card small {
  color: #6c6475;
  font-size: 12px;
  line-height: 1.35;
}
.subtitle-style-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #6041ad;
  font-size: 13px;
  font-weight: 650;
}
.subtitle-picker-more {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 9px 14px;
  border: 1px solid #bfaeea;
  border-radius: 10px;
  background: #f7f4ff;
  color: #593bab;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.subtitle-picker-more:hover,
.subtitle-picker-more:focus-visible {
  border-color: #7651d5;
  background: #eee8ff;
  outline: none;
}
.subtitle-picker-more:disabled {
  cursor: wait;
  opacity: .62;
}

.message.ai.video-style-selection-message {
  width: min(720px, 100%);
  max-width: min(720px, 96%);
  box-sizing: border-box;
}
.video-style-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.video-style-cards { display: contents; }
.video-style-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  border: 1px solid #d9d5e3;
  border-radius: 15px;
  background: #fff;
  color: #241d2f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.video-style-card:hover,
.video-style-card:focus-visible {
  border-color: #7651d5;
  box-shadow: 0 10px 26px rgba(90, 55, 150, .18);
  transform: translateY(-2px);
  outline: none;
}
.video-style-card.selected {
  border-color: #6542c5;
  box-shadow: 0 0 0 2px rgba(101, 66, 197, .18);
}
.video-style-card:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}
.video-style-card.selected:disabled { opacity: 1; }
.video-style-card { position: relative; }
.video-style-choice:empty { display: none; }
.video-style-choice {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(36, 29, 47, .72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
}
.video-style-card.selected .video-style-choice { background: #1f9d55; }
.video-style-card.selected { border-color: #1f9d55; box-shadow: 0 0 0 2px rgba(31, 157, 85, .22); }
.video-style-card.not-selected:disabled { opacity: .5; }
.video-style-card:disabled:hover { transform: none; box-shadow: none; }
.video-style-picker[data-state="closed"] .video-style-status,
.video-style-picker[data-state="taken"] .video-style-status { color: #777080; font-weight: 600; }
.video-style-preview {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  background: #171128;
}
.video-style-card strong {
  color: #2a2036;
  font-size: 14px;
  line-height: 1.25;
}
.video-style-card small {
  color: #6c6475;
  font-size: 12px;
  line-height: 1.35;
}
.video-style-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}
.video-style-engine {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
}
.video-style-engine.gpt { background: #e3f4ec; color: #0e6b45; }
.video-style-engine.claude { background: #f7e7dc; color: #9a4a1c; }
.video-style-cost {
  color: #4f4760;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.video-style-hint,
.video-style-status {
  grid-column: 1 / -1;
  font-size: 13px;
}
.video-style-hint {
  color: #777080;
  line-height: 1.4;
}
.video-style-status {
  min-height: 18px;
  color: #6041ad;
  font-weight: 650;
}
.scene-text-generate {
  align-self: flex-end;
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #7651d5, #5833b8);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(88, 51, 184, .22);
}
.scene-text-generate:hover,
.scene-text-generate:focus-visible {
  background: linear-gradient(135deg, #6842cc, #48279f);
  outline: none;
}
.scene-text-generate:disabled {
  cursor: wait;
  opacity: .62;
  box-shadow: none;
}
@media screen and (max-width: 700px) {
  .subtitle-style-picker { grid-template-columns: 1fr; }
  .subtitle-style-card { display: grid; grid-template-columns: 124px 1fr; align-items: center; }
  .subtitle-style-card small { grid-column: 2; }
  .video-style-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  .video-style-cards {
    display: flex;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .video-style-card {
    flex: 0 0 min(72vw, 250px);
    min-width: 0;
    scroll-snap-align: start;
  }
  .video-style-hint,
  .video-style-status {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
  }
}

/* маленький "хвостик" */
.message.user::after {
  content: "";
  position: absolute;
}

/* контейнер щоб працював position */
.message {
  position: relative;
}

/* контейнер відео */
.video-container {
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.chat-video-slot {
  width: min(320px, 100%);
  margin-top: 4px;
}
.chat-video-skeleton {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #dfe0e5;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.chat-video-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255,255,255,.72) 48%,
    transparent 76%
  );
  animation: chat-video-shimmer 1.35s ease-in-out infinite;
}
.chat-video-skeleton-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #85868e;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.chat-video-skeleton.error::before { display: none; }
.chat-video-skeleton.error { background: #f2e5e5; }
.chat-video-skeleton.error .chat-video-skeleton-label { color: #a33b3b; }
@keyframes chat-video-shimmer {
  to { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-video-skeleton::before { animation: none; }
}
/* саме відео */
.video-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-container video {
  max-width: 100%;
  border-radius: 10px;
}

.save-video-btn {
  align-self: flex-start;
  padding: 14px;
  width: 320px;
  border: solid 1px gray;
  border-radius: 6px;
  background: white;
  color: black;
  cursor: pointer;
}
.save-video-btn:disabled {
  cursor: wait;
  opacity: .64;
}

.video-edit-actions {
  align-self: flex-start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.video-edit-actions .edit-video-btn {
  margin-top: 0;
}

.video-versions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.video-versions-btn:hover { background: #f2f2f2; }
.video-versions-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-versions-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 12, 18, .68);
  backdrop-filter: blur(8px);
}
.video-versions-panel {
  width: 560px;
  max-width: calc(100vw - 48px);
  max-height: min(560px, calc(100vh - 64px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

@media (min-width: 601px) {
  #video-versions-overlay > .video-versions-panel {
    width: 560px !important;
    max-width: calc(100vw - 64px) !important;
    flex: 0 1 560px !important;
  }
}
.video-versions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid #ececf0;
}
.video-versions-header div { display: flex; flex-direction: column; gap: 4px; }
.video-versions-header strong { color: #17171c; font-size: 18px; }
.video-versions-header span { color: #777780; font-size: 13px; }
.video-versions-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f4;
  color: #444;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.video-versions-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 390px;
  padding: 14px;
  overflow-y: auto;
}
.video-version-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e7e7eb;
  border-radius: 12px;
  background: #fff;
  color: #222;
  text-align: left;
  cursor: pointer;
}
.video-version-row:hover { border-color: #bdb2ff; background: #faf9ff; }
.video-version-row.current { border-color: #7c5cff; box-shadow: 0 0 0 1px #7c5cff; }
.video-version-number {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 9px;
  background: #eeeaff;
  color: #6043df;
  font-weight: 800;
}
.video-version-details { display: flex; flex-direction: column; gap: 3px; }
.video-version-details strong { font-size: 14px; }
.video-version-details small { color: #81818a; font-size: 11px; }
.video-version-status { color: #6c53df; font-size: 12px; }
.video-versions-loading,
.video-versions-error { padding: 30px 18px; color: #777; text-align: center; }
.video-versions-error { color: #b42318; }

@media (max-width: 600px) {
  .video-versions-overlay { align-items: flex-end; padding: 0; }
  .video-versions-panel {
    width: 100%;
    max-width: none;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
  }
  .video-versions-list { max-height: calc(85vh - 90px); }
  .video-version-row { grid-template-columns: 46px 1fr; }
  .video-version-status { display: none; }
}

/* адаптація під мобілку */
@media (max-width: 600px) {
  .video-container {
    max-width: 320px;
  }
}

/* контейнер */
.thinking {
  font-size: 16px;
  color: #888;
  font-style: italic;
}
/* самі крапки */
.dots::after {
  content: ".";
  animation: dots 1.5s steps(3, end) infinite;
}
/* логіка: . → .. → ... */
@keyframes dots {
  0%   { content: "."; }
  33%  { content: ".."; }
  66%  { content: "..."; }
  100% { content: "."; }
}

/* Mobile chat message widths */
@media screen and (max-width: 600px) {
  .message.user {
    width: fit-content;
    max-width: 82%;
  }

  .message.ai,
  .message.ai.subtitle-selection-message {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Generation time and cost under a finished video */
.video-generation-stats {
  margin-top: 6px;
  color: #8a8494;
  font-size: 12px;
  line-height: 1.35;
}

.premium-ad-concept { width:100%; min-width:0; margin-top:16px; }
.message.ai:has(.premium-ad-concept) { width:min(1040px,96%); max-width:96%; }
.premium-ad-scenes { display:flex; gap:14px; overflow-x:auto; padding:6px 0 14px; scroll-snap-type:x mandatory; }
.premium-ad-scene { flex:0 0 240px; min-width:0; padding:12px; border:1px solid #e1deeb; border-radius:14px; background:#fff; scroll-snap-align:start; }
.premium-ad-scene img { width:100%; aspect-ratio:9/16; object-fit:contain; background:#f4f4f7; border-radius:9px; }
.premium-ad-scene strong { display:block; margin-top:10px; }
.premium-ad-scene p { font-size:13px; line-height:1.5; }
.premium-ad-concept button { border:1px solid #d8d1e9; border-radius:10px; padding:10px 14px; cursor:pointer; font:inherit; }
.premium-ad-approve { background:#7651d5; color:#fff; }
.premium-ad-concept button:disabled { opacity:.55; cursor:wait; }
