/* LaymenStage Community — extends main styles.css */

.community-page {
  min-height: 100vh;
}

.community-main {
  padding: 96px 0 64px;
  min-height: calc(100vh - 120px);
}

/* Ensure hamburger stays clickable above community content */
.community-page .nav {
  z-index: 210;
}
.community-page .hamburger {
  position: relative;
  z-index: 220;
  pointer-events: auto;
  touch-action: manipulation;
}

/* Active state on mobile sheet links */
.community-page .nav__mobile-list > li > a.nav__link-active {
  color: var(--text);
  background: rgba(123, 44, 191, .16);
}
.community-page .nav__mobile-list > li > a.nav__link-active .nav__link-arrow {
  color: var(--accent);
}

.community-container {
  max-width: 1100px;
}

.nav__user {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  max-width: 200px;
  min-width: 0;
}
.nav__user-link:hover .nav__user {
  color: var(--text);
}

/* —— Profile avatars —— */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-avatar--initials {
  font-size: 0.95rem;
  letter-spacing: -.02em;
  user-select: none;
}
.user-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}
.user-avatar--nav {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, .12);
}
.user-avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}
.user-avatar--xl {
  width: 88px;
  height: 88px;
  font-size: 1.85rem;
}
.user-avatar--hero {
  width: 104px;
  height: 104px;
  font-size: 2.1rem;
  border: 3px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 0 0 1px rgba(123, 44, 191, .25),
    0 12px 32px rgba(0, 0, 0, .35);
}
.user-avatar--img {
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.user-avatar--hero.user-avatar--img {
  border-color: rgba(255, 255, 255, .14);
}

/* —— Dashboard layout —— */
.dash {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.dash-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 28px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(123, 44, 191, .18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 100% 20%, rgba(45, 125, 255, .12) 0%, transparent 50%),
    var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.dash-hero__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px 28px;
}

.dash-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
}

.dash-hero__avatar-edit {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: var(--grad);
  border: 2px solid var(--panel);
  box-shadow: 0 4px 14px rgba(45, 125, 255, .35);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.dash-hero__avatar-edit:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(123, 44, 191, .45);
}
.dash-hero__avatar-edit:focus-visible {
  outline: 2px solid rgba(142, 182, 255, .7);
  outline-offset: 2px;
}

.dash-hero__info {
  flex: 1;
  min-width: 220px;
}

.dash-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.dash-hero__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.dash-hero__name {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.dash-hero__name-edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.dash-hero__name-edit:hover {
  color: var(--accent);
  border-color: rgba(142, 182, 255, .35);
  background: rgba(142, 182, 255, .1);
}
.dash-hero__name-edit:focus-visible {
  outline: 2px solid rgba(142, 182, 255, .55);
  outline-offset: 2px;
}

.dash-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.dash-hero__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.dash-dot {
  opacity: .45;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.dash-pill--soft {
  color: var(--accent);
  background: rgba(142, 182, 255, .12);
  border: 1px solid rgba(142, 182, 255, .22);
}

.dash-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 600;
}
.dash-btn.is-disabled,
.dash-btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

/* Profile photo modal */
body.dash-modal-open {
  overflow: hidden;
}

.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.dash-modal[hidden] {
  display: none !important;
}

.dash-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dash-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(123, 44, 191, .16) 0%, transparent 55%),
    var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  padding: 0;
}
.dash-modal__panel--sm {
  max-width: 380px;
}
.dash-modal__panel--settings {
  max-width: 460px;
}

.dash-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dash-modal__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.dash-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.dash-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

.dash-modal__body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-modal__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.user-avatar--modal {
  width: 112px;
  height: 112px;
  font-size: 2.2rem;
  border: 3px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.dash-modal__hint {
  margin: 0;
  font-size: 13px;
  max-width: 280px;
}
.dash-modal__hint--left {
  max-width: none;
  text-align: left;
}

.dash-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-modal__file-field {
  margin: 0;
}
.dash-modal__file-field input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.dash-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dash-modal__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  text-align: center;
}
.dash-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
}
.dash-stat__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.dash-settings {
  gap: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.dash-settings__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}
