:root {
  --bg: #130b2e;
  --bg-deep: #0d0823;
  --panel: #21144a;
  --panel-soft: rgba(248, 245, 255, 0.06);
  --panel-strong: #2a1a5f;
  --ink: #f8f5ff;
  --muted: rgba(248, 245, 255, 0.68);
  --border: rgba(248, 245, 255, 0.14);
  --primary: #c084fc;
  --primary-dark: #a78bfa;
  --accent: #67e8f9;
  --success: #22e6a8;
  --warn: #f0b66d;
  --danger: #ff5e7a;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(135deg, var(--bg) 0%, var(--panel) 58%, #00383f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.hidden {
  display: none !important;
}

.auth-view {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.auth-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel {
  width: min(440px, 100%);
  padding: 28px;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  object-fit: cover;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.muted,
.section-head p {
  color: var(--muted);
}

.auth-help {
  margin: 0 0 18px;
  color: rgba(248, 245, 255, 0.76);
  font-size: 14px;
}

.legal-copy {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 12px;
}

.legal-copy a {
  color: var(--accent);
  font-weight: 800;
}

.auth-panel .message {
  margin: 16px 0 0;
}

.home-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.portal-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  padding: 14px;
  flex-wrap: wrap;
}

.portal-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.portal-footer a:hover {
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: rgba(248, 245, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(13, 8, 35, 0.72);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.14);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.primary {
  background: var(--primary);
  color: #171124;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  background: rgba(103, 232, 249, 0.10);
  color: var(--accent);
  border: 1px solid rgba(103, 232, 249, 0.28);
}

.text-button {
  background: transparent;
  color: var(--accent);
  padding-inline: 0;
}

.compact {
  min-height: 36px;
  padding: 8px 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.topbar h1 {
  margin-bottom: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.message {
  margin-bottom: 18px;
  border: 1px solid rgba(103, 232, 249, 0.30);
  background: rgba(103, 232, 249, 0.10);
  color: var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.message.error {
  border-color: rgba(255, 94, 122, 0.34);
  background: rgba(255, 94, 122, 0.12);
  color: #ffbac8;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(240, 182, 109, 0.36);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(240, 182, 109, 0.12);
}

.notice strong {
  display: block;
  margin-bottom: 2px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.compact-notice {
  display: block;
  margin-bottom: 0;
  color: rgba(248, 245, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metrics-note {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.metrics div {
  min-height: 92px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.metrics span {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 900;
}

.metrics p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ticket-check-in-panel {
  margin-bottom: 18px;
  border-color: rgba(103, 232, 249, 0.28);
}

.ticket-check-in-form {
  display: grid;
  gap: 10px;
}

.ticket-check-in-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ticket-check-in-controls button {
  white-space: nowrap;
}

.ticket-check-in-result {
  border: 1px solid rgba(34, 230, 168, 0.34);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(34, 230, 168, 0.12);
  color: var(--success);
  font-weight: 800;
}

.ticket-check-in-result.already-used {
  border-color: rgba(240, 182, 109, 0.42);
  background: rgba(240, 182, 109, 0.14);
  color: var(--warn);
}

.ticket-check-in-result.error {
  border-color: rgba(255, 94, 122, 0.40);
  background: rgba(255, 94, 122, 0.12);
  color: #ffbac8;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.listing-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 18px;
}

.section-head {
  margin-bottom: 12px;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field-help,
.optional-label {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.optional-label {
  display: inline;
  margin: 0;
  font-weight: 500;
}

.field-help.important {
  border-left: 3px solid var(--warn);
  padding-left: 10px;
  color: rgba(248, 245, 255, 0.82);
}

.fee-disclosure {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: rgba(248, 245, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
}

.topup-box,
.lock-fields,
.tier-panel {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}

.profile-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-status-grid > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.profile-status-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.lock-fields {
  display: grid;
  gap: 10px;
  margin-inline: 0;
}

.lock-fields legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.lock-fields label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.lock-fields input {
  width: auto;
}

.venue-hours-list {
  display: grid;
  gap: 0.65rem;
}

.venue-hours-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) minmax(7rem, 0.8fr) minmax(7rem, 0.8fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--panel-soft);
}

.venue-hours-day {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.venue-hours-row > label:not(.venue-hours-day) {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 620px) {
  .venue-hours-row {
    grid-template-columns: 1fr 1fr;
  }

  .venue-hours-day {
    grid-column: 1 / -1;
  }
}

.lock-fields input:disabled + span,
.lock-fields label:has(input:disabled) {
  opacity: 0.68;
}

.tier-list {
  display: grid;
  gap: 10px;
}

.tier-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 110px 110px 38px;
  gap: 8px;
  align-items: end;
}

.tier-row button {
  min-height: 42px;
  padding: 0;
}

.image-preview {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.preview-panel {
  position: sticky;
  top: 18px;
}

.tile-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(192, 132, 252, 0.94), rgba(0, 56, 63, 0.98));
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.tile-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-preview img[src=""],
.tile-preview img:not([src]) {
  display: none;
}

.tile-preview-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.tile-preview-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.tile-preview-sponsored {
  top: 9px;
  right: auto;
  left: 9px;
  max-width: calc(100% - 110px);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-preview-date {
  top: 39px;
  right: auto;
  left: 10px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.68);
}

.tile-preview-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.tile-preview-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.tile-preview-share {
  padding: 0 0 4px 4px;
  font-size: 24px;
}

.tile-preview-copy {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
}

.tile-preview-copy strong,
.tile-preview-copy p {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-preview-attribution {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-preview-copy strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.05;
}

.tile-preview-copy p {
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.listing-list {
  display: grid;
  gap: 10px;
}

.moderation-list {
  display: grid;
  gap: 14px;
}

.moderation-card {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.moderation-media {
  position: relative;
  aspect-ratio: 3 / 1;
  align-self: start;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(13, 8, 35, 0.68);
}

.moderation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moderation-pill {
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
}

.moderation-body {
  display: grid;
  gap: 12px;
}

.moderation-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.moderation-title {
  display: block;
  margin-bottom: 2px;
  font-size: 18px;
}

.moderation-meta,
.moderation-description,
.moderation-locks {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.moderation-locks {
  color: rgba(248, 245, 255, 0.82);
  font-weight: 700;
}

.moderation-facts {
  display: grid;
  gap: 3px;
  border-left: 3px solid rgba(103, 232, 249, 0.38);
  padding-left: 10px;
}

.moderation-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.moderation-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.moderation-links a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.moderation-links a.disabled-link {
  color: var(--muted);
  pointer-events: none;
  text-decoration: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-grid > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 8, 35, 0.44);
}

.admin-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-grid strong {
  display: block;
  font-size: 13px;
}

.admin-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-grid a {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.admin-grid a.disabled-link {
  color: var(--muted);
  pointer-events: none;
  text-decoration: none;
}

.review-notes-label textarea {
  min-height: 86px;
}

.audit-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 8, 35, 0.44);
}

.audit-panel summary {
  cursor: pointer;
  font-weight: 900;
}

.audit-panel ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.audit-panel li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.audit-panel li p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.listing-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.listing-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.listing-name {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
}

.listing-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.listing-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.listing-stats > div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  background: rgba(13, 8, 35, 0.36);
}

.listing-stats strong,
.listing-stats span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-settlement {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(103, 232, 249, 0.05);
}

.listing-settlement-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.listing-settlement-head > span,
.settlement-breakdown,
.tier-inventory {
  color: var(--muted);
  font-size: 12px;
}

.settlement-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settlement-breakdown {
  margin: 0;
}

.tier-inventory {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.listing-stats strong {
  white-space: nowrap;
  font-size: 14px;
}

.listing-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  justify-content: center;
  min-width: 96px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(103, 232, 249, 0.13);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status.active {
  background: rgba(34, 230, 168, 0.14);
  color: var(--success);
}

.status.verified,
.status.free,
.status.paid {
  background: rgba(34, 230, 168, 0.14);
  color: var(--success);
}

.status.pending_review {
  background: rgba(240, 182, 109, 0.16);
  color: var(--warn);
}

.status.paused,
.status.draft {
  background: rgba(248, 245, 255, 0.10);
  color: rgba(248, 245, 255, 0.78);
}

.status.rejected,
.status.budget_exhausted,
.status.payment_required,
.status.cancelled,
.status.unverified {
  background: rgba(255, 94, 122, 0.14);
  color: #ffbac8;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.moderation-pagination {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .topbar,
  .layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .notice,
  .profile-status-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .listing-workspace {
    grid-template-columns: 1fr;
  }

  .moderation-card,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .listing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .ticket-check-in-controls {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }

  .metrics,
  .split,
  .tier-row {
    grid-template-columns: 1fr;
  }

  .tile-preview-copy strong {
    font-size: 13px;
  }

  .tile-preview-copy p {
    font-size: 11px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .listing-card-head {
    display: grid;
  }

  .listing-stats {
    grid-template-columns: 1fr;
  }
}
