:root {
  --bs-primary: #a20dfd;
  --bs-primary-rgb: 162, 13, 253;
  --bs-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

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

.container {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 1rem;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.d-md-grid {
  display: block;
}

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

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

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

.text-start {
  text-align: left;
}

.text-end {
  text-align: right;
}

.text-muted {
  color: var(--text-muted);
}

.text-opacity-50 {
  opacity: 0.5;
}

.fw-bold {
  font-weight: 700;
}

.fw-semibold {
  font-weight: 600;
}

.h-100 {
  height: 100%;
}

.w-100 {
  width: 100%;
}

.w-25 {
  width: 25%;
}

.gap-2 {
  gap: 0.5rem;
}

.m-0 {
  margin: 0;
}

.m-2 {
  margin: 0.5rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

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

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

.me-auto {
  margin-right: auto;
}

.me-2 {
  margin-right: 0.5rem;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-3 {
  border-radius: 0.5rem;
}

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

.border {
  border: 1px solid var(--border);
}

.border-0 {
  border: 0;
}

.border-bottom {
  border-bottom: 1px solid var(--border);
}

.opacity-50 {
  opacity: 0.5;
}

.col-4,
.col-12,
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12 {
  width: 100%;
}

.bg-body {
  background-color: var(--surface-1);
}

.bs-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bs-icon-rounded {
  border-radius: 0.5rem;
}

.bs-icon-primary-light {
  background: rgba(var(--bs-primary-rgb), 0.2);
  color: var(--bs-primary);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  position: relative;
  width: 100%;
  background-color: var(--surface-1);
}

.navbar > .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 72px;
  position: relative;
  gap: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-wrap {
  flex-shrink: 0;
  background: transparent !important;
}

.brand-logo {
  display: block;
  width: 81px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.15rem;
}

.navbar-toggler {
  margin-left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--surface-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.navbar-toggler-icon {
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

.collapse {
  display: none;
  width: 100%;
}

.collapse.show {
  display: block;
}

.navbar-collapse {
  grid-column: 1 / -1;
  padding: 0.75rem 0 0.5rem;
}

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

.nav-item {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  border-radius: 10px;
  white-space: nowrap;
}

.active {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
  cursor: pointer;
  line-height: 1.3;
  text-align: center;
  background: transparent;
  color: var(--text-main);
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-primary {
  background-color: rgba(var(--bs-primary-rgb), 0.18);
  color: var(--text-main);
  border-color: rgba(var(--bs-primary-rgb), 0.28);
}

.form-control,
.form-select {
  width: 100%;
  min-height: 2.3rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--surface-1);
  color: var(--text-main);
  font: inherit;
}

.form-control:focus,
.form-select:focus {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.35);
  outline-offset: 1px;
}

.form-control-sm {
  min-height: 2rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.65rem;
}

.form-check-inline {
  display: inline-flex;
}

.form-check-input {
  margin: 0;
}

.form-check-label {
  font-size: 0.95rem;
  color: var(--text-main);
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  content: "";
}

.ratio > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9::before {
  padding-top: 56.25%;
}

@media (min-width: 768px) {
  .d-md-flex {
    display: flex;
  }

  .d-md-grid {
    display: grid;
  }

  .col-md-4 {
    width: 33.333333%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-8 {
    width: 66.666667%;
  }

  .col-md-12 {
    width: 100%;
  }

  .ms-md-2 {
    margin-left: 0.5rem;
  }

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

  .navbar-expand-md .collapse {
    display: block;
  }

  .navbar-expand-md > .container {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 1rem;
  }

  .navbar-expand-md .navbar-collapse {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    padding: 0;
    min-height: 72px;
    grid-column: 2 / 4;
    column-gap: 0.75rem;
  }

  .navbar-expand-md .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: static;
    left: auto;
    transform: none;
    margin: 0 auto !important;
    max-width: 100%;
  }

  .navbar-expand-md .navbar-collapse > .btn {
    margin-left: 0;
    justify-self: end;
  }
}
