.wb-boost-page {
  --boost-panel: rgba(7, 16, 28, 0.72);
  --boost-panel-strong: rgba(9, 20, 34, 0.94);
  --boost-line: rgba(148, 163, 184, 0.18);
  --boost-hover: rgba(99, 214, 231, 0.08);
  --boost-accent: #63d6e7;
  --boost-green: #33c481;
}

.wb-boost-container {
  max-width: 1380px;
}

.wb-boost-head {
  margin-bottom: 14px;
}

.wb-boost-balance {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 12px;
  min-width: 180px;
}

.wb-boost-balance-label {
  color: var(--wb-text-muted);
  font-size: 12px;
}

.wb-boost-balance strong {
  color: var(--wb-text-strong);
  font-size: 20px;
  text-align: right;
}

.wb-boost-balance .btn {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.wb-boost-kind-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  margin-bottom: 14px;
  border: 1px solid var(--boost-line);
  border-radius: 8px;
  background: var(--boost-panel);
}

.wb-boost-kind-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 6px;
  color: var(--wb-text-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.wb-boost-kind-tab:hover {
  color: var(--wb-text-strong);
  background: rgba(148, 163, 184, 0.08);
}

.wb-boost-kind-tab.is-active {
  color: #06131f;
  background: linear-gradient(135deg, var(--boost-accent), var(--boost-green));
}

.wb-boost-catalog {
  display: grid;
  gap: 16px;
}

.wb-boost-catalog-group {
  padding: 18px;
  border: 1px solid var(--boost-line);
  border-radius: 8px;
  background: var(--boost-panel);
}

.wb-boost-catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.wb-boost-catalog-head h2 {
  margin: 0;
  color: var(--wb-text-strong);
  font-size: 17px;
}

.wb-boost-catalog-head span {
  color: var(--wb-text-muted);
  font-size: 12px;
}

.wb-boost-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wb-boost-platform-card {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--boost-line);
  border-radius: 7px;
  color: var(--wb-text);
  background: rgba(148, 163, 184, 0.035);
  text-decoration: none;
}

.wb-boost-platform-card:hover {
  border-color: rgba(99, 214, 231, 0.34);
  background: var(--boost-hover);
}

