.smart-search-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.07), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 36%, #f8fafc 100%);
}

.dark .smart-search-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

.smart-search-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.6) 0%, transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.06), transparent 22%);
  opacity: .85;
}

.dark .smart-search-page__bg {
  background:
    linear-gradient(120deg, rgba(15,23,42,.55) 0%, transparent 26%),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 22%);
}

.smart-search-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.smart-search-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dark .smart-search-kicker {
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}

.smart-search-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.03em;
}

.dark .smart-search-title {
  color: #f8fafc;
}

.smart-search-subtitle {
  max-width: 56rem;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.7;
}

.dark .smart-search-subtitle {
  color: #cbd5e1;
}

.smart-search-primary-btn,
.smart-search-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 9999px;
  padding: .9rem 1.25rem;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}

.smart-search-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.smart-search-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .28);
}

.smart-search-outline-btn {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: rgba(255,255,255,.8);
}

.smart-search-outline-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.dark .smart-search-outline-btn {
  background: rgba(15, 23, 42, .75);
  border-color: #334155;
  color: #e2e8f0;
}

.smart-chat-shell {
  border-radius: 2rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.dark .smart-chat-shell {
  border-color: rgba(51, 65, 85, .95);
  background: rgba(2, 6, 23, .92);
  box-shadow: 0 28px 70px rgba(2, 6, 23, .45);
}

.smart-chat-stream {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.smart-chat-row {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.smart-chat-row--user {
  justify-content: flex-end;
}

.smart-chat-avatar,
.smart-chat-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.smart-chat-avatar {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
}

.smart-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.smart-chat-user-avatar {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
}

.smart-chat-bubble {
  max-width: min(44rem, 100%);
  border-radius: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
}

.smart-chat-bubble--assistant {
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  border-color: rgba(191, 219, 254, .95);
  color: #0f172a;
}

.dark .smart-chat-bubble--assistant {
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92));
  border-color: rgba(51, 65, 85, .95);
  color: #e2e8f0;
}

.smart-chat-bubble--user {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-color: rgba(255,255,255,.14);
  text-align: left;
}

.smart-chat-bubble__meta {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .35rem;
}

.smart-chat-bubble__title {
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: .35rem;
}

.smart-chat-bubble__text {
  font-size: .95rem;
  line-height: 1.7;
  color: inherit;
}

.smart-chat-examples {
  margin: .8rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: .45rem;
  color: inherit;
}

.smart-chat-examples li {
  font-size: .9rem;
  line-height: 1.55;
}

.smart-chat-pills,
.smart-quick-refine {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.smart-search-pill,
.smart-search-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .85rem;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.smart-search-pill:hover,
.smart-search-quick-pill:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

.dark .smart-search-pill,
.dark .smart-search-quick-pill {
  border-color: #334155;
  background: rgba(15, 23, 42, .95);
  color: #cbd5e1;
}

.dark .smart-search-pill:hover,
.dark .smart-search-quick-pill:hover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, .18);
  color: #eff6ff;
}

.smart-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.smart-summary-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .7rem .8rem;
  border-radius: 1rem;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,.7);
  color: #0f172a;
  font-size: .88rem;
  line-height: 1.45;
}

.smart-summary-item i {
  color: #2563eb;
  font-size: 1rem;
  margin-top: .08rem;
}

.dark .smart-summary-item {
  border-color: #334155;
  background: rgba(15, 23, 42, .68);
  color: #e2e8f0;
}

.smart-alert-stack {
  display: grid;
  gap: .55rem;
}

.smart-alert-chip {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .72rem .85rem;
  border-radius: 1rem;
  border: 1px solid #f59e0b;
  background: #fef3c7;
  color: #92400e;
  font-size: .88rem;
  line-height: 1.5;
}

.smart-alert-chip i {
  font-size: 1rem;
  margin-top: .1rem;
}

.dark .smart-alert-chip {
  border-color: rgba(245, 158, 11, .38);
  background: rgba(120, 53, 15, .25);
  color: #fcd34d;
}

.smart-results-block {
  margin: 0 1.35rem 1.35rem;
  padding: 1rem;
  border-radius: 1.5rem;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.95));
}

.dark .smart-results-block {
  border-color: #334155;
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,6,23,.95));
}

.smart-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.smart-results-kicker {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
}

.dark .smart-results-kicker {
  color: #94a3b8;
}

.smart-results-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.dark .smart-results-title {
  color: #f8fafc;
}

.smart-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.smart-result-card {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.dark .smart-result-card {
  border-color: #334155;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .34);
}

.smart-result-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #e2e8f0;
}

.smart-result-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.smart-result-card:hover .smart-result-card__media img {
  transform: scale(1.03);
}

.smart-result-card__price {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .3rem .55rem;
  border-radius: .75rem;
  background: rgba(15, 23, 42, .92);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.smart-result-card__body {
  padding: .9rem .95rem 1rem;
}

.smart-result-card__title {
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}

.dark .smart-result-card__title {
  color: #f8fafc;
}

.smart-result-card__location {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .45rem;
  color: #2563eb;
  font-size: .85rem;
  font-weight: 700;
}

.dark .smart-result-card__location {
  color: #93c5fd;
}

.smart-result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .75rem;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.smart-result-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.smart-result-card__meta i {
  color: #2563eb;
}

.dark .smart-result-card__meta {
  color: #94a3b8;
}

.smart-results-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.smart-composer-shell {
  padding: 0 1.35rem 1.35rem;
}

.smart-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .75rem;
  border-radius: 1.5rem;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.dark .smart-composer {
  border-color: #334155;
  background: rgba(15, 23, 42, .92);
  box-shadow: 0 12px 28px rgba(2, 6, 23, .32);
}

.smart-composer__input {
  min-width: 0;
}

.smart-composer__field {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  padding: .8rem .9rem;
}

.smart-composer__field::placeholder {
  color: #94a3b8;
}

.dark .smart-composer__field {
  color: #f8fafc;
}

.smart-composer__submit {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  justify-content: center;
  white-space: nowrap;
  padding: .9rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.smart-composer__submit:hover {
  box-shadow: 0 18px 34px rgba(37, 99, 235, .3);
}

.smart-composer__hint {
  margin-top: .75rem;
  color: #64748b;
  font-size: .86rem;
}

.smart-composer__hint a {
  color: #1d4ed8;
  font-weight: 700;
}

.dark .smart-composer__hint {
  color: #94a3b8;
}

.dark .smart-composer__hint a {
  color: #bfdbfe;
}

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

@media (max-width: 768px) {
  .smart-search-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .smart-chat-stream,
  .smart-composer-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .smart-results-block {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .smart-results-grid {
    grid-template-columns: 1fr;
  }

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

  .smart-composer {
    grid-template-columns: 1fr;
  }

  .smart-composer__submit {
    width: 100%;
  }
}
