@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #f4efe6;
  --surface: #fffaf1;
  --surface-strong: #fffdf8;
  --surface-muted: #ece2d2;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --line: rgba(31, 41, 51, 0.12);
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #d97706;
  --accent-dark: #b45309;
  --danger: #b42318;
  --danger-soft: #fde7e5;
  --success: #15803d;
  --success-soft: #e9f8eb;
  --warning: #c2410c;
  --warning-soft: #fff1df;
  --info: #155eef;
  --info-soft: #e8f0ff;
  --shadow-sm: 0 6px 18px rgba(41, 35, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(41, 35, 28, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.1), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.1rem;
}

.brand-copy span:last-child {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.user-chip:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost,
.user-chip {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(255, 250, 241, 0.84));
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.panel-head h3,
.form-card h4,
.hero-card h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.05;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.hero-lead {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions,
.hero-badges,
.inline-actions,
.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-badges {
  margin-top: 28px;
}

.info-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.info-pill {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-dark);
}

.status-pill.pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.active,
.status-pill.verified,
.status-pill.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.rejected,
.status-pill.deleted,
.status-pill.error,
.status-pill.disabled {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.admin,
.status-pill.moderator,
.status-pill.info {
  background: var(--info-soft);
  color: var(--info);
}

.status-pill.user {
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent-dark);
}

.hero-card {
  padding: 28px;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.feature-list li + li {
  margin-top: 10px;
}

.banner-strip {
  min-height: 20px;
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.notice-info {
  background: var(--info-soft);
  border-color: rgba(21, 94, 239, 0.18);
  color: #1747b7;
}

.notice-warning {
  background: var(--warning-soft);
  border-color: rgba(194, 65, 12, 0.16);
  color: #9a3412;
}

.notice-success {
  background: var(--success-soft);
  border-color: rgba(21, 128, 61, 0.16);
  color: #166534;
}

.browse-section,
.workspace-section {
  padding: 26px 0 42px;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.filters-shell,
.panel,
.stats-card,
.listing-card,
.form-card,
.modal,
.empty-card {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow: var(--shadow-sm);
}

.filters-shell,
.panel,
.modal,
.listing-card,
.empty-card,
.form-card,
.stats-card {
  border-radius: var(--radius-md);
}

.filters-shell,
.panel {
  padding: 22px;
}

.filters-grid,
.form-grid {
  display: grid;
  gap: 14px;
}

.filters-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.input-field {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
}

.textarea-field {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.input-field:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.4);
}

.filters-actions {
  margin-top: 14px;
}

.field-wrap,
.field-label {
  display: block;
}

.field-label {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.field-help {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

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

.stats-card {
  padding: 18px;
}

.stats-card.left {
  text-align: left;
}

.stats-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.stats-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
  font-family: 'Space Grotesk', sans-serif;
}

.listings-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.listing-card {
  overflow: hidden;
}

.listing-cover {
  position: relative;
  height: 210px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(217, 119, 6, 0.16));
}

.listing-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(31, 41, 51, 0.35);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.listing-cover-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-body {
  padding: 18px;
}

.listing-title {
  margin: 0;
  font-size: 1.12rem;
  font-family: 'Space Grotesk', sans-serif;
}

.listing-price {
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.listing-actions,
.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.listing-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(194, 65, 12, 0.08);
  color: #9a3412;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-head.split {
  align-items: center;
}

.panel-head.compact {
  margin-bottom: 12px;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-grid.secondary {
  margin-top: 16px;
}

.form-card {
  padding: 18px;
}

.form-card h4 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.form-card .field-label:not(:first-of-type) {
  margin-top: 14px;
}

.panel-subsection {
  margin-top: 22px;
}

.session-list,
.audit-list {
  display: grid;
  gap: 10px;
}

.session-item,
.audit-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.session-item strong,
.audit-item strong {
  display: block;
}

.session-meta,
.audit-meta {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.full-width {
  grid-column: 1 / -1;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.image-preview img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.moderation-form,
.user-row-actions {
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.small-select {
  min-width: 180px;
}

.empty-card {
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 41, 51, 0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
}

.modal {
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.modal-body {
  padding: 22px;
}

.detail-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow: auto;
}

.detail-thumbs img {
  width: 90px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
}

.detail-thumbs img.active {
  border-color: var(--primary);
}

.detail-price {
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.spec-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.07);
}

.spec-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.spec-value {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

.detail-desc,
.detail-contact {
  margin-top: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--primary);
}

@media (max-width: 1080px) {
  .hero-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-copy,
  .hero-card,
  .filters-shell,
  .panel {
    padding: 18px;
  }

  .filters-grid,
  .auth-grid,
  .form-grid.large,
  .stats-grid,
  .stats-grid.compact,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .header-actions .btn,
  .header-actions .user-chip {
    padding-inline: 14px;
  }

  .modal-body {
    padding: 18px;
  }
}