.wb-boost-platform-card-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wb-boost-platform-card-main strong {
  overflow: hidden;
  color: var(--wb-text-strong);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-boost-platform-card-main small {
  color: var(--wb-text-softer);
  font-size: 10px;
}

.wb-boost-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wb-boost-detail-head > div {
  display: grid;
  gap: 1px;
}

.wb-boost-detail-head span {
  color: var(--wb-text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.wb-boost-detail-head strong {
  color: var(--wb-text-strong);
  font-size: 15px;
}

.wb-boost-back {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--boost-line);
  border-radius: 7px;
  color: var(--wb-text-strong);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.wb-boost-back:hover {
  border-color: rgba(99, 214, 231, 0.34);
  background: var(--boost-hover);
}

.wb-boost-workspace {
  display: grid;
  grid-template-columns: minmax(205px, 238px) minmax(420px, 1fr) minmax(300px, 350px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--boost-line);
  border-radius: 8px;
  background: var(--boost-panel);
  box-shadow: 0 18px 50px rgba(2, 8, 18, 0.2);
}

.wb-boost-workspace--detail {
  grid-template-columns: minmax(175px, 205px) minmax(0, 1fr);
}

.wb-boost-workspace--detail .wb-boost-category-menu {
  grid-column: 1;
  grid-row: 1;
}

.wb-boost-workspace--detail .wb-boost-services {
  grid-column: 2;
}

.wb-boost-workspace--detail .wb-boost-order {
  border-top: 1px solid var(--boost-line);
  border-left: 0;
}

.wb-boost-workspace--detail .wb-boost-order-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-boost-workspace--detail .wb-boost-order-total,
.wb-boost-workspace--detail .wb-boost-order-form > .wb-boost-order-message,
.wb-boost-workspace--detail .wb-boost-order-form > .btn,
.wb-boost-workspace--detail .wb-boost-order-form > .wb-boost-order-note {
  grid-column: 1 / -1;
}

.wb-boost-platforms,
.wb-boost-services,
.wb-boost-order {
  min-width: 0;
}

.wb-boost-platforms {
  padding: 18px 10px;
  border-right: 1px solid var(--boost-line);
  background: rgba(5, 12, 22, 0.35);
}

.wb-boost-panel-title {
  padding: 0 10px 10px;
  color: var(--wb-text-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wb-boost-platform-list {
  display: grid;
  gap: 3px;
}

.wb-boost-platform {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--wb-text);
  text-decoration: none;
}

.wb-boost-platform:hover {
  border-color: var(--boost-line);
  background: rgba(148, 163, 184, 0.07);
}

.wb-boost-platform.is-disabled {
  cursor: default;
  opacity: 0.4;
}

.wb-boost-platform.is-disabled:hover {
  border-color: transparent;
  background: transparent;
}

.wb-boost-category-menu .wb-boost-platform {
  grid-template-columns: minmax(0, 1fr) auto;
}

.wb-boost-platform.is-active {
  border-color: rgba(99, 214, 231, 0.3);
  background: var(--boost-hover);
}

.wb-boost-platform-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.wb-boost-platform-icon--all { background: #25364b; color: #9cecf3; font-size: 17px; }
.wb-boost-platform-icon--1 { background: #e34f61; }
.wb-boost-platform-icon--2 { background: #1682e8; }
.wb-boost-platform-icon--3 { background: #12a86c; }
.wb-boost-platform-icon--4 { background: #e48b2c; }
.wb-boost-platform-icon--5 { background: #7358c8; }
.wb-boost-platform-icon--6 { background: #2674a5; }

.wb-boost-platform-name {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-boost-platform-count {
  color: var(--wb-text-softer);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.wb-boost-services {
  padding: 18px;
}

.wb-boost-services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 13px;
}

.wb-boost-services-head h2 {
  margin: 0;
  color: var(--wb-text-strong);
  font-size: 18px;
  line-height: 1.25;
}

.wb-boost-services-head > div > span {
  color: var(--wb-text-muted);
  font-size: 12px;
}

.wb-boost-search {
  position: relative;
  width: min(100%, 270px);
  flex: 0 1 270px;
}

.wb-boost-search .wb-input {
  min-height: 38px;
  padding-left: 34px;
  padding-right: 34px;
}

.wb-boost-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--wb-text-softer);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.wb-boost-search-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--wb-text-softer);
  transform: rotate(45deg);
}

.wb-boost-search-clear {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--wb-text-muted);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-50%);
}

.wb-boost-search-clear:hover {
  color: var(--wb-text-strong);
  background: rgba(148, 163, 184, 0.1);
}

.wb-boost-category-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 0 0 11px;
  scrollbar-width: thin;
}

.wb-boost-category-tab {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--boost-line);
  border-radius: 7px;
  color: var(--wb-text-muted);
  background: rgba(148, 163, 184, 0.04);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.wb-boost-category-tab small {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 5px;
  color: var(--wb-text-softer);
  background: rgba(148, 163, 184, 0.1);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.wb-boost-category-tab:hover {
  color: var(--wb-text-strong);
  border-color: rgba(99, 214, 231, 0.3);
}

.wb-boost-category-tab.is-disabled {
  cursor: default;
  opacity: 0.42;
}

.wb-boost-category-tab.is-disabled:hover {
  color: var(--wb-text-muted);
  border-color: var(--boost-line);
}

.wb-boost-category-tab.is-active {
  color: #dffbff;
  border-color: rgba(99, 214, 231, 0.42);
  background: rgba(99, 214, 231, 0.12);
}

.wb-boost-category-tab.is-active small {
  color: #06131f;
  background: #78dce9;
}

.wb-boost-service-list {
  border-top: 1px solid var(--boost-line);
}

.wb-boost-service-item {
  scroll-margin-top: 96px;
  border-bottom: 1px solid var(--boost-line);
}

.wb-boost-service-item.is-expanded {
  background: rgba(99, 214, 231, 0.035);
  box-shadow: inset 3px 0 0 var(--boost-accent);
}

.wb-boost-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 18px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 13px 10px;
  color: inherit;
  text-decoration: none;
}

.wb-boost-service:hover,
.wb-boost-service.is-selected {
  background: var(--boost-hover);
}

.wb-boost-service.is-selected {
  background: rgba(99, 214, 231, 0.08);
}

.wb-boost-service.is-selected .wb-boost-service-arrow {
  transform: rotate(90deg);
}

.wb-boost-service-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wb-boost-service-main > strong {
  overflow-wrap: anywhere;
  color: var(--wb-text-strong);
  font-size: 14px;
  line-height: 1.35;
}

.wb-boost-service-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wb-text-muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wb-boost-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wb-boost-service-meta span {
  padding: 2px 6px;
  border-radius: 5px;
  color: #a8bacb;
  background: rgba(148, 163, 184, 0.09);
  font-size: 10px;
  font-weight: 700;
}

.wb-boost-service-price {
  display: grid;
  gap: 1px;
  text-align: right;
}

.wb-boost-service-price strong {
  color: #8ee9c0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wb-boost-service-price small {
  color: var(--wb-text-softer);
  font-size: 10px;
}

.wb-boost-service-arrow {
  color: var(--wb-text-softer);
  font-size: 22px;
  transition: transform 160ms ease;
}

.wb-boost-empty,
.wb-boost-order-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--wb-text-muted);
  text-align: center;
}

.wb-boost-empty strong,
.wb-boost-order-empty strong {
  color: var(--wb-text-strong);
}

.wb-boost-order-empty-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  border: 1px solid var(--boost-line);
  border-radius: 8px;
  color: var(--boost-accent);
  font-size: 24px;
}

.wb-boost-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
}

.wb-boost-pagination a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--boost-line);
  border-radius: 7px;
  color: var(--wb-text-strong);
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
}