.dash-settings__section + .dash-settings__section {
  border-top: 1px solid var(--line);
}

.dash-settings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.dash-settings__title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.dash-settings__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.dash-settings__code {
  margin: 0;
}
.dash-settings__code code {
  font-size: 11.5px;
  color: var(--muted-2);
  word-break: break-all;
}

.dash-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-inline-form {
  display: inline;
  margin: 0;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-status--connected {
  color: #a7f3d0;
  background: rgba(74, 222, 176, .12);
  border: 1px solid rgba(74, 222, 176, .28);
}
.dash-status--pending {
  color: #fde68a;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(245, 158, 11, .28);
}
.dash-status--disconnected {
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
}
.dash-status--unavailable {
  color: #fecaca;
  background: rgba(240, 113, 120, .1);
  border: 1px solid rgba(240, 113, 120, .28);
}

.dash-panel .panel__sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
}

.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 4px;
}
.dash-empty p {
  margin: 0;
  color: var(--muted);
}

.table-title {
  font-weight: 600;
  color: var(--text);
}
.table-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dash-hero {
    padding: 20px 16px 16px;
  }
  .user-avatar--hero,
  .dash-hero__avatar-wrap {
    width: 88px;
    height: 88px;
  }
  .user-avatar--hero {
    font-size: 1.75rem;
  }
  .dash-hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Listing creator chip */
.listing-detail__creator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}
.listing-detail__creator:hover {
  color: var(--accent-h);
}

/* Admin user row avatar */
.user-row__avatar {
  margin-right: 2px;
}

.nav__link-active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, .08);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-2);
}

.btn--danger {
  background: rgba(240, 113, 120, .18);
  border: 1px solid rgba(240, 113, 120, .4);
  color: #fecaca;
}
.btn--danger:hover {
  background: rgba(240, 113, 120, .28);
  color: #fff;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid var(--line);
}
.alert--success {
  background: rgba(74, 222, 176, .1);
  border-color: rgba(74, 222, 176, .3);
  color: #a7f3d0;
}
.alert--error {
  background: rgba(240, 113, 120, .1);
  border-color: rgba(240, 113, 120, .35);
  color: #fecaca;
}
.alert--info {
  background: rgba(142, 182, 255, .1);
  border-color: rgba(142, 182, 255, .28);
  color: #c7d7ff;
}

/* Hero */
.comm-hero {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px 0 8px;
}
.comm-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.comm-hero__sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 20px;
  font-size: 15px;
}
.comm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.page-head p {
  color: var(--muted);
  font-size: 15px;
}

/* Toolbar */
.comm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}
.comm-toolbar .input {
  flex: 1 1 200px;
  min-width: 0;
}
.comm-toolbar .input--select {
  flex: 0 0 auto;
  width: auto;
  min-width: 120px;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}
.form--wide {
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field__hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted-2);
}
.input {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input:focus {
  border-color: rgba(142, 182, 255, .5);
  box-shadow: 0 0 0 3px rgba(45, 125, 255, .15);
}
.input--textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.input--sm {
  padding: 8px 10px;
  font-size: 13px;
}
.input--select {
  cursor: pointer;
}
.input[type="file"] {
  padding: 10px;
  font-size: 13px;
}

/* Auth */
.auth-card {
  max-width: 420px;
  margin: 24px auto;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-card__sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.auth-card__footer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.auth-card .form {
  max-width: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  flex-shrink: 0;
}

.btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 600;
  text-decoration: none;
}
.btn--google:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: rgba(255, 255, 255, .28);
}
.btn--google__icon {
  display: inline-flex;
  line-height: 0;
}

.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.field__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #8eb6ff);
  text-decoration: none;
  white-space: nowrap;
}
.field__link:hover {
  text-decoration: underline;
}

