.market-page-root { padding-bottom: 74px; }
.market-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px,4vw,54px) 0 26px; margin-bottom: 18px; border-bottom: 1px solid #302f28; }
.market-heading h1 { font-size: clamp(24px,3.65vw,54px); letter-spacing: -.045em; margin: 0 0 10px; }
.market-heading p { max-width: 650px; margin: 0 0 12px; color: #aaa69c; }
.market-stats, .market-actions, .market-filter-row, .market-search-row, .market-segment, .market-entry-tags, .market-entry-metrics, .market-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.market-stats { color: #aaa69c; gap: 6px 16px; }
.market-stats strong { color: #f2eee6; }
.market-actions { justify-content: flex-end; }
.nl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; min-height: 38px; border: 1px solid #302f28; border-radius: 9px; color: #f2eee6; background: #181813; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: none; }
.nl-btn:hover { color: #fff; background: #333028; }
.nl-btn-primary { color: #161511; background: #ddd2bf; border-color: #ddd2bf; }
.nl-btn-primary:hover { color: #161511; background: #f2eee6; box-shadow: none; transform: none; }
.nl-btn-block { width: 100%; }
.nl-btn-sm { min-height: 32px; padding: 5px 10px; }
.market-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.market-filter-row { justify-content: space-between; }
.market-segment { gap: 2px; padding: 3px; border: 1px solid #302f28; border-radius: 10px; background: #181813; }
.market-segment a, .market-segment label span { display: block; border-radius: 7px; padding: 5px 10px; text-decoration: none; color: #aaa69c; white-space: nowrap; font-size: 13px; font-weight: 600; cursor: pointer; }
.market-segment [aria-current], .market-segment input:checked + span, .market-segment a:hover, .market-segment span:hover { color: #f2eee6; background: #333028; }
.market-segment input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.market-segment input:focus-visible + span { outline: 2px solid #ddd2bf; }
.market-search-box { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.market-search-box, .market-search-row select { border: 1px solid #302f28; min-height: 43px; border-radius: 10px; background: #12120f; color: #f2eee6; }
.market-search-box input { flex: 1; width: 100%; min-width: 0; border: 0; padding: 8px 0; color: inherit; background: transparent; }
.market-search-box button { border: 0; color: inherit; background: transparent; cursor: pointer; }
.market-search-row select { max-width: 100%; padding: 6px 10px; }
.market-filter-tag { justify-self: start; color: #ddd2bf; font-size: 12px; }
.market-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.market-entry {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2a2924;
  border-radius: 14px;
  background: #11110e;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.market-entry:hover, .market-entry:focus-within {
  border-color: #555348;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* 16:9 Media Cover area */
.market-entry-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #171611;
}
.market-entry-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.market-entry:hover .market-entry-cover {
  transform: scale(1.04);
  filter: brightness(0.85);
}

/* Luxury bottom gradient on cover */
.market-entry-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #11110e 0%, rgba(17, 17, 14, 0.55) 50%, rgba(17, 17, 14, 0.1) 100%);
  pointer-events: none;
}

/* Game badge top-left */
.market-entry-game, .nl-badge-game {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(14, 14, 12, 0.88);
  backdrop-filter: blur(8px);
  color: #e6e2d8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Price badge top-right */
.market-entry-price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(18, 18, 14, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.market-entry-price-tag.is-free {
  border-color: rgba(126, 199, 143, 0.35);
  color: #7ec78f;
  background: rgba(18, 30, 22, 0.9);
}

/* Quick Action Hover Bar in Media */
.market-entry-hover-action {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 8, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.market-entry:hover .market-entry-hover-action,
.market-entry:focus-within .market-entry-hover-action {
  opacity: 1;
  pointer-events: auto;
}
.nl-card-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #ddd2bf;
  background: #ffffff;
  color: #0b0b0a;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.nl-card-quick-btn:hover:not(:disabled) {
  background: #eae5dc;
  transform: scale(1.04);
}
.nl-card-quick-btn.is-saved {
  border-color: rgba(126, 199, 143, 0.4);
  background: rgba(22, 38, 26, 0.95);
  color: #7ec78f;
  cursor: default;
}
.nl-card-quick-btn.is-own {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(26, 26, 22, 0.95);
  color: #aaa69c;
  cursor: default;
}

/* Info Panel below cover */
.market-entry-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 12px 14px 13px;
  background: #11110e;
}
.market-entry-title {
  margin: 0 0 4px;
  font-family: Onest, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.market-entry-open {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  padding: 0;
  border: 0;
  color: #f2eee6;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}
.market-entry-open:hover {
  color: #ffffff;
}
.market-entry-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Author row */
.market-entry-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.market-entry-author {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8c8982;
  text-decoration: none;
  transition: color 0.15s ease;
}
.market-entry-author:hover {
  color: #ddd2bf;
}
.author-avatar {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #23221c;
  color: #ccc6ba;
  font-size: 9px;
  font-weight: 700;
}

/* Tag strip with +N overflow */
.market-entry-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.market-entry-tags a, .tag-overflow {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: #9c978b;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.market-entry-tags a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f2eee6;
  background: rgba(255, 255, 255, 0.08);
}
.tag-overflow {
  color: #7a766c;
  cursor: default;
}

/* Card footer metrics */
.market-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #1f1e19;
}
.market-entry-price-bottom strong {
  font-size: 13px;
  color: #e3c27a;
}
.market-entry-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #8c8982;
}
.metric-saves, .metric-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.metric-rating {
  color: #e3c27a;
  font-weight: 600;
}

.market-results-list { grid-template-columns: 1fr; gap: 8px; }
.market-results-list .market-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  flex-direction: row;
  align-items: center;
  min-height: 0;
  aspect-ratio: auto;
}
.market-results-list .market-entry-media {
  aspect-ratio: 16 / 9;
  height: 90px;
}
.market-results-list .market-entry-panel {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}
.market-results-list .market-entry-footer {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 16px;
}
.market-empty { grid-column: 1 / -1; padding: 36px 16px; border: 1px dashed #403e35; border-radius: 14px; text-align: center; }
.market-empty p { color: #aaa69c; }
.market-pagination { justify-content: center; margin-top: 18px; }
.nl-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #333028; color: #ddd2bf; }
.nl-hero-category { color: #ddd2bf; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
@media (max-width: 880px) {
  .market-heading { flex-wrap: wrap; gap: 14px; }
  .market-actions { justify-content: flex-start; }
  .market-results:not(.market-results-list) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .market-page-root { width: calc(100% - 24px); }
  .market-search-box { flex-basis: 100%; }
  .market-segment a, .market-segment label span { padding-inline: 6px; font-size: 12px; }
  .market-results:not(.market-results-list) { grid-template-columns: minmax(0,1fr); }
  .market-entry { width: 100%; }
  .market-results-list .market-entry { grid-template-columns: 80px minmax(0,1fr); }
  .market-results-list .market-entry-cover { height: 72px; }
  .market-results-list .market-entry-panel { display: block; }
  .market-results-list .market-entry-footer { margin-top: 4px; }
  .market-results-list .market-entry-game { display: none; }
}

/* Neverlose Detail Modal (2-Column Architecture) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nl-detail-modal {
  position: relative;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #141410;
  border: 1px solid rgba(242, 238, 230, 0.1);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
  animation: modal-scale 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modal-scale {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: rgba(242, 238, 230, 0.06);
  border: 1px solid rgba(242, 238, 230, 0.08);
  border-radius: 50%;
  color: #aaa69e;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close:hover {
  background: rgba(242, 238, 230, 0.12);
  color: #ffffff;
}

.nl-modal-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 0;
}
@media (max-width: 768px) {
  .nl-modal-layout {
    grid-template-columns: 1fr;
  }
  .nl-modal-main {
    border-right: none !important;
    border-bottom: 1px solid rgba(242, 238, 230, 0.08);
  }
}
.nl-modal-main {
  padding: 24px;
  border-right: 1px solid rgba(242, 238, 230, 0.08);
}
.nl-modal-banner {
  height: 200px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 18px;
  background-color: #1c1c16;
}
.nl-modal-item-title {
  font-size: 22px;
  font-weight: 700;
  color: #f2eee6;
  margin: 0 0 16px;
}
.nl-code-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(242, 238, 230, 0.03);
  border: 1px dashed rgba(242, 238, 230, 0.14);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.code-kicker {
  font-size: 11px;
  color: #aaa69e;
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.code-val {
  color: #ddd2bf;
  font-family: monospace;
  font-size: 17px;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.nl-btn-code {
  padding: 7px 14px;
  font-size: 12px;
  background: rgba(242, 238, 230, 0.06);
  border: 1px solid rgba(242, 238, 230, 0.12);
  border-radius: 9999px;
  color: #f2eee6;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nl-btn-code svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}
.nl-btn-code:hover {
  background: rgba(242, 238, 230, 0.12);
  border-color: rgba(227, 194, 122, 0.4);
  color: #ddd2bf;
}

.nl-modal-tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(242, 238, 230, 0.08);
  margin-bottom: 18px;
}
.nl-tab-item {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #aaa69e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: -1px;
}
.nl-tab-item:hover {
  color: #f2eee6;
}
.nl-tab-item.active {
  color: #ddd2bf;
  border-bottom-color: #ddd2bf;
}
.nl-desc-box h4 {
  font-size: 13px;
  color: #aaa69e;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.nl-desc-body {
  font-size: 14px;
  line-height: 1.6;
  color: #d8d0c3;
  white-space: pre-wrap;
}

/* Modal Right Sidebar */
.nl-modal-sidebar {
  padding: 24px;
  background: rgba(242, 238, 230, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nl-buy-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nl-buy-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.nl-buy-price-label {
  color: #aaa69e;
  font-size: 13px;
  font-weight: 500;
}
.nl-buy-price-val {
  font-size: 24px;
  font-weight: 800;
  color: #ddd2bf;
}
.nl-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(242, 238, 230, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(242, 238, 230, 0.06);
}
.nl-avatar-lg {
  width: 36px;
  height: 36px;
  font-size: 15px;
}
.nl-author-details strong {
  display: block;
  color: #f2eee6;
  font-size: 14px;
}
.nl-verified-badge {
  color: #7ec78f;
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}
.nl-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 238, 230, 0.08);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  color: #aaa69e;
}
.spec-row strong {
  color: #f2eee6;
  font-weight: 600;
}

/* Reviews in Modal */
.nl-review-box {
  background: rgba(242, 238, 230, 0.03);
  border: 1px solid rgba(242, 238, 230, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.review-rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #aaa69e;
}
.review-star-radios {
  display: flex;
  gap: 10px;
}
.review-star-radios label {
  color: #ddd2bf;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}
.nl-review-box textarea {
  width: 100%;
  height: 80px;
  background: rgba(14, 14, 11, 0.85);
  border: 1px solid rgba(242, 238, 230, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #f2eee6;
  font-size: 13px;
  outline: none;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.nl-review-box textarea:focus {
  border-color: rgba(227, 194, 122, 0.5);
}
.nl-reviews-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.nl-auth-prompt {
  padding: 16px;
  background: rgba(242, 238, 230, 0.03);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 16px;
}
.nl-auth-prompt a {
  color: #ddd2bf;
  text-decoration: underline;
}

/* Share Code Buttons */
.nl-code-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Slot Limit Warning Modal (4/4 limit) */
.slot-limit-dialog {
  max-width: 440px;
  background: #11110e;
  border: 1px solid #38362d;
  border-radius: 16px;
  padding: 30px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.slot-limit-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(224, 90, 71, 0.12);
  border: 1px solid rgba(224, 90, 71, 0.28);
}
.slot-limit-title {
  font-family: Onest, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #f2eee6;
}
.slot-limit-text {
  font-size: 13px;
  line-height: 1.5;
  color: #aaa69c;
  margin: 0 0 14px;
}
.slot-limit-text strong {
  color: #e05a47;
}
.slot-limit-hint {
  padding: 10px 12px;
  background: #181813;
  border: 1px solid #282720;
  border-radius: 9px;
  font-size: 12px;
  color: #ccc6ba;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.45;
}
.slot-limit-hint b {
  color: #ddd2bf;
}
.slot-limit-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Floating Site Toast Notification */
.site-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.site-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 440px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #f2eee6;
  background: #151512;
  border: 1px solid #38362d;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-toast-success {
  border-color: rgba(126, 199, 143, 0.4);
}
.site-toast-error {
  border-color: rgba(224, 90, 71, 0.5);
  color: #ffaba0;
}
.site-toast.toast-hiding {
  opacity: 0;
  transform: translateY(10px);
}
.toast-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #8c8982;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.toast-close:hover {
  color: #fff;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   NEVERLOSE CONFIG PUBLISHER MODAL
   ========================================================================== */
.publish-dialog {
  padding: 0;
  border: 1px solid #27272a;
  border-radius: 16px;
  background: #09090b;
  color: #fafafa;
  max-width: 980px;
  width: 95vw;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.publish-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.publish-modal-box {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.publish-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #18181b;
  background: #0c0c0e;
}
.pub-badge-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.publish-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #f4f4f5;
}
.publish-modal-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  padding: 24px;
  overflow-y: auto;
}
@media (max-width: 820px) {
  .publish-modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.pub-preview-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pub-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pub-live-card {
  margin: 0 !important;
  pointer-events: none;
  border: 1px solid #27272a;
  border-radius: 12px;
  overflow: hidden;
  background: #121215;
}
.pub-preview-note {
  font-size: 12px;
  color: #71717a;
  line-height: 1.5;
  margin: 0;
}
.pub-fields-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pub-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #d4d4d8;
}
.pub-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pub-char-counter {
  font-size: 11px;
  color: #71717a;
}
.pub-text-input,
.pub-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #fafafa;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.pub-text-input:focus,
.pub-textarea:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.pub-field-hint {
  font-size: 12px;
  color: #71717a;
  margin-top: 2px;
}
/* Dropzone */
.pub-dropzone {
  border: 2px dashed #27272a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #121215;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-dropzone:hover,
.pub-dropzone.dragover {
  border-color: #71717a;
  background: #18181b;
}
.pub-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pub-dropzone-icon {
  font-size: 28px;
}
.pub-dropzone-text span {
  font-size: 13px;
  color: #e4e4e7;
  display: block;
}
.pub-dropzone-text small {
  font-size: 11px;
  color: #71717a;
}
.pub-dropzone-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.pub-dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pub-remove-cover-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.pub-remove-cover-btn:hover {
  background: #ef4444;
}
/* Tags */
.pub-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s;
}
.pub-chip:hover {
  border-color: #3f3f46;
  color: #e4e4e7;
}
.pub-chip.selected {
  background: #27272a;
  border-color: #71717a;
  color: #ffffff;
}
.pub-custom-tag-box {
  margin-top: 6px;
}
.pub-active-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.pub-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #27272a;
  border-radius: 14px;
  font-size: 12px;
  color: #fafafa;
}
.pub-tag-pill-remove {
  cursor: pointer;
  opacity: 0.6;
  font-weight: bold;
}
.pub-tag-pill-remove:hover {
  opacity: 1;
}
/* Price Switcher */
.pub-price-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pub-price-tab {
  padding: 10px;
  border-radius: 8px;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.pub-price-tab:hover {
  border-color: #3f3f46;
  color: #e4e4e7;
}
.pub-price-tab.active {
  background: #27272a;
  border-color: #52525b;
  color: #fff;
}
.pub-price-input-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pub-price-input-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.pub-price-input-inner input {
  padding-right: 48px;
}
.pub-price-currency {
  position: absolute;
  right: 14px;
  font-weight: 700;
  color: #71717a;
  font-size: 14px;
  pointer-events: none;
}
/* Modal Footer */
.publish-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid #18181b;
  background: #0c0c0e;
}
.pub-footer-right {
  display: flex;
  gap: 10px;
}
/* Video Frame */
.pub-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid #27272a;
}
.pub-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.market-entry { position: relative; }
.market-owned-badge { position: absolute; z-index: 3; top: 12px; left: 12px; background: #16291d; color: #a7e9b3; border-radius: 7px; padding: 5px 8px; font-size: 12px; }
.market-favorite { position:absolute; z-index:4; top:10px; right:10px; border:0; border-radius:50%; background:#111c; color:#fff; font-size:22px; width:38px; height:38px; cursor:pointer; }
.market-favorite.is-active { color:#ff6a89; }
.market-description { color:#b2ada5; margin:8px 0; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.market-entry-meta { color:#999; font-size:12px; margin:6px 0; }
.market-quick-filters { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.market-quick-filters a { padding:6px 10px; border:1px solid #41403c; border-radius:20px; color:#d9d6ce; }
.market-quick-filters a[aria-current=true] { border-color:#e3c27a; color:#e3c27a; }
.market-import-hint { color:#b4b1aa; font-size:12px; }
.pub-field-group[hidden], .pub-wizard-controls [hidden], #pub-submit-btn[hidden] { display:none !important; }
.pub-wizard-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 24px; }
.pub-wizard-controls span { margin-right:auto; }
@media (hover: none) { .market-entry-hover-action { opacity:1; visibility:visible; transform:none; } }
.market-local-nav { display:flex; gap:24px; border-bottom:1px solid #302f28; margin:0 0 28px; }
.market-local-nav a { color:#aaa69c; padding:0 0 12px; text-decoration:none; border-bottom:2px solid transparent; }
.market-local-nav a[aria-current=page] { color:#f2eee6; border-color:#ddd2bf; }
.market-manage { max-width:1050px; margin:0 auto; }
.manage-heading, .manage-editor > header, .manage-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.manage-heading { margin:0 0 20px; }
.manage-heading h2, .manage-editor h3, .manage-row h3 { margin:0 0 5px; font-size:18px; letter-spacing:0; }
.manage-heading p, .manage-editor header p, .manage-row p { color:#aaa69c; margin:0; font-size:14px; }
.manage-editor, .manage-list, .manage-empty { border:1px solid #302f28; border-radius:12px; background:#141410; }
.manage-editor { display:grid; gap:22px; padding:26px; }
.manage-editor > header { align-items:flex-start; padding-bottom:18px; border-bottom:1px solid #302f28; }
.manage-editor label { display:grid; gap:8px; color:#e8e4db; font-size:14px; font-weight:600; }
.manage-editor input:not([type=checkbox]), .manage-editor select, .manage-editor textarea { width:100%; min-width:0; border:1px solid #414038; background:#0d0d0b; color:#f2eee6; border-radius:7px; padding:11px 12px; font:inherit; }
.manage-editor input:focus, .manage-editor select:focus, .manage-editor textarea:focus { outline:2px solid #b7a990; outline-offset:1px; }
.manage-editor textarea { resize:vertical; line-height:1.5; }
.manage-editor label small { color:#979389; font-weight:400; line-height:1.4; }
.manage-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.manage-optional { border:1px solid #302f28; border-radius:8px; padding:16px; }
.manage-optional summary { cursor:pointer; font-weight:600; color:#e8e4db; }
.manage-optional[open] summary { margin-bottom:18px; }
.manage-optional > label, .manage-optional > .manage-form-grid { margin-top:16px; }
.manage-cover { margin-top:14px; display:flex; align-items:center; gap:18px; }
.manage-cover img { width:120px; aspect-ratio:16 / 9; object-fit:cover; border-radius:6px; }
.manage-cover label { display:flex; align-items:center; gap:8px; font-weight:400; }
.manage-form-actions, .manage-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.manage-primary, .manage-secondary, .manage-link { display:inline-flex; align-items:center; justify-content:center; min-height:39px; padding:8px 13px; border-radius:7px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
.manage-primary { background:#ddd2bf; border:1px solid #ddd2bf; color:#181713; }
.manage-secondary { background:transparent; border:1px solid #48463e; color:#ede9df; }
.manage-primary:hover { background:#f2eee6; color:#181713; }
.manage-secondary:hover { border-color:#a99f8c; color:#fff; }
.manage-link { border:0; background:transparent; color:#b5b0a5; }
.manage-danger { color:#d79a8f; }
.manage-list { overflow:hidden; }
.manage-row { padding:20px; border-bottom:1px solid #302f28; }
.manage-row:last-child { border-bottom:0; }
.manage-row-actions form { margin:0; }
.manage-status { display:inline-block; margin-top:10px; color:#b8b1a2; font-size:12px; }
.manage-empty { padding:32px; color:#aaa69c; }
.manage-error { padding:14px 16px; background:#321c18; border:1px solid #79483d; border-radius:8px; color:#ffd6ca; }
@media (max-width:650px) { .manage-form-grid { grid-template-columns:1fr; } .manage-editor { padding:18px; } .manage-row,.manage-heading { align-items:flex-start; flex-direction:column; } .manage-form-actions { align-items:stretch; flex-direction:column; } .manage-form-actions > * { width:100%; text-align:center; } }