.wb-boost-pagination a:hover {
  border-color: rgba(99, 214, 231, 0.4);
  background: var(--boost-hover);
}

.wb-boost-pagination span {
  color: var(--wb-text-muted);
  font-size: 12px;
}

.wb-boost-order {
  padding: 18px;
  border-left: 1px solid var(--boost-line);
  background: var(--boost-panel-strong);
}

.wb-boost-order--inline {
  margin: 0 10px 14px;
  border: 1px solid rgba(99, 214, 231, 0.2);
  border-radius: 7px;
}

.wb-boost-workspace--detail .wb-boost-order--inline {
  border: 1px solid rgba(99, 214, 231, 0.2);
}

.wb-boost-order-head {
  display: grid;
  gap: 4px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--boost-line);
}

.wb-boost-order-label {
  color: #85e7f0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wb-boost-order-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--wb-text-strong);
  font-size: 17px;
  line-height: 1.3;
}

.wb-boost-order-head > span:last-child {
  color: var(--wb-text-muted);
  font-size: 12px;
}

.wb-boost-order-form {
  display: grid;
  gap: 14px;
}

.wb-boost-field {
  display: grid;
  gap: 6px;
}

.wb-boost-field > label {
  color: #c8d4e2;
  font-size: 12px;
  font-weight: 800;
}

.wb-boost-field > label span {
  color: #fb7185;
}

.wb-boost-field > small {
  color: var(--wb-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.wb-boost-field select[multiple] {
  min-height: 96px;
}

.wb-boost-number-control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  min-height: 42px;
}

.wb-boost-number-control.is-single {
  grid-template-columns: 1fr;
}

.wb-boost-number-control button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: var(--wb-text-strong);
  font-size: 18px;
  cursor: pointer;
}

.wb-boost-number-control button:first-child {
  border-radius: 8px 0 0 8px;
}

.wb-boost-number-control button:last-child {
  border-radius: 0 8px 8px 0;
}

.wb-boost-number-control button:hover {
  background: rgba(99, 214, 231, 0.12);
}

.wb-boost-number-control .wb-input {
  border-radius: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.wb-boost-number-control.is-single .wb-input {
  border-radius: 9px;
  text-align: left;
}

.wb-boost-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--boost-line);
}

.wb-boost-order-total span {
  color: var(--wb-text-muted);
  font-size: 13px;
}

.wb-boost-order-total strong {
  color: #8ee9c0;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.wb-boost-order-form .btn--full {
  max-width: none;
}

.wb-boost-order-form .btn[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.wb-boost-order-message {
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.45;
}

.wb-boost-order-message.is-success {
  color: #9af0c7;
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.1);
}

.wb-boost-order-message.is-error {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(244, 63, 94, 0.1);
}

.wb-boost-order-message.is-pending {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(234, 179, 8, 0.09);
}

.wb-boost-order-message a {
  color: inherit;
  font-weight: 800;
}

.wb-boost-order-note {
  margin: -5px 0 0;
  color: var(--wb-text-softer);
  font-size: 11px;
  text-align: center;
}

