html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

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

a {
  color: var(--bs-link-color, #5c7cff);
  text-decoration: none;
}

a:hover {
  color: var(--bs-link-hover-color, #536fe8);
}

img,
svg {
  vertical-align: middle;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

table {
  caption-side: bottom;
  border-collapse: collapse;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.25;
}

ul,
ol {
  padding-left: 2rem;
}

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

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

h1,
.display-5 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.display-6 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.h3,
h3 {
  font-size: 1.75rem;
}

.h4,
h4 {
  font-size: 1.5rem;
}

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

.h6,
h6 {
  font-size: 1rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
}

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

:root {
  --bs-body-color: #eef3fb;
  --bs-body-bg: #171c26;
  --bs-border-color: rgba(143, 162, 189, 0.18);
  --bs-primary: #5c7cff;
  --bs-primary-rgb: 92, 124, 255;
  --bs-secondary: #9aa8be;
  --bs-success: #2ae4c8;
  --bs-warning: #fdd76b;
  --bs-danger: #ff7a7a;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-white: #fff;
  --bs-black: #000;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --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%28238,243,251,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[hidden] {
  display: none !important;
}

.container,
.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1140px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.g-2 { gap: 0.5rem; }
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }
.g-5 { gap: 3rem; }

@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .d-md-block { display: block !important; }
  .align-items-md-center { align-items: center !important; }
  .flex-md-row { flex-direction: row !important; }
  .p-md-5 { padding: 3rem !important; }
  .px-md-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .ms-sm-auto { margin-left: auto !important; }
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .offset-lg-1 { margin-left: 8.33333333%; }
  .mb-lg-0 { margin-bottom: 0 !important; }
}

@media (min-width: 1200px) {
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.33333333%; }
}

.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.bottom-0 { bottom: 0 !important; }
.end-0 { right: 0 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-middle { vertical-align: middle !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

.m-auto { margin: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-auto { margin-right: auto !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !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; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { 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;
}

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-toggler {
  padding: 0.45rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--bs-body-color);
  background-color: transparent;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-sm);
}

.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%;
}

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

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

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
}

.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.2em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-sm);
  box-shadow: var(--bs-box-shadow-sm);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.4rem 1rem;
  clear: both;
  color: inherit;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.625rem 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bs-body-color);
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.875rem;
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-light {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary {
  color: var(--bs-primary);
  border-color: rgba(var(--bs-primary-rgb), 0.6);
}

.btn-outline-secondary {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

.btn-outline-danger {
  color: var(--bs-danger);
  border-color: rgba(255, 122, 122, 0.45);
}

.btn-outline-light {
  color: var(--bs-light);
  border-color: rgba(248, 249, 250, 0.35);
}

.btn-light {
  color: #111827;
  background-color: #f8fafc;
  border-color: #f8fafc;
}

.btn-success {
  color: #0b1724;
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

.btn-warning {
  color: #1f2937;
  background-color: var(--bs-warning);
  border-color: var(--bs-warning);
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: transparent;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 999px;
}

.text-bg-primary,
.text-bg-secondary,
.text-bg-success,
.text-bg-warning,
.text-bg-light {
  color: #fff !important;
}

.text-bg-primary { background-color: var(--bs-primary) !important; }
.text-bg-secondary { background-color: #64748b !important; }
.text-bg-success { background-color: #0f766e !important; }
.text-bg-warning { color: #1f2937 !important; background-color: #fbbf24 !important; }
.text-bg-light { color: #102439 !important; background-color: #e2e8f0 !important; }

.alert {
  position: relative;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius-sm);
}

.alert-info {
  color: #cffafe;
  background: rgba(8, 145, 178, 0.16);
  border-color: rgba(34, 211, 238, 0.22);
}

.alert-success {
  color: #ccfbf1;
  background: rgba(13, 148, 136, 0.16);
  border-color: rgba(45, 212, 191, 0.22);
}

.alert-warning {
  color: #fef3c7;
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(251, 191, 36, 0.22);
}

.alert-danger {
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(248, 113, 113, 0.22);
}

.alert-secondary {
  color: #e2e8f0;
  background: rgba(100, 116, 139, 0.18);
  border-color: rgba(148, 163, 184, 0.22);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  vertical-align: top;
}

.table > :not(caption) > * > * {
  padding: 0.75rem;
  border-bottom-width: 1px;
}

.table-sm > :not(caption) > * > * {
  padding: 0.35rem 0.5rem;
}

.border,
.border-top,
.border-bottom {
  border-color: var(--bs-border-color) !important;
}

.border {
  border: 1px solid var(--bs-border-color) !important;
}

.border-top {
  border-top: 1px solid var(--bs-border-color) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--bs-border-color) !important;
}

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

.border-primary {
  border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
}

.bg-body-tertiary {
  background-color: rgba(27, 34, 48, 0.98) !important;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  color: var(--bs-body-color);
  background-color: transparent;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
}

.form-control::placeholder {
  color: rgba(154, 168, 190, 0.8);
}

.form-control-sm,
.form-select-sm {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.75rem;
}

.form-check-input {
  float: left;
  margin-left: -1.75rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
}

.form-check-label {
  display: inline-block;
}

.form-switch .form-check-input {
  width: 2rem;
  border-radius: 2rem;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: var(--bs-border-radius);
}

.list-group-flush {
  border-radius: 0;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
  border: 1px solid var(--bs-border-color);
  background: transparent;
}

.list-group-item + .list-group-item {
  border-top-width: 0;
}

.list-group-item-action {
  width: 100%;
}

.accordion {
  --bs-accordion-border-color: var(--bs-border-color);
  --bs-accordion-btn-icon: "+";
  --bs-accordion-btn-active-icon: "−";
}

.accordion-item {
  border: 1px solid var(--bs-accordion-border-color);
  border-radius: var(--bs-border-radius);
  overflow: hidden;
  background: transparent;
}

.accordion-item + .accordion-item {
  margin-top: 0.75rem;
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
}

.accordion-button::after {
  margin-left: auto;
  content: var(--bs-accordion-btn-icon);
  font-size: 1.25rem;
}

.accordion-button:not(.collapsed)::after {
  content: var(--bs-accordion-btn-active-icon);
}

.accordion-body {
  padding: 0 1.25rem 1rem;
}

.fade {
  transition: opacity 0.15s linear;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: var(--bs-body-bg);
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 1rem 1.25rem;
}

.modal-header,
.modal-footer {
  border-bottom: 1px solid var(--bs-border-color);
}

.modal-footer {
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 0;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(15, 23, 42, 0.65);
}

.toast-container {
  z-index: 1080;
}

.toast {
  min-width: 280px;
  border-radius: 1rem;
  box-shadow: var(--bs-box-shadow);
}

.toast-body {
  padding: 0.75rem 1rem;
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #000;
  background: transparent;
  border: 0;
  opacity: 0.75;
}

.btn-close::before {
  content: "×";
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.btn-close-white {
  color: #fff;
}