/* Design grid */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.design-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.design-card:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 182, 255, .25);
  box-shadow: var(--shadow);
  color: inherit;
}
.design-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-3);
  overflow: hidden;
}
.design-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.design-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 14px;
  background:
    linear-gradient(135deg, rgba(123,44,191,.2), rgba(45,125,255,.15));
}
.design-card__placeholder--lg {
  min-height: 280px;
  border-radius: var(--radius-lg);
}
.design-card__price {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(11, 15, 26, .82);
  border: 1px solid var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.design-card__price--free {
  color: #a7f3d0;
  border-color: rgba(74, 222, 176, .35);
}
.design-card__sales {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: rgba(11, 15, 26, .82);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}
.design-card__sales svg {
  opacity: .85;
  flex-shrink: 0;
}
.design-card__body {
  padding: 14px 16px 16px;
}
.design-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.design-card__meta {
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

/* Listing detail */
.listing-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
.listing-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
}
.listing-detail__media img {
  width: 100%;
  height: auto;
  display: block;
}
.listing-detail__media--gallery {
  overflow: visible;
}

/* Listing preview gallery (multi-image carousel) */
.media-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  outline: none;
}
.media-gallery:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.media-gallery__viewport {
  position: relative;
  width: 100%;
  background: #0a0a0c;
  min-height: 200px;
}
.media-gallery__slide {
  margin: 0;
  display: none;
}
.media-gallery__slide.is-active {
  display: block;
}
.media-gallery__slide img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #0a0a0c;
}
.media-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(12, 12, 16, .72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  padding: 0;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.media-gallery__nav:hover {
  background: rgba(20, 20, 28, .9);
  border-color: rgba(255, 255, 255, .35);
}
.media-gallery__nav:active {
  transform: translateY(-50%) scale(.96);
}
.media-gallery__nav--prev {
  left: 10px;
}
.media-gallery__nav--next {
  right: 10px;
}
.media-gallery__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: rgba(12, 12, 16, .7);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 4px 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.media-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px 14px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.media-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.media-gallery__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}
.media-gallery__dot:hover {
  background: rgba(255, 255, 255, .45);
}

/* Edit page multi-preview manager */
.edit-preview-gallery {
  margin-bottom: 20px;
}
.edit-preview-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-width: 640px;
}
.edit-preview-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.edit-preview-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #0a0a0c;
}
.edit-preview-tile__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px 8px;
  user-select: none;
}
.edit-preview-tile__check input {
  accent-color: var(--accent);
}
.listing-detail__info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 8px;
}
.listing-detail__by {
  color: var(--muted);
  margin-bottom: 16px;
}
.listing-detail__desc {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text);
}
.listing-detail__meta {
  font-size: 13px;
  margin-bottom: 20px;
}
.listing-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.price-free {
  color: var(--accent-2);
}
.muted {
  color: var(--muted);
}

/* Panels / tables */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel__head h2 {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table th {
  color: var(--muted-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge--pending {
  background: rgba(251, 191, 36, .14);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, .35);
}
.badge--approved {
  background: rgba(74, 222, 176, .12);
  color: #a7f3d0;
  border: 1px solid rgba(74, 222, 176, .3);
}
.badge--rejected {
  background: rgba(240, 113, 120, .12);
  color: #fecaca;
  border: 1px solid rgba(240, 113, 120, .3);
}

/* Admin moderation */
.mod-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mod-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.mod-card__thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 1;
}
.mod-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mod-card__body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.mod-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mod-reject .input {
  width: 200px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
}
.empty-state p {
  margin-bottom: 16px;
}

/* Creator profile */
.creator-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.creator-hero__avatar.user-avatar,
.creator-hero .user-avatar--xl {
  width: 80px;
  height: 80px;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.creator-hero__info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.creator-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 12px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.creator-hero__stats strong {
  color: var(--text);
  font-weight: 700;
}
.section-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--muted);
}