body[data-theme="light"] .wb-boost-page {
  --boost-panel: #ffffff;
  --boost-panel-strong: #f8fafc;
  --boost-line: rgba(148, 163, 184, 0.34);
  --boost-hover: rgba(8, 145, 178, 0.08);
}

body[data-theme="light"] .wb-boost-workspace,
body[data-theme="light"] .wb-boost-platforms,
body[data-theme="light"] .wb-boost-order,
body[data-theme="light"] .wb-boost-kind-tabs {
  background: var(--boost-panel);
}

body[data-theme="light"] .wb-boost-order {
  background: var(--boost-panel-strong);
}

body[data-theme="light"] .wb-boost-platform,
body[data-theme="light"] .wb-boost-service,
body[data-theme="light"] .wb-boost-kind-tab,
body[data-theme="light"] .wb-boost-category-tab,
body[data-theme="light"] .wb-boost-pagination a {
  color: #334155;
}

body[data-theme="light"] .wb-boost-field > label {
  color: #334155;
}

body[data-theme="light"] .wb-boost-service-meta span {
  color: #475569;
  background: #eef2f7;
}

@media (max-width: 1120px) {
  .wb-boost-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wb-boost-workspace {
    grid-template-columns: 210px minmax(360px, 1fr) minmax(280px, 320px);
  }

  .wb-boost-workspace--detail {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .wb-boost-services {
    padding: 14px;
  }
}

@media (max-width: 920px) {
  .wb-boost-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wb-boost-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .wb-boost-workspace--detail {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .wb-boost-workspace--detail .wb-boost-order {
    grid-column: 2;
  }

  .wb-boost-order {
    grid-column: 1 / -1;
    border-top: 1px solid var(--boost-line);
    border-left: 0;
  }

  .wb-boost-order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wb-boost-order-total,
  .wb-boost-order-form > .wb-boost-order-message,
  .wb-boost-order-form > .btn,
  .wb-boost-order-form > .wb-boost-order-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .wb-boost-page {
    padding-inline: 10px;
  }

  .wb-boost-head .wb-page-head,
  .wb-boost-services-head {
    flex-direction: column;
    align-items: stretch;
  }

  .wb-boost-balance {
    grid-template-columns: auto auto auto;
  }

  .wb-boost-balance .btn {
    grid-column: auto;
    grid-row: 1 / 3;
    margin: 0 0 0 auto;
  }

  .wb-boost-kind-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .wb-boost-kind-tab {
    min-width: 0;
    padding-inline: 6px;
    text-align: center;
  }

  .wb-boost-catalog-group {
    padding: 14px;
  }

  .wb-boost-workspace {
    display: block;
  }

  .wb-boost-platforms {
    border-right: 0;
    border-bottom: 1px solid var(--boost-line);
  }

  .wb-boost-panel-title {
    padding-left: 2px;
  }

  .wb-boost-platform-list {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .wb-boost-platform {
    grid-template-columns: 28px auto;
    min-width: max-content;
    scroll-snap-align: start;
  }

  .wb-boost-platform-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .wb-boost-platform-count {
    display: none;
  }

  .wb-boost-search {
    width: 100%;
    flex-basis: auto;
  }

  .wb-boost-category-tabs {
    margin-inline: -2px;
    scroll-snap-type: x proximity;
  }

  .wb-boost-category-tab {
    scroll-snap-align: start;
  }

  .wb-boost-service {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 9px;
    padding-inline: 7px;
  }

  .wb-boost-service-price small {
    display: none;
  }

  .wb-boost-service-description {
    -webkit-line-clamp: 1;
  }

  .wb-boost-order-form {
    grid-template-columns: 1fr;
  }

  .wb-boost-workspace--detail .wb-boost-order-form {
    grid-template-columns: 1fr;
  }

  .wb-boost-order-total,
  .wb-boost-order-form > .wb-boost-order-message,
  .wb-boost-order-form > .btn,
  .wb-boost-order-form > .wb-boost-order-note {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .wb-boost-head {
    padding: 17px;
  }

  .wb-boost-kind-tab {
    font-size: 11px;
  }

  .wb-boost-platform-grid {
    grid-template-columns: 1fr;
  }

  .wb-boost-services,
  .wb-boost-order {
    padding: 13px;
  }

  .wb-boost-service {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .wb-boost-service-arrow {
    display: none;
  }

  .wb-boost-service-price strong {
    font-size: 12px;
  }
}
