@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --vx-primary: #7367f0;
  --vx-primary-2: #8f85f3;
  --vx-success: #28c76f;
  --vx-danger: #ea5455;
  --vx-warning: #ff9f43;
  --vx-info: #00cfe8;
  --vx-body: #25293c;
  --vx-card: #2f3349;
  --vx-nav: #2f3349;
  --vx-line: #434968;
  --vx-text: #cfd3ec;
  --vx-heading: #d0d4f1;
  --vx-muted: #acb0cc;
  --vx-shadow: 0 0.25rem 1.125rem rgba(15, 20, 34, 0.4);
  --vx-menu: 16.25rem;
  --vx-radius: 0.375rem;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body.vx {
  background: var(--vx-body) !important;
  color: var(--vx-text) !important;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.vx a {
  color: var(--vx-primary);
  text-decoration: none;
}

body.vx a:hover {
  color: var(--vx-primary-2);
}

.vx-app {
  min-height: 100vh;
}

.vx-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1080;
  width: var(--vx-menu);
  background: var(--vx-nav);
  box-shadow: var(--vx-shadow);
  display: flex;
  flex-direction: column;
}

.vx-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 0.65rem 1.15rem;
  color: var(--vx-heading) !important;
}

.vx-brand img {
  display: block;
  height: 2.15rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.vx-menu__scroll {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 0.85rem 1.25rem;
}

.vx-menu__label {
  margin: 1.1rem 0.7rem 0.4rem;
  color: #7c80a1;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vx-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  margin: 0.15rem 0;
  border-radius: var(--vx-radius);
  color: var(--vx-text) !important;
  font-size: 0.9375rem;
  font-weight: 400;
}

.vx-link i {
  width: 1.25rem;
  font-size: 1.15rem;
  color: #a8aaae;
}

.vx-link:hover {
  background: rgba(115, 103, 240, 0.08);
  color: var(--vx-heading) !important;
}

.vx-link.is-active {
  background: linear-gradient(72.47deg, #7367f0 22.16%, rgba(115, 103, 240, 0.7) 76.47%);
  box-shadow: 0 2px 6px 0 rgba(115, 103, 240, 0.48);
  color: #fff !important;
}

.vx-link.is-active i {
  color: #fff;
}

.vx-page {
  padding-left: var(--vx-menu);
  min-height: 100vh;
}

.vx-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 3.9rem;
  margin: 1.25rem 1.5rem 0;
  padding: 0 1.15rem;
  background: var(--vx-card);
  border-radius: var(--vx-radius);
  box-shadow: var(--vx-shadow);
}

.vx-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--vx-heading);
  font-size: 1.35rem;
  cursor: pointer;
}

.vx-navbar h1 {
  margin: 0;
  color: var(--vx-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.vx-navbar p {
  margin: 0;
  color: var(--vx-muted);
  font-size: 0.8125rem;
}

.vx-navbar .dropdown {
  margin-left: auto;
}

.vx-navbar__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--vx-heading) !important;
  cursor: pointer;
}

.vx-navbar__user img {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  object-fit: cover;
}

.vx-content {
  padding: 1.5rem 1.5rem 2.5rem;
}

.vx-crumb {
  margin: 0 0 1rem;
  color: var(--vx-muted);
  font-size: 0.9375rem;
}

.vx-crumb strong {
  color: var(--vx-heading);
  font-weight: 600;
}

.saas-stack,
.vx-stack {
  display: grid;
  gap: 1.25rem;
}

.saas-grid,
.vx-grid {
  display: grid;
  gap: 1.25rem;
}