/* Edit form extras */
.edit-preview {
  max-width: 320px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.edit-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Upload progress */
/* File picker (design + multi preview) */
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field__count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: .02em;
}
.field__count.is-full {
  color: var(--accent);
}
.file-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-picker__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 22px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .02);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: default;
}
.file-picker__drop.is-dragover {
  border-color: var(--accent);
  background: rgba(123, 44, 191, .1);
  box-shadow: 0 0 0 3px rgba(123, 44, 191, .12);
}
.file-picker__drop.is-disabled {
  opacity: .55;
  pointer-events: none;
}
.file-picker__drop-icon {
  font-size: 22px;
  line-height: 1;
  opacity: .9;
  margin-bottom: 2px;
}
.file-picker__drop-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.file-picker__drop-sub {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  max-width: 36em;
  line-height: 1.45;
}
.file-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-picker__list[hidden],
.file-picker__selected[hidden],
.file-picker__drop[hidden] {
  display: none !important;
}
.file-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.file-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #0a0a0c;
  display: block;
}
.file-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  font-size: 22px;
}
.file-card__meta {
  min-width: 0;
}
.file-card__name {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-card__size {
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}
.file-card__remove {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.file-card__remove:hover {
  color: #fecaca;
  border-color: rgba(240, 113, 120, .4);
  background: rgba(240, 113, 120, .1);
}

.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(123, 44, 191, .12) 0%, transparent 55%),
    rgba(255, 255, 255, .03);
}
.upload-progress[hidden] {
  display: none !important;
}
.upload-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.upload-progress__label {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.upload-progress__pct {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: -.02em;
}
.upload-progress__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  overflow: hidden;
}
.upload-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--grad, linear-gradient(90deg, #2d7dff, #7b2cbf));
  box-shadow: 0 0 16px rgba(45, 125, 255, .35);
  transition: width .12s ease-out;
}
.upload-progress__meta {
  margin: 0;
  font-size: 12px;
}
.upload-progress__files {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upload-progress__files[hidden] {
  display: none !important;
}
.upload-progress__file {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.upload-progress__file-name {
  grid-column: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-progress__file-status {
  grid-column: 2;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.upload-progress__file-track {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.upload-progress__file-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d7dff, #7b2cbf);
  transition: width .12s ease-out;
}
.upload-progress__file.is-active .upload-progress__file-status {
  color: var(--accent);
}
.upload-progress__file.is-done .upload-progress__file-status {
  color: #a7f3d0;
}
.form.is-uploading .field {
  opacity: .72;
  pointer-events: none;
}
.form.is-uploading .upload-progress {
  opacity: 1;
  pointer-events: auto;
}

/* Design type pills */
.type-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
  background: rgba(142, 182, 255, .12);
  border: 1px solid rgba(142, 182, 255, .22);
  white-space: nowrap;
  vertical-align: middle;
}
.type-pill--sm {
  height: 18px;
  padding: 0 7px;
  font-size: 10.5px;
}
.design-card__meta .type-pill {
  margin-right: 2px;
}
.form--danger {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.form-danger-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fecaca;
  margin-bottom: 8px;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 600px) {
  .creator-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin panel */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}
.admin-tab:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.admin-tab.is-active {
  color: var(--text);
  background: rgba(123, 44, 191, .18);
  border-color: rgba(168, 85, 247, .35);
}
.admin-tab__count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  background: rgba(255, 77, 109, .2);
  color: #fda4af;
}
.admin-tab__count--soft {
  background: rgba(142, 182, 255, .14);
  color: var(--accent);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.admin-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
a.admin-stat--link {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.admin-stat--link:hover {
  border-color: var(--line-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}
.admin-stat__num {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  word-break: break-word;
}
.admin-stat__label {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.admin-tool-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.admin-tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.admin-tool:hover {
  border-color: rgba(142, 182, 255, .35);
  background: rgba(142, 182, 255, .06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.admin-tool strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.admin-tool span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-filter--search .input {
  min-width: 200px;
  flex: 1 1 180px;
}
.panel__head--filter {
  align-items: flex-start;
  gap: 12px;
}
.table-sub {
  font-size: 11.5px;
  margin-top: 2px;
}
.table-row--admin {
  background: rgba(123, 44, 191, .06);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.user-cell__text {
  min-width: 0;
}
.user-cell__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--text);
}
.user-cell__email {
  font-size: 12px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.admin-users-table-wrap {
  border-top: 1px solid var(--line);
}
.table--users td {
  vertical-align: middle;
}
.user-avatar--xs {
  width: 28px;
  height: 28px;
  font-size: .75rem;
  flex-shrink: 0;
}
.admin-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-simple-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.admin-simple-list li:last-child {
  border-bottom: none;
}
/* Compact admin users list */
.panel--flush {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.panel--flush .panel__head--users {
  padding: 0 20px 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
  align-items: baseline;
}
.panel--flush .panel__hint {
  margin: 0;
  font-size: 12.5px;
}
.panel--flush .user-reset-alert {
  margin: 0 16px 12px;
}
.user-reset-alert .input {
  margin-top: 8px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.user-pill--ok {
  background: rgba(74, 222, 176, .1);
  color: #a7f3d0;
  border-color: rgba(74, 222, 176, .28);
}
.user-pill--mid {
  background: rgba(142, 182, 255, .1);
  color: #c7d7ff;
  border-color: rgba(142, 182, 255, .28);
}
.user-pill--off {
  background: rgba(255, 255, 255, .04);
  color: var(--muted-2);
  border-color: var(--line);
}

.btn--xs {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  line-height: 1.2;
  height: auto;
  min-height: 28px;
  border-radius: 8px;
}

.badge--xs {
  padding: 2px 7px;
  font-size: 9.5px;
  letter-spacing: .04em;
}

/* Compact name + gear user cards */
.admin-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  transition: background .12s ease;
}
.admin-user-card:last-child {
  border-bottom: none;
}
.admin-user-card:hover {
  background: rgba(255, 255, 255, .03);
}
.admin-user-card--admin {
  background: rgba(123, 44, 191, .06);
}
.admin-user-card--admin:hover {
  background: rgba(123, 44, 191, .1);
}
.admin-user-card__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.admin-user-card__text {
  min-width: 0;
  flex: 1 1 auto;
}
.admin-user-card__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
}
.admin-user-card__name-text {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.admin-user-card__email {
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.admin-user-card__gear {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  padding: 0;
}
.admin-user-card__gear:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}
.admin-user-card__gear:active {
  transform: scale(.96);
}
.admin-user-card__gear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* User manage popup */
.admin-user-modal-body {
  gap: 16px !important;
}
.admin-user-modal__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-user-modal__name {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.admin-user-modal__email {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-user-modal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  min-height: 0;
}
.admin-user-modal__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .16);
}
.admin-user-modal__stats > div {
  min-width: 0;
}
.admin-user-modal__stats dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.admin-user-modal__stats dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.admin-user-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-user-modal__form {
  margin: 0;
}
.admin-user-modal__form--password .field {
  margin: 0;
}
.admin-user-modal__pw-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-user-modal__pw-row .input {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-user-modal__actions .btn {
  width: 100%;
  justify-content: center;
}
.admin-user-modal__pw-row .btn {
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .admin-user-card {
    padding: 9px 12px;
    min-height: 48px;
  }
  .admin-user-card__name-text {
    font-size: 13.5px;
  }
  .admin-user-card__email {
    font-size: 11.5px;
  }
  .admin-user-card__gear {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .panel--flush .panel__head--users {
    padding: 0 14px 10px;
  }
  .admin-user-modal__stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.page-head--sm {
  margin-bottom: 16px;
}
.page-head--sm h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}


.community-footer {
  padding-top: 0;
}
.community-footer .footer__bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

@media (max-width: 800px) {
  .listing-detail {
    grid-template-columns: 1fr;
  }
  .mod-card {
    grid-template-columns: 1fr;
  }
  .mod-card__thumb {
    max-width: 200px;
  }
}

@media (max-width: 900px) {
  .nav__user {
    display: none;
  }
}

/* —— Admin mobile —— */
.admin-page {
  min-width: 0;
}
.admin-status-panel {
  margin-top: 20px;
}
.page-head__meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Horizontal scrollable tab bar on small screens */
.admin-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.admin-tabs::-webkit-scrollbar {
  height: 4px;
}
.admin-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

/* Responsive card-style tables */
@media (max-width: 760px) {
  .admin-page .page-head h1 {
    font-size: 1.45rem;
  }
  .admin-page .page-head p {
    font-size: 13px;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 0 -4px 18px;
    padding: 2px 4px 10px;
    scroll-snap-type: x proximity;
  }
  .admin-tab {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    scroll-snap-align: start;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-stat {
    padding: 14px 12px;
  }
  .admin-stat__num {
    font-size: 1.1rem;
  }

  .admin-tool-grid,
  .admin-tool-grid--wide {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-tool {
    padding: 14px;
  }

  .panel {
    padding: 16px 14px;
    margin-bottom: 14px;
  }
  .panel--flush {
    padding-left: 0;
    padding-right: 0;
  }
  .panel__head,
  .panel__head--filter,
  .panel__head--users {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .panel--flush .panel__head--users {
    padding: 0 14px 12px;
  }
  .admin-filter,
  .admin-filter--search {
    width: 100%;
  }
  .admin-filter--search .input {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }
  .admin-filter .btn {
    flex: 0 0 auto;
  }

  .panel--flush .user-reset-alert {
    margin: 0 12px 12px;
  }

  /* Stack tables into cards */
  .table--responsive {
    border-collapse: separate;
    border-spacing: 0;
  }
  .table--responsive thead {
    display: none;
  }
  .table--responsive tbody {
    display: block;
  }
  .table--responsive tr {
    display: block;
    margin: 0 0 12px;
    padding: 12px 12px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
  }
  .table--responsive tr:last-child {
    margin-bottom: 0;
  }
  .table--responsive td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    text-align: right;
  }
  .table--responsive td:last-child {
    border-bottom: none;
  }
  .table--responsive td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 38%;
    text-align: left;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding-top: 2px;
  }
  .table--responsive td > :not(.table-sub) {
    min-width: 0;
  }
  .table--responsive .table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    max-width: 62%;
  }
  .table--responsive .table-actions::before {
    /* label already from td::before */
  }
  .table--responsive .user-cell {
    justify-content: flex-end;
    text-align: right;
  }
  .table--responsive .user-cell__email {
    max-width: 180px;
    margin-left: auto;
  }
  .table--responsive .user-cell__name {
    justify-content: flex-end;
  }
  .admin-users-table-wrap {
    border-top: none;
    padding: 0 12px 12px;
  }
  .admin-users-table-wrap .table--responsive tr {
    margin-bottom: 10px;
  }
  .table-row--admin {
    background: rgba(123, 44, 191, .1);
  }

  /* Pending review cards */
  .mod-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .mod-card__thumb {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .mod-card__body h2 {
    font-size: 1.05rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .mod-card__body p {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .mod-card__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .mod-card__actions .inline-form,
  .mod-card__actions .mod-reject {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mod-reject .input {
    width: 100%;
  }
  .mod-card__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  .admin-simple-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }

  /* System status table */
  .table--status {
    font-size: 13px;
  }
  .table--status th,
  .table--status td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
    width: 100%;
  }
  .table--status tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .table--status tr:last-child {
    border-bottom: none;
  }
  .table--status th {
    color: var(--muted-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .table--status td {
    word-break: break-word;
  }
  .table--status code {
    font-size: 11.5px;
    word-break: break-all;
  }

  .user-pw-form {
    position: static;
    margin-top: 8px;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    box-shadow: none;
  }
  .user-pw-form .input--xs {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .table--responsive .table-actions .btn,
  .table--responsive .table-actions .user-pw-toggle {
    flex: 1 1 auto;
  }
  .table--responsive .table-actions .user-pw-toggle > summary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stat__label {
    font-size: 10.5px;
  }
  .admin-tab {
    padding: 0 10px;
    font-size: 12px;
  }
}
