* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --surface-strong: #eef2fc;
  --sold-soft: #fff3f1;
  --sold-strong: #ffe1db;
  --sold-line: rgba(196, 89, 72, 0.2);
  --sold-ink: #a44c3f;
  --ink: #1b2740;
  --ink-soft: #61708e;
  --line: rgba(27, 39, 64, 0.09);
  --accent: #6658c8;
  --accent-deep: #5146ab;
  --accent-soft: rgba(102, 88, 200, 0.12);
  --shadow-lg: 0 28px 70px rgba(32, 49, 89, 0.12);
  --shadow-md: 0 18px 44px rgba(32, 49, 89, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Assistant", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(102, 88, 200, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  color: var(--ink);
}

body.sharbat-inventory-body a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  width: min(100%, var(--shell));
  margin: 0 auto 34px;
  padding: 26px 34px 18px;
  border: 1px solid rgba(15, 33, 67, 0.08);
  border-radius: 56px;
  background: #ffffff;
  box-shadow: 0 26px 54px rgba(43, 57, 87, 0.1);
}

.topbar-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(15, 33, 67, 0.05);
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 800;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.header-actions {
  display: block;
  min-width: 0;
}

.drawer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  width: 100%;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  column-gap: 34px;
  row-gap: 0;
  min-width: 0;
  font-size: 16.3px;
  color: var(--ink-soft);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-inline: 0;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: none;
}

.nav-cta,
.nav-cta:visited,
.nav-cta:hover,
.nav-cta:focus-visible {
  color: #fff;
}

.main-nav a,
.nav-cta {
  white-space: nowrap;
}

.mobile-menu-toggle,
.mobile-menu-close {
  display: none;
}

.mobile-menu-toggle,
.mobile-menu-toggle:focus-visible {
  box-shadow: none;
}

.mobile-menu-toggle {
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.drawer-mask {
  display: none;
}

.drawer-top {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

.inventory-page {
  min-height: 100vh;
  overflow: clip;
  font-family: "Assistant", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.inventory-page button,
.inventory-page input,
.inventory-page optgroup,
.inventory-page option,
.inventory-page select,
.inventory-page table,
.inventory-page thead,
.inventory-page tbody,
.inventory-page tr,
.inventory-page th,
.inventory-page td,
.inventory-page h1,
.inventory-page h2,
.inventory-page h3,
.inventory-page h4,
.inventory-page p,
.inventory-page span,
.inventory-page strong,
.inventory-page small,
.inventory-page a,
.inventory-page dl,
.inventory-page dt,
.inventory-page dd,
.inventory-page label {
  font-family: inherit;
}

.inventory-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 34px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 23, 50, 0.42) 0%, rgba(11, 23, 50, 0.56) 100%),
    linear-gradient(90deg, rgba(102, 88, 200, 0.18), rgba(102, 88, 200, 0.08));
}

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