.saas-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.saas-grid--4,
.vx-stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.saas-split {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.saas-panel,
body.vx .card,
body.vx .modal-content {
  background: var(--vx-card);
  border: 0;
  border-radius: var(--vx-radius);
  box-shadow: var(--vx-shadow);
}

.saas-panel {
  padding: 1.5rem;
}

body.vx .card-body {
  padding: 1.5rem;
}

.saas-panel__head,
.ad-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.saas-panel__head h2,
.saas-panel__head h4,
body.vx .header-title,
body.vx .modal-title {
  margin: 0;
  color: var(--vx-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.saas-muted,
body.vx .text-muted {
  color: var(--vx-muted) !important;
}

body.vx label,
body.vx .font-weight-medium {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--vx-heading);
  font-size: 0.8125rem;
  font-weight: 500;
}

body.vx .form-group {
  margin-bottom: 1rem;
}

body.vx .form-control,
body.vx select.form-control,
body.vx textarea.form-control,
.vx-auth .form-control {
  width: 100%;
  height: 2.55rem;
  padding: 0.45rem 0.875rem;
  color: var(--vx-heading);
  background: #25293c;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  box-shadow: none;
}

body.vx textarea.form-control {
  height: auto;
  min-height: 5.5rem;
}

body.vx .form-control:focus,
.vx-auth .form-control:focus {
  border-color: var(--vx-primary);
  box-shadow: 0 0 0 0.15rem rgba(115, 103, 240, 0.25);
  color: var(--vx-heading);
  background: #25293c;
}

body.vx .form-control-color {
  padding: 0.2rem;
}

body.vx .form-control-file {
  display: block;
  width: 100%;
  height: 2.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px dashed #3b3f55;
  border-radius: 0.5rem;
  background: #25293c;
  color: var(--vx-muted);
  font-size: 0.8125rem;
}

body.vx .btn,
.vx-auth .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.55rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 2px 4px 0 rgba(115, 103, 240, 0.4);
  cursor: pointer;
}

body.vx .btn-sm {
  height: 2.05rem;
  padding: 0 0.8rem;
  font-size: 0.8125rem;
}

body.vx .btn-primary,
body.vx .btn-success,
.vx-auth .btn {
  background: var(--vx-primary);
  color: #fff;
  box-shadow: 0 2px 6px 0 rgba(115, 103, 240, 0.48);
}

body.vx .btn-primary:hover,
body.vx .btn-success:hover,
.vx-auth .btn:hover {
  background: #685dd8;
  color: #fff;
}

body.vx .btn-secondary {
  background: #444564;
  color: #fff;
  box-shadow: none;
}

body.vx .btn-danger,
body.vx .btn-outline-danger {
  background: transparent;
  color: var(--vx-danger);
  border: 1px solid rgba(234, 84, 85, 0.45);
  box-shadow: none;
}

body.vx .btn-warning {
  background: var(--vx-warning);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 159, 67, 0.4);
}

body.vx .btn-block {
  width: 100%;
}

body.vx .alert {
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: var(--vx-radius);
  margin-bottom: 1.15rem;
}

body.vx .alert-success {
  background: rgba(40, 199, 111, 0.16);
  color: var(--vx-success);
}

body.vx .alert-danger,
body.vx .alert-warning {
  background: rgba(234, 84, 85, 0.16);
  color: #ff8890;
}

body.vx .table {
  width: 100%;
  color: var(--vx-text);
}

body.vx .table th,
body.vx .table td {
  border-top: 1px solid var(--vx-line);
  padding: 0.8rem 0.85rem;
  vertical-align: middle;
  background: transparent;
}

body.vx .table thead th,
body.vx .thead-dark th {
  border-top: 0;
  color: var(--vx-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
}

body.vx .table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02);
}

body.vx .badge-success {
  background: rgba(40, 199, 111, 0.16);
  color: var(--vx-success);
}

body.vx .badge-secondary {
  background: #444564;
  color: #d0d4f1;
}

body.vx .dropdown-menu {
  background: var(--vx-card);
  border: 0;
  border-radius: var(--vx-radius);
  box-shadow: var(--vx-shadow);
  padding: 0.4rem 0;
}

body.vx .dropdown-item {
  color: var(--vx-text);
  padding: 0.5rem 1rem;
}

body.vx .dropdown-item:hover {
  background: rgba(115, 103, 240, 0.08);
  color: var(--vx-heading);
}

body.vx .modal-header,
body.vx .modal-footer {
  border-color: var(--vx-line);
}

body.vx .close {
  color: #fff;
  text-shadow: none;
  opacity: 0.7;
}

body.vx .modal-backdrop {
  background: #0f1422;
}

.ad-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.ad-field.grow,
.ad-inline .grow {
  flex: 1 1 14rem;
}

.ad-callout {
  padding: 1rem;
  border-radius: var(--vx-radius);
  background: #25293c;
  margin-bottom: 1rem;
}

