* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  background: #ececec;
}

.zx-header {
  height: 50px;
  padding: 0 16px 0 20px;
  background: #22394b;
  box-shadow: 0 0 10px 0 #1d223d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zx-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 50px;
}

.zx-head-right {
  font-size: 16px;
  font-weight: 700;
}

.zx-root {
  min-height: calc(100vh - 50px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

.zx-main {
  width: min(1200px, 100%);
  max-width: 1200px;
  height: 782px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(200, 200, 200, 0.9);
  box-shadow: 0 0 10px 0 #1d223d;
  overflow-y: auto;
  overflow-x: hidden;
}

.zx-edit,
.zx-select {
  background: #22394b;
  border-radius: 10px;
  padding: 20px;
}

.zx-edit {
  margin-bottom: 20px;
}

.zx-top {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
}

.zx-tip {
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.zx-why {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(131, 180, 225, 0.55);
  border-radius: 8px;
  background: rgba(17, 34, 49, 0.38);
}

.zx-why-title {
  color: #8fd2ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin-bottom: 4px;
}

.zx-why-line {
  color: #e7f2fb;
  font-size: 12px;
  line-height: 18px;
}

.zx-contact {
  margin-top: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  line-height: 20px;
}

.picked-content {
  margin-top: 8px;
  min-height: 110px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.picked-empty {
  color: #fff;
  opacity: 0.8;
  font-size: 14px;
}

.picked-item {
  width: 80px;
  height: 110px;
  padding: 8px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.picked-item img,
.picked-item .fallback {
  width: 64px;
  height: 64px;
  border: 2px solid #fff;
  border-radius: 6px;
  object-fit: cover;
}

.picked-item .fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #4f6680;
  font-weight: 700;
}

.picked-name {
  width: 64px;
  color: #fff;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zx-sift {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
}

.zx-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zx-label {
  width: 120px;
  line-height: 22px;
}

.zx-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zx-input-line input {
  width: 90px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  line-height: 22px;
}

.zx-input-line select {
  width: 184px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  line-height: 22px;
  background: #fff;
}

.zx-btns {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-default,
.btn-primary {
  height: 32px;
  min-width: 59px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.btn-default {
  background: #fff;
  border: 1px solid #d9d9d9;
  color: rgba(0, 0, 0, 0.88);
}

.btn-primary {
  background: #0052d9;
  border: 1px solid transparent;
  color: #fff;
}

.zx-tabs {
  height: 46px;
  margin-bottom: 16px;
  border-bottom: 1px solid #b4c2d0;
  display: flex;
  align-items: center;
}

.tab {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
  height: 46px;
  margin-right: 30px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #0052d9;
  border-bottom-color: #0052d9;
}

.selector-grid {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.selector-item {
  width: 84px;
  height: 108px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
}

.selector-item.active {
  border-color: #0052d9;
}

.selector-item img,
.selector-item .fallback {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.selector-item .fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #4b5e70;
  color: #fff;
  font-weight: 700;
}

.selector-name {
  margin-top: 6px;
  width: 84px;
  text-align: center;
  color: #fff;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-empty {
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.88);
  line-height: 22px;
}

.result-sort-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
}

.result-sort-row select {
  width: 180px;
  height: 36px;
  border: 1px solid #cecece;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 15px;
  background: #fff;
}

.result-wrap {
  margin-top: 10px;
  background: #22394b;
  border-radius: 14px;
  padding: 14px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-card {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 12px;
  color: #111;
  overflow: hidden;
}

.listing-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.listing-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.listing-price {
  font-size: 18px;
  color: #ff4e4f;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.listing-code-btn {
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.listing-code-btn.copied {
  color: #12803a;
}

.listing-copy-icon {
  line-height: 1;
  font-size: 11px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.listing-code-btn.copied .listing-copy-icon {
  transform: scale(1.1);
}

.listing-code-btn.copied::after {
  content: "Copied";
  font-size: 11px;
  color: #12803a;
  font-weight: 700;
}

.listing-code {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.listing-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-zeusx {
  height: 38px;
  min-width: 170px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 14px;
  border: 0;
  background: linear-gradient(90deg, #ff7a18 0%, #ff3c3c 100%);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 76, 60, 0.35);
}

.listing-zeusx:hover {
  filter: brightness(1.05);
}

.listing-shopify {
  height: 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  padding: 0 10px;
  border: 1px dashed #d8d8d8;
  background: #fff;
  color: #222;
  white-space: nowrap;
}

.listing-zeusx.disabled {
  pointer-events: none;
  opacity: 1;
  border: 1px dashed #d8d8d8;
  background: #f4f5f7;
  color: #8a94a6;
  box-shadow: none;
}

.listing-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

.listing-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.pill-gender.female {
  background: #fbeaf4;
  color: #d6207b;
}

.pill-gender.male {
  background: #e7f1ff;
  color: #1966e8;
}

.pill-gender.unknown {
  background: #f0f2f5;
  color: #6d7788;
}

.pill-server {
  background: #fceff4;
  color: #d2298b;
}

.pill-level {
  background: #e0f7f6;
  color: #12989f;
}

.pill-type,
.pill-status {
  background: #e5ebff;
  color: #3f61dc;
}

.listing-roster-title {
  margin: 10px 0 8px;
  font-size: 13px;
  line-height: 1.1;
}

.listing-roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
}

.roster-item {
  width: 64px;
}

.roster-thumb-wrap {
  width: 64px;
  height: 64px;
  position: relative;
}

.roster-item img,
.roster-item .fallback {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.roster-item .fallback {
  background: #536579;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.roster-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 18px;
  height: 18px;
  background: #2196f3;
  color: #fff;
  border-radius: 6px 0 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 700;
}

.roster-name {
  display: block;
  margin-top: 4px;
  width: 64px;
  font-size: 11px;
  line-height: 1.2;
  color: #222;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .zx-main {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .zx-root {
    align-items: flex-start;
  }

  .listing-card {
    padding: 10px;
  }

  .result-sort-row {
    font-size: 14px;
  }

  .result-sort-row select {
    width: 160px;
    height: 32px;
    font-size: 14px;
  }

  .listing-card-top {
    grid-template-columns: 1fr;
  }

  .listing-top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .listing-price {
    font-size: 16px;
  }

  .listing-code-btn {
    font-size: 12px;
  }

  .listing-code {
    font-size: 12px;
    max-width: 100%;
  }

  .listing-zeusx {
    height: 34px;
    min-width: 148px;
    font-size: 12px;
  }

  .listing-shopify {
    height: 26px;
    font-size: 11px;
  }

  .pill {
    font-size: 10px;
  }

  .listing-roster-title {
    font-size: 12px;
  }
}
