:root {
  color-scheme: light;
  font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
  color: #162033;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.14), transparent 32%),
    radial-gradient(circle at top left, rgba(12, 185, 161, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.app-shell {
  width: min(1120px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.hero-card,
.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e3e9f2;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(21, 35, 53, 0.08);
}

.hero-card {
  padding: 42px;
}

.panel {
  padding: 18px;
}

.results-panel {
  margin-top: 16px;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.brand-block {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.brand-mark {
  min-width: 78px;
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #2452d6, #7b5cff 65%, #19b7a5);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 16px 28px rgba(66, 84, 190, 0.22);
}

.eyebrow {
  margin: 0 0 14px;
  color: #5d7493;
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  margin-bottom: 18px;
}

h2 {
  font-size: 20px;
}

.hero-copy {
  margin: 0;
  max-width: 720px;
  color: #5d7493;
  line-height: 1.9;
  font-size: 18px;
}

.hero-badge {
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1ecff;
  color: #6d43f5;
  font-weight: 700;
}

.tabs-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-note {
  margin: 0 0 30px;
  color: #5d7493;
  line-height: 1.9;
  font-size: 16px;
}

.tab-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d6dfeb;
  border-radius: 999px;
  background: #fff;
  color: #5b677a;
  cursor: pointer;
  font: inherit;
}

.tab-button.active {
  background: #6d43f5;
  border-color: #6d43f5;
  color: #fff;
}

.search-form {
  display: grid;
  gap: 28px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.search-bar input,
.search-bar button,
.secondary-button,
.field input,
.field select {
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
}

.search-bar input,
.field input,
.field select {
  border: 1px solid #d8e1ee;
  padding: 0 14px;
  background: #fff;
  color: #162033;
}

.search-bar button,
.secondary-button {
  border: 0;
  padding: 0 18px;
  cursor: pointer;
}

.search-bar button {
  background: linear-gradient(135deg, #2452d6, #6d43f5);
  color: #fff;
  font-weight: 700;
}

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

.field {
  display: grid;
  gap: 6px;
  color: #5d7493;
  font-size: 14px;
}



.toolbar,
.results-header,
.meta-row,
.card-top-row,
.property-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar,
.results-header,
.card-top-row {
  justify-content: space-between;
  align-items: center;
}

.toolbar {
  margin-top: 30px;
}

.sort-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5d7493;
  font-size: 14px;
}

.sort-tool select {
  min-height: 42px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #162033;
  font: inherit;
}

.listener-help {
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 1px solid #e5defd;
  border-radius: 18px;
  background: linear-gradient(135deg, #faf7ff, #f5fbff);
  color: #5b5f8a;
  line-height: 1.9;
  font-size: 15px;
}

.progress-wrap {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #f8fbff;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2452d6, #6d43f5, #19b7a5);
  transition: width 0.25s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #5d7493;
  font-size: 14px;
}

.secondary-button {
  background: #f1ecff;
  color: #6d43f5;
}

.secondary-button.active {
  background: #dcfce7;
  color: #166534;
}

.listener-state,
.results-count,
.status,
.time,
.post-id,
.location {
  color: #5d7493;
}

.status {
  margin: 22px 0 0;
  line-height: 1.7;
}

.status span {
  color: #162033;
}

.results {
  display: grid;
  gap: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: #fff;
  color: #162033;
  cursor: pointer;
  font: inherit;
}

.page-button.active {
  background: #6d43f5;
  border-color: #6d43f5;
  color: #fff;
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-status {
  color: #5d7493;
  font-size: 14px;
}

.card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.card-new {
  border-color: #86efac;
  background: #f0fdf4;
}

.thumb {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 14px;
  background: #eef2f7;
}

.thumb-empty {
  display: grid;
  place-items: center;
  color: #7b8798;
  font-size: 13px;
}

.card-content {
  min-width: 0;
}

.source-badge,
.property-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.source-badge {
  background: #f1ecff;
  color: #6d43f5;
}

.property-chip {
  background: #f4f7fb;
  color: #344255;
}

.title {
  display: block;
  color: #162033;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.6;
}

.price {
  color: #15803d;
  font-weight: 800;
}

.property-meta-row {
  margin-top: 10px;
}

.empty {
  border-radius: 16px;
  background: #f7f9fc;
  color: #5d7493;
  text-align: center;
  padding: 30px 16px;
}

.hidden {
  display: none;
}

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

@media (max-width: 680px) {
  .app-shell {
    width: min(100vw - 16px, 1120px);
    padding-top: 8px;
  }

  .brand-row,
  .search-bar,
  .filters-grid,
  .card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand-block {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-card {
    padding: 22px;
  }

  .brand-row {
    gap: 24px;
    margin-bottom: 28px;
  }

  .brand-block {
    gap: 22px;
  }

  .search-bar button,
  .secondary-button,
  .thumb {
    width: 100%;
  }

  .thumb {
    height: 180px;
  }
}