.ad-pill {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 50rem;
  background: rgba(40, 199, 111, 0.16);
  color: var(--vx-success);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ad-list {
  display: grid;
  gap: 0.5rem;
  max-height: calc(100vh - 16rem);
  overflow: auto;
}

.ad-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--vx-radius);
  background: #25293c;
}

.ad-list__item.is-active {
  outline: 1px solid var(--vx-primary);
  background: rgba(115, 103, 240, 0.12);
}

.ad-list__link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--vx-heading) !important;
}

.ad-list__link img {
  width: 4.4rem;
  height: 1.7rem;
  object-fit: cover;
  border-radius: 0.3rem;
}

.ad-list__link strong,
.ad-list__link small {
  display: block;
  line-height: 1.2;
}

.ad-list__link small {
  color: var(--vx-muted);
}

.ad-thumb {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.375rem;
}

.ad-search .form-control {
  margin-bottom: 0.85rem;
}

.ad-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ad-media__frame {
  position: relative;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #25293c;
  border-radius: var(--vx-radius);
}

.ad-media__frame img {
  max-width: 78%;
  max-height: 62%;
  object-fit: contain;
}

.ad-media__actions {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.ad-media__btn {
  flex: 1;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--vx-primary);
}

.ad-media__btn.is-danger {
  color: var(--vx-danger);
  background: rgba(234, 84, 85, 0.16);
}

.ad-media__btn input {
  display: none;
}

.vx-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
}

.vx-stat__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  background: var(--vx-primary);
}

.vx-stat__icon.is-success { background: var(--vx-success); }
.vx-stat__icon.is-info { background: var(--vx-info); }
.vx-stat__icon.is-warning { background: var(--vx-warning); }

.vx-stat span {
  display: block;
  color: var(--vx-muted);
  font-size: 0.8125rem;
}

.vx-stat strong {
  display: block;
  color: var(--vx-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.saas-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.saas-quick a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--vx-line);
  color: var(--vx-heading) !important;
}

.saas-quick a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.saas-quick small {
  color: var(--vx-muted);
}

body.vx .note-editor.note-frame {
  background: #25293c;
  border: 1px solid var(--vx-line);
  color: var(--vx-text);
}

body.vx .note-editable {
  background: #25293c !important;
  color: var(--vx-heading) !important;
}

body.vx .note-toolbar {
  background: #2f3349 !important;
  border-bottom: 1px solid var(--vx-line) !important;
}

body.vx .irs-bar,
body.vx .irs-slider {
  background: var(--vx-primary) !important;
  border-color: var(--vx-primary) !important;
}

.vx-overlay {
  display: none;
}

.vx-auth {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(115, 103, 240, 0.22), transparent 50%),
    var(--vx-body);
  color: var(--vx-text);
  font-family: "Public Sans", "Segoe UI", sans-serif;
}

.vx-auth__card {
  width: min(28rem, 100%);
  background: var(--vx-card);
  border-radius: 0.5rem;
  box-shadow: var(--vx-shadow);
  padding: 2rem 1.75rem 1.75rem;
}

.vx-auth__card img {
  height: 1.75rem;
  margin-bottom: 1.5rem;
}

.vx-auth__card h1 {
  margin: 0 0 0.35rem;
  color: var(--vx-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.vx-auth__card p {
  margin: 0 0 1.35rem;
  color: var(--vx-muted);
}

.vx-auth .form-group {
  margin-bottom: 1rem;
}

.vx-auth .form-control.is-invalid {
  border-color: #ea5455;
  box-shadow: 0 0 0 0.15rem rgba(234, 84, 85, 0.22);
}

.vx-auth__error {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(234, 84, 85, 0.38);
  border-radius: 0.375rem;
  background: rgba(234, 84, 85, 0.12);
  color: #ff9ea4;
  font-size: 0.875rem;
  line-height: 1.45;
}

.vx-auth__error::before {
  content: "!";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #ea5455;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.vx-auth label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vx-heading);
}

.vx-auth .btn {
  width: 100%;
  margin-top: 0.35rem;
}

@media (max-width: 1199.98px) {
  .vx-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .vx-menu {
    transform: translateX(-110%);
    transition: transform 0.2s ease;
  }

  body.menu-open .vx-menu {
    transform: none;
  }

  .vx-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(15, 20, 34, 0.55);
  }

  body.menu-open .vx-overlay {
    display: block;
  }

  .vx-page {
    padding-left: 0;
  }

  .vx-navbar,
  .vx-content {
    margin-left: 0.9rem;
    margin-right: 0.9rem;
  }

  .vx-content {
    padding: 1.1rem 0 2rem;
  }

  .saas-grid--4,
  .vx-stats,
  .saas-grid--2,
  .saas-split,
  .ad-media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vx-asset-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  }
}

