[hidden] {
  display: none !important;
}
#marketplace {
  padding: 40px 0 65px;
  min-height: 65vh;
}
/* Marketplace headings, filters and listing tables. */
.market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}
.market-heading h1 {
  font-size: 54px;
  letter-spacing: -2.5px;
}
.market-heading h1 span {
  color: var(--lime);
}
.market-heading .intro {
  margin: 15px 0 0;
  font-size: 14px;
}
.market-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.market-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #20221d;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.market-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.market-tabs .selected {
  background: var(--lime);
  color: #20251a;
  font-weight: 700;
}
.club-filter {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.club-filter select {
  width: 175px;
  margin: 0;
  font-size: 12px;
}
.market-explainer {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
  margin: 25px 0;
}
.market-explainer strong {
  color: #d7dbcf;
  font-weight: 500;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #191b17;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
caption {
  text-align: left;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
th {
  padding: 18px 20px;
  background: #21241d;
  color: #adb4a1;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
}
td {
  padding: 24px 20px;
  border-top: 1px solid var(--line);
}
td strong {
  font-weight: 500;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.club-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.club-icon {
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 22px;
}
.buy-price {
  color: var(--lime);
  font-weight: 700;
  font-size: 16px;
}
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-actions button {
  font-size: 11px;
  padding: 10px 12px;
}
.status {
  color: var(--lime);
  font-size: 11px;
}
.market-footnote {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 20px;
}
.market-empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.checkout-total strong {
  color: var(--lime);
  font-size: 28px;
}
@media (max-width: 780px) {
  header nav {
    gap: 22px;
  }
  .market-heading h1 {
    font-size: 42px;
  }
  .market-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .market-explainer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .market-footnote {
    flex-direction: column;
    gap: 8px;
  }
  .market-heading {
    align-items: start;
    flex-direction: column;
  }
  .market-tabs button {
    padding: 11px;
    font-size: 12px;
  }
  #marketplace {
    padding-top: 22px;
  }
  .table-wrap {
    margin-right: -2px;
  }
}
#admin {
  padding: 35px 0 60px;
  min-height: 65vh;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.admin-stats .panel {
  margin-bottom: 15px;
}
@media (max-width: 780px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  header nav {
    gap: 15px;
    flex-wrap: wrap;
  }
}

/* Ticket listing flow */
dialog:has(.sell-flow) {
  width: 740px;
  padding: 26px;
  scrollbar-width: thin;
}
.sell-flow {
  --sale-muted: #b0b7a7;
}
/* Listing dialog icons and upload steps. */
.sale-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sale-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}
.sale-hero-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--lime);
  color: #202719;
  border-radius: 18px;
  transform: rotate(-7deg);
}
.sale-hero-icon .sale-icon {
  width: 32px;
  height: 32px;
}
.sale-eyebrow {
  font-size: 9px !important;
  letter-spacing: 1.7px;
  color: var(--lime) !important;
  font-weight: 700;
}
.sale-hero h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 7px 0;
}
.sale-hero p {
  font-size: 13px;
  color: var(--sale-muted);
  margin: 7px 0;
}
.sale-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 24px;
  font-size: 11px;
  color: #d4dacd;
}
.sale-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sale-steps b {
  display: grid;
  place-items: center;
  border: 1px solid #526044;
  border-radius: 50%;
  height: 23px;
  width: 23px;
  color: var(--lime);
}
.sale-section {
  border: 1px solid #424b39;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  background: #1d211b;
}
.sale-section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sale-section-heading > .sale-icon {
  color: var(--lime);
  width: 23px;
  height: 23px;
}
.sale-section h3 {
  font-size: 16px;
  margin: 0;
}
.sale-section-heading p {
  font-size: 11px;
  color: var(--sale-muted);
  margin: 6px 0 0;
}
.sale-chip {
  margin-left: auto;
  border: 1px solid #596d3e;
  background: #303e23;
  border-radius: 20px;
  padding: 5px 8px;
  color: var(--lime);
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}
.sale-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  text-align: center;
  border: 1px dashed #76895e;
  border-radius: 10px;
  background: #293121;
  padding: 22px;
  cursor: pointer;
  overflow: hidden;
}
.sale-drop > .sale-icon {
  width: 28px;
  height: 28px;
  color: var(--lime);
}
.sale-drop strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.sale-drop span {
  color: var(--sale-muted);
  font-size: 11px;
}
.sale-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sale-drop:focus-within,
.sale-drop.dragging {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  background: #35442a;
}
.sale-check-state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #292f24;
  border: 1px solid #414d35;
  border-radius: 9px;
  padding: 15px;
  margin-top: 15px;
  color: #b7c6a5;
}
.sale-check-state strong {
  font-size: 12px;
  color: #eff3e8;
}
.sale-check-state p {
  font-size: 11px;
  line-height: 1.6;
  margin: 5px 0 0;
}
.sale-check-state[data-state='checked'] {
  border-color: #719647;
  background: #28391e;
}
.sale-check-state[data-state='pending'] {
  border-color: #927c42;
  background: #383221;
  color: #e5d4a2;
}
.sale-check-state[data-state='rejected'] {
  border-color: #945956;
  background: #382725;
  color: #e6b7b1;
}
.sale-check-state[data-state='checking'] > .sale-icon {
  animation: sale-pulse 1s ease-in-out infinite;
}
.sell-flow label {
  color: #e3e8dc;
  font-size: 11px;
}
.sell-flow label > .sale-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
  color: #aabb97;
}
.sell-flow input,
.sell-flow select {
  font-size: 13px;
  border-color: #47513c;
  min-width: 0;
}
.sell-flow input[readonly] {
  color: #c3cbb9;
  background: #22271d;
}
.sell-flow input:focus,
.sell-flow select:focus {
  outline: 2px solid #a6c875;
  outline-offset: 1px;
}
.sell-flow label small {
  display: block;
  color: var(--sale-muted);
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.5;
}
.sale-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.sale-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sale-price-grid input {
  font-size: 23px;
  font-weight: 650;
  padding: 15px 11px;
  color: var(--lime);
}
.sale-price-tip {
  font-size: 11px;
  line-height: 1.6;
  color: #c1ccaf;
  background: #2a3223;
  border-radius: 7px;
  padding: 12px;
  margin-top: 18px;
}
.sale-fine {
  font-size: 10px;
  line-height: 1.6;
  color: var(--sale-muted);
  margin-bottom: 0;
}
.sale-privacy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  color: var(--sale-muted);
}
.sale-privacy .sale-icon {
  color: #a0b989;
}
.sale-privacy p {
  font-size: 11px;
  line-height: 1.6;
}
.sale-footer {
  padding-top: 8px;
}
.sale-footer button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.sale-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sale-footer > p:last-child {
  text-align: center;
  font-size: 10px;
  color: var(--sale-muted);
  line-height: 1.6;
}
.sale-footer #form-error:empty {
  display: none;
}
@keyframes sale-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sale-check-state[data-state='checking'] > .sale-icon {
    animation: none;
  }
}
@media (max-width: 560px) {
  dialog:has(.sell-flow) {
    padding: 18px;
  }
  .sale-hero {
    gap: 12px;
  }
  .sale-hero h2 {
    font-size: 25px;
  }
  .sale-hero-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .sale-eyebrow {
    font-size: 7px !important;
  }
  .sale-steps {
    gap: 5px;
    font-size: 9px;
  }
  .sale-steps span {
    gap: 5px;
  }
  .sale-section {
    padding: 16px;
  }
  .sale-section-heading p {
    font-size: 10px;
  }
  .sale-chip {
    font-size: 7px;
    padding: 5px;
  }
  .sale-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sale-price-grid {
    gap: 8px;
  }
  .sale-price-grid input {
    font-size: 19px;
    padding: 12px 8px;
  }
  .sale-price-grid label {
    font-size: 10px;
  }
  .sale-price-grid label small {
    font-size: 9px;
  }
}
