:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #657184;
  --line: #dce2ea;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #d99a20;
  --blue: #1d4ed8;
  --warning: #b45309;
  --shadow: 0 12px 32px rgba(24, 32, 43, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(217, 154, 32, 0.12), transparent 290px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.10), rgba(238, 243, 247, 0) 300px),
    var(--bg);
}

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

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.20), rgba(19, 32, 43, 0.96)),
    #13202b;
  color: #ecf4f3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-header {
  justify-content: space-between;
  position: relative;
}

.brand-account {
  position: relative;
  flex: 0 0 auto;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2dd4bf, #f2c94c);
  color: #102027;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.2);
}

.brand-logo {
  object-fit: contain;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand strong, .brand span { display: block; }
.brand span { color: #aab9c4; font-size: 13px; margin-top: 2px; }

.nav {
  display: grid;
  gap: 9px;
}

.nav-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 13px;
  text-align: left;
  color: #d9e8e6;
  background: rgba(255,255,255,0.045);
  font-weight: 750;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.36);
  color: #ffffff;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #f2c94c;
}

.account-box {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-box small {
  display: block;
  color: #9fe3d7;
  font-size: 12px;
  margin-top: 3px;
}

.admin-shortcut {
  color: #d9fffa;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  background: rgba(255,255,255,0.06);
}

.main {
  padding: 30px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(220, 226, 234, 0.9);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 32, 43, 0.06);
}

.compact-topbar {
  min-height: 0;
  justify-content: flex-end;
  padding: 0;
  margin-bottom: 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 4px;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; }
h2 { font-size: 20px; margin-bottom: 18px; }

.top-actions {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  position: relative;
}

.avatar-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(24, 32, 43, 0.18);
}

.avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 220px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.avatar-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  text-align: left;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 750;
}

.avatar-menu button:hover {
  background: #e8f5f3;
  color: var(--accent-dark);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
}

.hidden { display: none !important; }
.mobile-only { display: none; }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
}

.auth-copy {
  min-height: 500px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 35, 42, 0.70), rgba(12, 83, 76, 0.88)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=82");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-copy h2 { font-size: 40px; line-height: 1.08; max-width: 720px; margin-bottom: 14px; }
.auth-copy p { max-width: 620px; color: #d8eeec; margin-bottom: 0; }

.business-hero {
  min-height: 260px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
  padding: 28px;
  color: #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 32, 43, 0.92), rgba(19, 32, 43, 0.42)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.business-hero h2 {
  max-width: 760px;
  font-size: 34px;
  line-height: 1.12;
  margin: 12px 0;
}

.business-hero p {
  max-width: 650px;
  color: #dbeafe;
  margin-bottom: 0;
}

.home-showcase {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.home-showcase-hero {
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
  border-radius: 8px;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(19,32,43,0.92), rgba(19,32,43,0.32)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1600&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.home-showcase-hero h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 25px;
}

.home-showcase-hero p {
  max-width: 620px;
  color: #dbeafe;
  margin-bottom: 0;
}

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

.slim-showcase .showcase-card {
  min-height: 0;
}

.slim-showcase .showcase-photo {
  height: 86px;
}

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

.form-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel { padding: 20px; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
}

.segment {
  border: 0;
  background: #f8fafc;
  color: var(--muted);
}

.segment.active {
  background: var(--accent);
  color: #fff;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 650;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

input[type="file"] {
  padding: 9px;
  background: #f8fafc;
}

textarea { resize: vertical; }

.primary-btn, .ghost-btn, .link-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 0;
  padding: 0 14px;
  font-weight: 750;
}

.primary-btn { background: var(--accent); color: #fff; }
.primary-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.ghost-btn { background: #e8f5f3; color: var(--accent-dark); }
.danger-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 0;
  padding: 0 14px;
  font-weight: 750;
  background: #fee2e2;
  color: #991b1b;
}
.link-btn { background: transparent; color: #a7f3d0; padding: 0; min-height: auto; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 0; }

.view { display: none; }
.view.active { display: block; }

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

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(24, 32, 43, 0.05);
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -26px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.10);
}

.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin-top: 8px; font-size: 30px; }

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

.panel-head, .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.market-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.market-filter {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,252,0.98)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=900&q=70");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.market-filter p {
  color: var(--muted);
  line-height: 1.5;
}

.market-results {
  min-width: 0;
}

.listings-workspace {
  display: grid;
  gap: 14px;
}