@media (max-width: 767.98px) {
  .saas-grid--2,
  .saas-split,
  .ad-media-grid,
  .ad-inline,
  .vx-catalog,
  .vx-asset-grid,
  .vx-colors {
    grid-template-columns: 1fr;
  }

  .saas-grid--4,
  .vx-stats {
    grid-template-columns: 1fr 1fr;
  }

  .vx-navbar {
    margin-top: 0.75rem;
  }

  .vx-navbar__user span {
    display: none;
  }

  .ad-list {
    max-height: 18rem;
  }

  body.vx .table-responsive {
    overflow-x: auto;
  }

  .vx-slide-grid,
  .vx-colors {
    grid-template-columns: 1fr;
  }

  .vx-session {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— icons, empty, copy, grids —— */
.vx-link i.mdi,
.vx-toggle i.mdi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.28rem;
  line-height: 1;
  font-style: normal;
}

.vx-link i.mdi:before,
.vx-toggle i.mdi:before,
body.vx .dropdown-item i.mdi:before,
body.vx .btn .mdi:before {
  font-family: "Material Design Icons" !important;
}

.vx-toggle {
  font-size: 0;
}

.vx-toggle i.mdi {
  font-size: 1.5rem;
  color: var(--vx-heading);
}

body.vx .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.vx .dropdown-item i.mdi {
  width: 1.15rem;
  font-size: 1.15rem;
  color: #a8aaae;
}

body.vx .btn .mdi {
  margin-right: 0.35rem;
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: -0.1em;
}

body.vx .btn-icon {
  width: 2.35rem;
  padding-left: 0;
  padding-right: 0;
}

body.vx .btn-icon .mdi {
  margin: 0;
}

.vx-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.vx-head > i.mdi {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: rgba(115, 103, 240, 0.14);
  color: var(--vx-primary);
  font-size: 1.2rem;
}

.vx-copy {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.vx-copy .form-control {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}

.vx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.4rem 1rem;
  color: var(--vx-muted);
  text-align: center;
}

.vx-empty i.mdi {
  font-size: 2.15rem;
  color: #7c80a1;
}

.vx-empty strong {
  color: var(--vx-heading);
  font-weight: 600;
}

.vx-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0 0.55rem;
  border-radius: 50rem;
  background: rgba(115, 103, 240, 0.14);
  color: #c9c4ff;
  font-size: 0.75rem;
  font-weight: 600;
}

.saas-quick a {
  gap: 0.85rem;
}

.saas-quick a i.mdi {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: rgba(115, 103, 240, 0.14);
  color: var(--vx-primary);
  font-size: 1.1rem;
}

.saas-quick a span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vx-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vx-session__who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.vx-session__who img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  object-fit: cover;
}

.vx-session__who h2 {
  margin: 0;
}

.vx-slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.vx-slide {
  overflow: hidden;
  border-radius: var(--vx-radius);
  background: #25293c;
}

.vx-slide img {
  display: block;
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
}

.vx-slide__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
}

.vx-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.vx-color {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}

.vx-color span {
  color: var(--vx-muted);
  font-size: 0.8125rem;
}

.vx-color input[type="color"] {
  width: 100%;
  height: 2.6rem;
  padding: 0.2rem;
  border: 1px solid var(--vx-line);
  border-radius: 0.4rem;
  background: #25293c;
  cursor: pointer;
}

.vx-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.7rem;
  padding: 0 0.7rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.vx-status.is-on {
  background: rgba(40, 199, 111, 0.16);
  color: var(--vx-success);
}

.vx-status.is-off {
  background: rgba(168, 170, 174, 0.16);
  color: #c2c4d1;
}

.ad-list__meta {
  display: block;
  min-width: 0;
}

.ad-list__link small em {
  font-style: normal;
  color: #c9c4ff;
}

body.vx .table td,
body.vx .table th {
  vertical-align: middle;
}

.ad-thumb--lg {
  width: 3.25rem;
  height: 3.25rem;
}