.hero-shell,
.inventory-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-topline {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
  gap: 28px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background: rgba(12, 18, 36, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  color: #ffffff;
}

.project-mark {
  width: 130px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.45rem);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-stats,
.summary-grid {
  display: grid;
  gap: 14px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.hero-stat,
.summary-item {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
}

.hero-stat strong,
.summary-item strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stat span,
.summary-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-summary {
  display: flex;
  align-items: stretch;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  overflow: hidden;
}

.summary-label,
.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid {
  grid-template-columns: 1fr 1fr;
}

.hero-project-image {
  width: 100%;
  min-height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.summary-item {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  min-height: 116px;
}

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

.summary-item span {
  color: var(--ink-soft);
}

.inventory-shell {
  margin-top: -6px;
  padding-bottom: 44px;
}

.toolbar-panel,
.inventory-main,
.detail-card,
.mix-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.toolbar-panel {
  padding: 28px;
}

.toolbar-heading h2,
.section-caption h3,
.mix-header h3 {
  margin: 8px 0 0;
}

.building-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.building-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.building-card:hover,
.building-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(102, 88, 200, 0.24);
  box-shadow: 0 18px 38px rgba(40, 53, 93, 0.1);
}

.building-card.is-active {
  background: linear-gradient(180deg, rgba(102, 88, 200, 0.11) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.building-card strong {
  font-size: 1.12rem;
}

.building-meta {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.building-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.filters-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.filter-control {
  display: grid;
  gap: 8px;
}

.filter-control span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-control select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.62fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.inventory-main {
  padding: 24px;
}

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

.results-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-weight: 700;
}

.inventory-table-wrap {
  margin-top: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 500;
}

.inventory-table th,
.inventory-table td {
  padding: 13px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.inventory-table thead th {
  position: sticky;
  top: 0;
  background: #f8faff;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) {
  width: 7%;
}

.inventory-table th:nth-child(2),
.inventory-table td:nth-child(2),
.inventory-table th:nth-child(3),
.inventory-table td:nth-child(3),
.inventory-table th:nth-child(7),
.inventory-table td:nth-child(7) {
  width: 7%;
}

.inventory-table th:nth-child(4),
.inventory-table td:nth-child(4),
.inventory-table th:nth-child(5),
.inventory-table td:nth-child(5),
.inventory-table th:nth-child(6),
.inventory-table td:nth-child(6) {
  width: 12%;
}

.inventory-table th:nth-child(8),
.inventory-table td:nth-child(8),
.inventory-table th:nth-child(9),
.inventory-table td:nth-child(9) {
  width: 11%;
}

.inventory-table th:nth-child(10),
.inventory-table td:nth-child(10) {
  width: 14%;
}

.inventory-table tbody tr {
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.inventory-table tbody tr:hover,
.inventory-table tbody tr.is-selected {
  background: rgba(102, 88, 200, 0.08);
}

.inventory-table tbody tr.is-sold {
  background: rgba(122, 132, 154, 0.08);
}

.inventory-table tbody tr.is-sold:hover,
.inventory-table tbody tr.is-sold.is-selected {
  background: rgba(122, 132, 154, 0.14);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill.available {
  background: rgba(61, 191, 115, 0.12);
  color: #167145;
}

.status-pill.sold {
  background: rgba(122, 132, 154, 0.16);
  color: #556178;
}

.program-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.program-pill.target {
  background: rgba(61, 191, 115, 0.12);
  color: #167145;
}

.program-pill.free {
  background: rgba(102, 88, 200, 0.12);
  color: var(--accent-deep);
}

.inventory-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.detail-card,
.mix-card {
  padding: 24px;
}

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

.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 800;
}

.detail-card h3 {
  margin: 12px 0 0;
  font-size: 2rem;
}

.detail-card.is-sold {
  border-color: var(--sold-line);
  background:
    radial-gradient(circle at top left, rgba(233, 108, 87, 0.14), transparent 38%),
    linear-gradient(180deg, #fff9f8 0%, var(--sold-soft) 100%);
  box-shadow: 0 22px 46px rgba(188, 99, 85, 0.12);
}

.detail-card.is-sold .eyebrow,
.detail-card.is-sold h3,
.detail-card.is-sold .detail-intro,
.detail-card.is-sold .detail-note {
  color: var(--sold-ink);
}

.detail-card.is-sold .detail-chip {
  background: var(--sold-strong);
  color: var(--sold-ink);
}

.detail-card.is-sold .detail-grid div {
  border-color: var(--sold-line);
  background: rgba(255, 255, 255, 0.72);
}

.detail-intro {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 500;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 0;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.detail-grid dt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-grid dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.detail-price {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102, 88, 200, 0.1), rgba(102, 88, 200, 0.04));
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.detail-price.is-sold-message {
  background: linear-gradient(135deg, rgba(233, 108, 87, 0.16), rgba(233, 108, 87, 0.08));
  color: var(--sold-ink);
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(81, 70, 171, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.plan-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(81, 70, 171, 0.26);
}

.plan-button.is-disabled {
  background: var(--surface-strong);
  color: #98a5bf;
  box-shadow: none;
  pointer-events: none;
}

.plan-button.is-hidden {
  display: none;
}

.detail-note {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 500;
}

.mix-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mix-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.mix-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  overflow: hidden;
}

.mix-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #8c7df1 100%);
}

@media (max-width: 1180px) {
  .building-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters-bar,
  .inventory-layout,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .inventory-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    display: flex;
    justify-content: space-between;
    top: 0;
    align-items: center;
    width: min(calc(100% - 8px), var(--shell));
    margin-bottom: 20px;
    padding: 22px 16px;
    gap: 12px;
    overflow: visible;
    border: 1px solid rgba(15, 33, 67, 0.08);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(43, 57, 87, 0.09);
  }

  .topbar-branding {
    gap: 12px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-self: center;
    justify-self: auto;
    margin: 0;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    background: rgba(102, 88, 200, 0.1);
    color: var(--accent-deep);
  }

  .mobile-menu-toggle i,
  .mobile-menu-close i {
    font-size: 1.05rem;
  }

  .header-actions {
    position: fixed;
    inset: 0;
    z-index: 3;
    display: block;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .drawer-mask {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 33, 67, 0.1);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 4;
    width: min(84vw, 340px);
    max-width: calc(100vw - 28px);
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    padding: 22px 20px 24px;
    isolation: isolate;
    background: #ffffff;
    border: 1px solid rgba(15, 33, 67, 0.08);
    border-radius: 0 32px 32px 0;
    box-shadow: 18px 0 44px rgba(17, 31, 63, 0.14);
    transform: translateX(-108%);
    transition: transform 0.24s ease;
  }

  .drawer-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 46px;
    padding-bottom: 8px;
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(102, 88, 200, 0.1);
    color: var(--accent-deep);
    cursor: pointer;
  }

  .topbar.is-open {
    background: #ffffff;
  }

  .topbar.is-open .header-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topbar.is-open .drawer-mask {
    opacity: 1;
  }

  .topbar.is-open .mobile-menu-toggle {
    background: rgba(102, 88, 200, 0.16);
  }

  .topbar.is-open .drawer-panel {
    transform: translateX(0);
  }

  .topbar .main-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    text-align: right;
    width: 100%;
  }

  .topbar .main-nav a {
    width: 100%;
    min-height: 0;
    padding: 16px 0;
    justify-content: flex-start;
    text-align: right;
    border-bottom: 1px solid rgba(15, 33, 67, 0.08);
  }

  .topbar .nav-cta {
    justify-self: stretch;
    width: 100%;
    margin: 8px 0 0;
  }

  .hero-shell,
  .inventory-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .inventory-hero {
    padding-top: 12px;
  }

  .hero-card,
  .toolbar-panel,
  .inventory-main,
  .detail-card,
  .mix-card {
    padding: 20px;
  }

  .building-strip,
  .filters-bar,
  .hero-stats,
  .summary-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .caption-row,
  .detail-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-table {
    min-width: 920px;
  }
}