.listings-hero {
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(19,32,43,0.92), rgba(19,32,43,0.36)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.listings-hero h2 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.listing-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 32, 43, 0.05);
}

.listing-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

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

.listing-tab-panel {
  display: none;
}

.listing-tab-panel.active {
  display: block;
}

.listing-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.listing-list-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.listing-list-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.listing-list-head span {
  color: var(--muted);
  font-size: 13px;
}

.listing-feed {
  display: grid;
}

.listing-row {
  display: grid;
  grid-template-columns: 132px 54px minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
}

.listing-row:last-child {
  border-bottom: 0;
}

.listing-row:hover {
  background: #f8fafc;
}

.listing-row-photo {
  height: 96px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.listing-company-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(24, 32, 43, 0.16);
}

.listing-row-main {
  min-width: 0;
}

.listing-row-main h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.listing-row-main p {
  margin-bottom: 9px;
  color: var(--muted);
  line-height: 1.45;
}

.listing-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.company-name {
  color: var(--ink);
  font-weight: 800;
}

.listing-row-actions {
  display: grid;
  gap: 8px;
}

.listing-detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.listing-detail-screen {
  display: grid;
  gap: 14px;
}

.back-btn {
  width: max-content;
}

.full-detail {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: start;
}

.detail-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 420px;
  min-height: 0;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin: 18px 0 18px 18px;
}