/* —— brand assets —— */
.vx-asset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.85fr);
  gap: 1rem;
  margin-top: 1.15rem;
}

.vx-asset {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  background: #25293c;
  overflow: hidden;
}

.vx-asset__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.7rem;
}

.vx-asset__top strong {
  display: block;
  color: var(--vx-heading);
  font-size: 0.9375rem;
}

.vx-asset__top small {
  color: var(--vx-muted);
}

.vx-asset__state {
  flex-shrink: 0;
  min-height: 1.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 50rem;
  background: rgba(115, 103, 240, 0.14);
  color: #c9c4ff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vx-asset.is-new .vx-asset__state {
  background: rgba(40, 199, 111, 0.16);
  color: var(--vx-success);
}

.vx-asset.is-removed .vx-asset__state {
  background: rgba(234, 84, 85, 0.16);
  color: var(--vx-danger);
}

.vx-drop {
  position: relative;
  margin: 0 1rem;
  min-height: 9.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed #3b3f55;
  border-radius: 0.6rem;
  background:
    linear-gradient(45deg, #2a2e42 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(-45deg, #2a2e42 25%, transparent 25%) 0 7px / 14px 14px,
    linear-gradient(45deg, transparent 75%, #2a2e42 75%) 7px -7px / 14px 14px,
    linear-gradient(-45deg, transparent 75%, #2a2e42 75%) -7px 0 / 14px 14px,
    #22263a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vx-drop:hover,
.vx-asset.is-drag .vx-drop {
  border-color: var(--vx-primary);
  box-shadow: inset 0 0 0 1px rgba(115, 103, 240, 0.35);
}

.vx-drop img {
  max-width: 86%;
  max-height: 7.2rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.vx-asset.is-removed .vx-drop img {
  opacity: 0.28;
  filter: grayscale(1);
}

.vx-drop__hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: rgba(22, 24, 38, 0.62);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.vx-drop:hover .vx-drop__hint,
.vx-asset.is-drag .vx-drop__hint,
.vx-asset.is-empty .vx-drop__hint {
  opacity: 1;
}

.vx-drop__hint i {
  font-size: 1.4rem;
}

.vx-drop__hint small {
  font-weight: 400;
  color: #c9c4d8;
}

.vx-asset--fav .vx-drop {
  min-height: 11rem;
}

.vx-fav-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 88%;
}

.vx-fav-square {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: #2f3349;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.vx-fav-square img {
  width: 2.4rem;
  height: 2.4rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: none;
}

.vx-fav-mock {
  width: 100%;
  max-width: 16rem;
  padding: 0.55rem 0.55rem 1.1rem;
  border-radius: 0.55rem 0.55rem 0.3rem 0.3rem;
  background: #1b1e2e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.vx-fav-mock__tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 78%;
  min-height: 1.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem 0.4rem 0 0;
  background: #2f3349;
}

.vx-fav-mock__tab img {
  width: 1.05rem;
  height: 1.05rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: none;
}

.vx-fav-mock__tab span {
  overflow: hidden;
  color: #d0d2e0;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-asset__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}

.vx-asset__meta {
  min-width: 0;
  color: var(--vx-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.vx-asset__meta b {
  display: block;
  overflow: hidden;
  color: var(--vx-heading);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-asset__meta span:empty {
  display: none;
}

.vx-asset__btns {
  display: flex;
  flex-shrink: 0;
  gap: 0.45rem;
}

.vx-asset__file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.vx-file {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vx-file .vx-drop {
  margin: 0;
  min-height: 9rem;
  flex: none;
}

.vx-file .vx-drop input[type="file"],
.vx-file .vx-drop input[type="file"].vx-asset__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  font-size: 0;
}

.vx-file.is-empty .vx-drop__hint {
  opacity: 1;
  background: transparent;
  color: #d0d2e0;
}

.vx-file.is-empty .vx-drop__hint small {
  color: var(--vx-muted);
}

.vx-file.is-empty .vx-drop img {
  display: none;
}

.vx-file.is-on .vx-drop img,
.vx-file.is-drag .vx-drop img {
  display: block;
}

.vx-file.is-on .vx-drop img[hidden] {
  display: none;
}

.vx-file.is-drag .vx-drop,
.vx-file.is-on:hover .vx-drop {
  border-color: var(--vx-primary);
  box-shadow: inset 0 0 0 1px rgba(115, 103, 240, 0.35);
}

.vx-file.is-drag .vx-drop__hint,
.vx-file.is-on:hover .vx-drop__hint {
  opacity: 1;
  background: rgba(22, 24, 38, 0.62);
  color: #fff;
}

.vx-file__meta {
  min-width: 0;
  color: var(--vx-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.vx-file__meta b {
  display: block;
  overflow: hidden;
  color: var(--vx-heading);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-color__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vx-color__row input[type="color"] {
  width: 2.6rem;
  height: 2.35rem;
  padding: 0.15rem;
  border: 1px solid var(--vx-line);
  border-radius: 0.4rem;
  background: #25293c;
  cursor: pointer;
}

.vx-color__row .form-control {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

/* —— catalog library —— */
.vx-catalog {
  display: grid;
  grid-template-columns: 18.75rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: calc(100vh - 9.5rem);
}

.vx-catalog > .saas-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 9.5rem);
}

.vx-search {
  position: relative;
  margin-bottom: 0.85rem;
}

.vx-search > i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  color: #7c80a1;
  font-size: 1.1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.vx-search .form-control {
  padding-left: 2.15rem;
}

.vx-providers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.vx-provider-wrap {
  position: relative;
}

.vx-provider {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: #25293c;
  color: var(--vx-heading) !important;
}

.vx-provider:hover {
  border-color: #444564;
}

.vx-provider.is-active {
  border-color: var(--vx-primary);
  background: rgba(115, 103, 240, 0.12);
  box-shadow: inset 3px 0 0 var(--vx-primary);
}

.vx-provider__banner {
  display: block;
  width: 100%;
  height: 2.75rem;
  object-fit: cover;
  background: #1e2233;
}

.vx-provider__body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem 0.65rem;
}

.vx-provider__body span {
  flex: 1;
  min-width: 0;
}

.vx-provider__body strong,
.vx-provider__body small {
  display: block;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-provider__body small {
  color: var(--vx-muted);
}

.vx-provider__del {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vx-provider-wrap:hover .vx-provider__del,
.vx-provider__del:focus-within {
  opacity: 1;
}

.vx-providers,
.vx-providers,
.vx-games {
  scrollbar-width: thin;
  scrollbar-color: #4a4e66 transparent;
}

.vx-providers::-webkit-scrollbar,
.vx-games::-webkit-scrollbar {
  width: 8px;
}

.vx-providers::-webkit-scrollbar-thumb,
.vx-games::-webkit-scrollbar-thumb {
  background: #4a4e66;
  border-radius: 8px;
}

.vx-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr));
  gap: 0.9rem;
  min-height: 0;
  overflow: auto;
  padding: 0.1rem 0.2rem 0.4rem 0;
}

.vx-game {
  min-width: 0;
}

.vx-game__art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 0.55rem;
  background: #25293c;
}

.vx-game__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-game__del {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vx-game:hover .vx-game__del,
.vx-game__del:focus-within {
  opacity: 1;
}

.vx-game strong {
  display: block;
  display: -webkit-box;
  margin-top: 0.45rem;
  overflow: hidden;
  color: var(--vx-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vx-filter-meta {
  margin: -0.35rem 0 0.75rem;
  color: var(--vx-muted);
  font-size: 0.75rem;
}

@media (max-width: 1199.98px) {
  .vx-catalog {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .vx-catalog > .saas-panel {
    max-height: none;
  }

  .vx-providers {
    max-height: 18rem;
  }

  .vx-games {
    max-height: none;
    overflow: visible;
  }
}

body.vx .swal2-popup {
  background: #2f3349;
  color: var(--vx-text);
  border-radius: var(--vx-radius);
  box-shadow: var(--vx-shadow);
  font-family: "Public Sans", "Segoe UI", sans-serif;
}

body.vx .swal2-title {
  color: var(--vx-heading);
  font-size: 1.25rem;
}

body.vx .swal2-content {
  color: var(--vx-muted);
}

body.vx .swal2-actions {
  margin-top: 1.1rem;
}

body.vx .swal2-actions .btn {
  margin: 0 0.3rem;
  min-width: 6.5rem;
}

body.vx .swal2-container {
  z-index: 20000;
}