.detail-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.detail-body h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.detail-body p {
  color: var(--muted);
  line-height: 1.55;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-facts span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.detail-facts strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.company-panel {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.company-cover {
  width: 76px;
  height: 76px;
  min-height: 76px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 20px rgba(24, 32, 43, 0.16);
}

.company-panel h3 {
  margin: 8px 0;
}

.listing-studio, .account-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: stretch;
}

.studio-preview {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(19,32,43,0.05), rgba(19,32,43,0.86)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1000&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.studio-preview p {
  color: #dbeafe;
  line-height: 1.55;
}

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

.listing-list, .timeline {
  display: grid;
  gap: 12px;
}

.listing-card, .timeline-item, .profile-summary, .benefit-grid article, .price-card, .showcase-card, .admin-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.panel, .listing-card, .price-card, .showcase-card, .admin-row {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.listing-card:hover, .price-card:hover, .showcase-card:hover, .admin-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(24, 32, 43, 0.10);
  border-color: rgba(15, 118, 110, 0.26);
}

.listing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  cursor: pointer;
}

.selected-listing {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
  background: #f0fdfa;
}

.listing-photo {
  height: 150px;
  margin: -16px -16px 0;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.featured-card {
  border-color: #f2c94c;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.12);
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #f2c94c;
}

.listing-card h3 { margin: 8px 0; font-size: 18px; }
.listing-card p { color: var(--muted); line-height: 1.5; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  background: #eef2f7;
  color: #334155;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
}

.tag.primary { background: #d9f5ef; color: var(--accent-dark); }
.tag.gold { background: #fef3c7; color: #92400e; }
.tag.dark { background: #13202b; color: #ffffff; }
.tag.verified { background: #e0f2fe; color: #075985; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.badge.premium {
  background: #fef3c7;
  color: #92400e;
}

.badge.verified {
  background: #e0f2fe;
  color: #075985;
}

.premium-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #b8eee5;
  background:
    linear-gradient(90deg, rgba(236, 253, 245, 0.95), rgba(255, 251, 235, 0.9)),
    url("https://images.unsplash.com/photo-1560472354-b33ff0c44a43?auto=format&fit=crop&w=1400&q=70");
  background-size: cover;
  background-position: center right;
  border-radius: 8px;
  padding: 15px 16px;
  margin-bottom: 18px;
}

.premium-banner.active { display: flex; }
.premium-banner strong { display: block; }
.premium-banner span { color: var(--muted); }

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

.form-grid h2, .form-grid .full, .form-grid button { grid-column: 1 / -1; }

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

.check input {
  width: 18px;
  min-height: 18px;
}

.profile-summary {
  display: grid;
  gap: 11px;
  color: var(--muted);
}

.profile-summary strong { color: var(--ink); }

.timeline-item {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.timeline-item strong { color: var(--ink); }

.benefit-grid, .pricing-grid, .showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.benefit-grid article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.benefit-grid span { color: var(--muted); line-height: 1.5; }

.price-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: start;
}

.package-hero {
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 28px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19,32,43,0.92), rgba(19,32,43,0.35)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1600&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.package-hero h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 34px;
}

.package-hero p {
  max-width: 620px;
  color: #dbeafe;
}

.privileges-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.process-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.process-panel ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #dbeafe;
}

.process-panel p {
  color: #fef3c7;
  margin-bottom: 0;
}

.package-card {
  overflow: hidden;
}

.package-photo {
  height: 150px;
  margin: -16px -16px 4px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.growth-package .package-photo {
  background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=900&q=82");
}

.trust-package .package-photo {
  background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=900&q=82");
}

.showcase-package .package-photo {
  background-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=900&q=82");
}

.price-card strong {
  font-size: 28px;
}

.price-card.highlighted {
  border-color: #f2c94c;
  background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.price-card.verified-card {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.showcase-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1000&q=70");
  background-size: cover;
  background-position: center;
}

.showcase-photo {
  height: 130px;
  margin: -16px -16px 2px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.showcase-card h3 {
  margin: 0;
  font-size: 22px;
}

.showcase-card p {
  color: var(--muted);
  line-height: 1.5;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.standalone-head {
  margin-bottom: 14px;
}

.account-preview {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.account-cover {
  width: 112px;
  height: 112px;
  min-height: 112px;
  margin: 22px auto 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid rgba(255,255,255,0.90);
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
}

.account-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.account-card-body h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.account-card-body p {
  color: #cbd5e1;
  line-height: 1.55;
}

.account-card-body .tag-row {
  justify-content: center;
}

.personal-hero {
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 24px;
  color: #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19,32,43,0.92), rgba(19,32,43,0.34)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.personal-hero h2 {
  max-width: 720px;
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.personal-hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: #dbeafe;
}

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

.personal-card, .help-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(24, 32, 43, 0.05);
}

.personal-card {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
}

.personal-card span, .help-card span {
  color: var(--muted);
  line-height: 1.45;
}

.personal-card strong {
  font-size: 20px;
}

.personal-card:hover, .help-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f8fafc;
}

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

.help-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-card {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
}

.help-card strong {
  font-size: 17px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #13202b;
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.admin-body {
  background: #eef3f7;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-card {
  width: min(420px, 100%);
}

.admin-brand {
  color: var(--ink);
}

.admin-brand span {
  color: var(--muted);
}

.admin-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-view { display: none; }
.admin-view.active { display: block; }

.admin-actions {
  display: grid;
  align-items: stretch;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-row div:first-child {
  display: grid;
  gap: 5px;
}

.admin-row span {
  color: var(--muted);
}

.admin-toolbox {
  display: grid;
  gap: 12px;
}

@media (max-width: 1100px) {
  .listing-grid, .benefit-grid, .showcase-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-grid, .help-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-layout, .split, .market-shell, .listing-studio, .account-workspace, .listing-browser, .privileges-layout { grid-template-columns: 1fr; }
  .listing-controls { grid-template-columns: 1fr; }
  .market-filter { position: static; }
  .full-detail { grid-template-columns: 1fr; }
  .detail-photo {
    width: auto;
    margin: 14px 14px 0;
  }
  .company-panel {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .company-cover {
    width: 64px;
    height: 64px;
    min-height: 64px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 104px;
  }
  .app-shell, .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    z-index: 20;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 0 0 14px 14px;
    background:
      linear-gradient(135deg, rgba(19, 32, 43, 0.98), rgba(15, 118, 110, 0.90)),
      #13202b;
    box-shadow: 0 10px 26px rgba(19, 32, 43, 0.18);
  }
  .brand {
    min-height: 54px;
    justify-content: flex-start;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }
  .brand-header {
    justify-content: space-between;
  }
  .brand-main {
    flex: 1;
  }
  .brand-main > div:last-child {
    flex: 1;
    min-width: 0;
  }
  .brand-account {
    flex: 0 0 auto;
    min-width: 38px;
    display: flex;
    justify-content: flex-end;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(45, 212, 191, 0.16);
  }
  .brand-logo {
    box-shadow: none;
  }
  .brand strong {
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .brand span {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b9d0ce;
  }
  .nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    overflow: visible;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(220, 226, 234, 0.92);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(19, 32, 43, 0.18);
    backdrop-filter: blur(18px);
  }
  .mobile-only {
    display: grid;
  }
  .nav-item.desktop-only {
    display: none;
  }
  .nav-item {
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
    line-height: 1.1;
  }
  .nav-item::before {
    position: static;
    content: "";
    width: 28px;
    height: 24px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    font-family: Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
    transform: none;
    transition: background-color 140ms ease, color 140ms ease;
  }
  .nav-item[data-view="dashboard"]::before {
    content: "⌂";
  }
  .nav-item[data-view="listings"]::before {
    content: "▤";
  }
  .nav-item[data-view="personal"]::before {
    content: "👤";
    font-size: 17px;
    font-weight: 400;
  }
  .nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 20px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: transparent;
  }
  .nav-item:hover {
    background: #f1f5f9;
    color: var(--accent-dark);
  }
  .nav-item.active {
    background: linear-gradient(180deg, #e8f5f3, #ffffff);
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16), 0 8px 18px rgba(15, 118, 110, 0.10);
    transform: none;
  }
  .nav-item.active::after {
    border-radius: 999px;
    background: var(--accent);
  }
  .nav-item.active::before {
    background: rgba(15, 118, 110, 0.11);
  }
  .account-box {
    display: none;
  }
  .admin-shortcut {
    padding: 9px 10px;
  }
  .main { padding: 12px; }
  .topbar {
    padding: 14px;
    margin-bottom: 12px;
  }
  .compact-topbar {
    min-height: 0;
    padding: 0;
    margin: -2px 0 10px;
    align-items: flex-end;
  }
  .top-actions {
    position: static;
  }
  .avatar-menu {
    position: fixed;
    right: 12px;
    top: 70px;
    width: min(260px, calc(100vw - 24px));
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 19px;
  }
  .topbar, .toolbar { align-items: stretch; flex-direction: column; }
  .premium-banner, .admin-row { align-items: stretch; flex-direction: column; }
  .auth-layout {
    gap: 12px;
  }
  .auth-copy { min-height: 230px; padding: 18px; }
  .auth-copy h2, .business-hero h2 { font-size: 25px; }
  .package-hero {
    min-height: 230px;
    padding: 18px;
  }
  .package-hero h2 {
    font-size: 25px;
  }
  .personal-hero {
    min-height: 190px;
    padding: 18px;
  }
  .personal-hero h2 {
    font-size: 24px;
  }
  .personal-grid, .help-card-list {
    grid-template-columns: 1fr;
  }
  .personal-card, .help-card {
    min-height: 96px;
  }
  .form-card, .panel {
    padding: 16px;
  }
  .business-hero {
    min-height: 260px;
    padding: 18px;
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 12px;
  }
  .home-showcase-hero {
    min-height: 220px;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
  }
  .home-showcase-hero h2 {
    font-size: 24px;
  }
  .slim-showcase .showcase-grid {
    grid-template-columns: 1fr;
  }
  .listing-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
  .listings-hero {
    min-height: 220px;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
  }
  .listings-hero h2 {
    font-size: 24px;
  }
  .listing-row {
    grid-template-columns: 88px 44px minmax(0, 1fr);
    gap: 9px;
  }
  .listing-row-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .listing-row-photo {
    height: 92px;
  }
  .listing-company-avatar {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }
  .listing-row-main h3 {
    font-size: 16px;
  }
  .listing-row-main p {
    display: none;
  }
  .business-hero .primary-btn {
    width: 100%;
  }
  .studio-preview {
    min-height: 220px;
    padding: 18px;
  }
  .listing-photo {
    height: 168px;
  }
  .detail-photo {
    min-height: 0;
  }
  .company-panel {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .company-cover {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .package-photo {
    height: 140px;
    margin-left: -14px;
    margin-right: -14px;
  }
  .account-cover {
    width: 96px;
    height: 96px;
    min-height: 96px;
  }
  .market-filter {
    gap: 10px;
    padding: 16px;
  }
  .market-filter h2 {
    margin-bottom: 0;
  }
  .metric {
    padding: 14px;
  }
  .metric strong {
    font-size: 26px;
  }
  .listing-card, .timeline-item, .profile-summary, .benefit-grid article, .price-card, .showcase-card, .admin-row {
    padding: 14px;
  }
  .listing-photo, .showcase-photo {
    margin-left: -14px;
    margin-right: -14px;
  }
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .listing-grid, .benefit-grid, .showcase-grid, .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .primary-btn, .ghost-btn, .danger-btn {
    width: 100%;
    min-height: 48px;
  }
  input, select, textarea {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .nav-item {
    min-width: 88px;
    font-size: 12px;
  }
  .brand span {
    font-size: 12px;
  }
  .top-actions {
    white-space: normal;
  }
  .auth-copy h2, .business-hero h2 {
    font-size: 23px;
  }
  .package-hero h2 {
    font-size: 23px;
  }
  .listing-photo {
    height: 150px;
  }
}
