﻿:root {
  --font-ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.26), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.24), transparent 26%),
    radial-gradient(circle at 62% 100%, rgba(20, 184, 166, 0.16), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0b1220 44%, #111827 100%);
  background-attachment: fixed;
  color: #1f2933;
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  text-rendering: geometricPrecision;
}

body::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.5px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.page-decor {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.decor-shape {
  opacity: 0.44;
  position: absolute;
}

.decor-ring {
  animation: decorDrift 14s ease-in-out infinite;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  box-shadow: inset 0 0 22px rgba(59, 130, 246, 0.12), 0 0 28px rgba(14, 165, 233, 0.12);
  height: 92px;
  right: 8%;
  top: 18%;
  width: 92px;
}

.decor-diamond {
  animation: decorDrift 16s ease-in-out infinite reverse;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32), rgba(14, 165, 233, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 42px;
  left: 5%;
  top: 34%;
  transform: rotate(45deg);
  width: 42px;
}

.decor-pill {
  animation: decorDrift 18s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.28), rgba(59, 130, 246, 0.16));
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  bottom: 14%;
  height: 18px;
  left: 14%;
  transform: rotate(-18deg);
  width: 132px;
}

.decor-grid {
  animation: decorDrift 20s ease-in-out infinite reverse;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 18px;
  height: 96px;
  opacity: 0.22;
  right: 17%;
  bottom: 12%;
  transform: rotate(8deg);
  width: 150px;
}

.decor-spark {
  animation: decorBlink 4s ease-in-out infinite;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 2px, transparent 2.5px),
    radial-gradient(circle at 26px 18px, rgba(125, 211, 252, 0.9) 0 2px, transparent 2.5px),
    radial-gradient(circle at 48px 5px, rgba(216, 180, 254, 0.85) 0 1.5px, transparent 2px);
  height: 34px;
  left: 49%;
  top: 14%;
  width: 58px;
}

.decor-left-ladder {
  background:
    linear-gradient(rgba(125, 211, 252, 0.34), rgba(125, 211, 252, 0.34)) 0 0 / 58px 1px no-repeat,
    linear-gradient(rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0.22)) 0 18px / 76px 1px no-repeat,
    linear-gradient(rgba(125, 211, 252, 0.28), rgba(125, 211, 252, 0.28)) 0 36px / 48px 1px no-repeat,
    linear-gradient(rgba(125, 211, 252, 0.2), rgba(125, 211, 252, 0.2)) 0 54px / 88px 1px no-repeat;
  height: 72px;
  left: 18px;
  top: 22%;
  width: 96px;
}

.decor-right-dots {
  background-image: radial-gradient(rgba(216, 180, 254, 0.48) 1.4px, transparent 1.7px);
  background-size: 11px 11px;
  border-radius: 18px;
  height: 132px;
  opacity: 0.32;
  right: 20px;
  top: 38%;
  width: 76px;
}

.decor-left-tag {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(124, 58, 237, 0.13));
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px 999px 999px 12px;
  bottom: 24%;
  height: 30px;
  left: 26px;
  transform: rotate(12deg);
  width: 92px;
}

.decor-right-rings {
  background:
    radial-gradient(circle at 18px 18px, transparent 0 12px, rgba(125, 211, 252, 0.3) 13px 14px, transparent 15px),
    radial-gradient(circle at 58px 50px, transparent 0 10px, rgba(196, 181, 253, 0.34) 11px 12px, transparent 13px),
    radial-gradient(circle at 22px 78px, transparent 0 7px, rgba(45, 212, 191, 0.28) 8px 9px, transparent 10px);
  bottom: 8%;
  height: 96px;
  right: 26px;
  width: 86px;
}

.app-navbar {
  position: relative;
  z-index: 1;
}

.app-shell {
  position: relative;
}

@keyframes decorDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 10px -12px; }
}

@keyframes decorBlink {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .decor-shape {
    animation: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.app-brand,
.login-brand,
.hero-copy h1,
.compact-hero h1,
.login-hero-copy h1,
.history-title,
.results-title,
.section-compact-header h2,
.compact-results-header h2,
.modal-title {
  font-family: var(--font-display);
  letter-spacing: 0;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.badge,
.dropdown-menu {
  font-family: var(--font-ui);
}

.app-brand,
.login-brand,
.login-hero-copy h1,
.hero-copy h1,
.compact-hero h1,
.history-title,
.results-title,
.section-compact-header h2,
.compact-results-header h2,
.login-card h2,
.product-title,
.result-query strong,
.compact-metric-card strong,
.product-price,
.modal-product-price,
.price-winner-card strong {
  font-family: var(--font-display);
}

.login-hero-copy h1,
.hero-copy h1,
.compact-hero h1,
.history-title,
.results-title,
.login-card h2 {
  font-weight: 700;
  letter-spacing: 0;
}

.app-nav-links .nav-link,
.connection-state,
.logout-button,
.compact-search-form .form-label,
.results-filter-panel .form-label,
.btn,
.badge {
  font-weight: 700;
}

.app-brand > span:last-child,
.history-title,
.history-header h1,
.compact-hero h1,
.results-title,
.login-card h2 {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #7c3aed 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-hero-copy h1 {
  text-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}

.product-title,
.result-query strong {
  color: #162033;
}

.product-price,
.modal-product-price,
.result-price {
  font-variant-numeric: tabular-nums;
}

.bi {
  line-height: 1;
  vertical-align: -0.12em;
}

.btn {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
}

.form-label .bi,
.modal-label .bi,
.modal-kicker .bi,
.section-compact-header .bi,
.history-summary-card .bi,
.history-metric .bi,
.history-meta .bi,
.product-meta .bi,
.supplier-name .bi,
.result-messages .bi,
.result-open .bi,
.floater .bi,
.trust-row .bi,
.login-secure-pill .bi {
  color: #2563eb;
}

.metric-icon .bi {
  font-size: 1rem;
}

.floater {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  gap: 6px;
}

.history-search-wrap {
  position: relative;
}

.history-search-wrap > .bi {
  color: #64748b;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.history-search-wrap .form-control {
  padding-left: 34px;
}

.history-summary-card > span,
.history-metric > span,
.history-meta span,
.product-meta span,
.supplier-name,
.result-messages,
.modal-message-header h3,
.modal-message-header span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.history-summary-card > span,
.history-metric > span {
  width: 100%;
}

.premium-login-button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.app-shell {
  margin-left: 0;
  margin-right: auto;
  max-width: 1320px;
  padding: 22px;
  width: 100%;
}

.search-dashboard-page .app-shell {
  padding-left: 22px;
  padding-right: 22px;
}

.app-navbar {
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.88);
  border: 1px solid rgba(209, 219, 233, 0.9);
  border-radius: 0 0 18px 18px;
  border-top: 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  margin: 0 auto;
  max-width: min(1320px, calc(100% - 24px));
  min-height: 62px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-navbar::after {
  background: linear-gradient(90deg, rgba(13, 110, 253, 0), rgba(13, 110, 253, 0.48), rgba(124, 58, 237, 0.48), rgba(13, 110, 253, 0));
  bottom: -1px;
  content: "";
  height: 1px;
  left: 28px;
  position: absolute;
  right: 28px;
}

.app-brand {
  align-items: center;
  color: #111827;
  display: inline-flex;
  gap: 11px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 3px 0;
}

.app-brand:hover {
  color: #172554;
}

.brand-icon {
  align-items: center;
  background: linear-gradient(135deg, #0d6efd, #7c3aed);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.brand-icon::before {
  background: rgba(59, 130, 246, 0.28);
  border-radius: 18px;
  content: "";
  inset: -6px;
  position: absolute;
  z-index: -1;
}

.brand-icon svg {
  position: relative;
  z-index: 1;
}

.app-nav-links {
  gap: 8px;
  margin-left: 28px;
}

.app-nav-links .nav-link {
  align-items: center;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 750;
  gap: 7px;
  padding: 7px 11px;
  transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 200ms ease;
}

.app-nav-links .nav-link svg {
  height: 16px;
  width: 16px;
}

.app-nav-links .nav-link:hover,
.app-nav-links .nav-link.active {
  background: linear-gradient(135deg, #eef4ff, #f4efff);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
  color: #174ea6;
  transform: translateY(-1px);
}

.connection-state {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
  padding: 6px 9px;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.connection-state:hover,
.connection-state.active {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.connection-state svg {
  height: 15px;
  width: 15px;
}

.connection-state.is-connected {
  background: #e7f8ef;
  color: #0f5132;
}

.connection-state.is-warning {
  background: #fff4d8;
  color: #664d03;
}

.connection-state.is-danger {
  background: #fde7ea;
  color: #842029;
}

.connection-state.is-disconnected {
  background: #eef1f5;
  color: #475467;
}

.connection-dot {
  background: currentColor;
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  position: relative;
  width: 8px;
}

.connection-state.is-connected .connection-dot::after {
  animation: statusPulse 1.7s infinite;
  border: 1px solid currentColor;
  border-radius: 999px;
  content: "";
  inset: -5px;
  opacity: 0.35;
  position: absolute;
}

.logout-button {
  align-items: center;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 750;
  gap: 7px;
  padding: 6px 10px;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.logout-button svg {
  height: 16px;
  width: 16px;
}

.logout-button:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.1);
  color: #be123c;
}

.navbar-toggler {
  border: 0;
  border-radius: 12px;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  filter: invert(22%) sepia(16%) saturate(1213%) hue-rotate(179deg) brightness(95%) contrast(91%);
}

@keyframes statusPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.search-dashboard-hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 0 14px;
}

.hero-copy {
  margin: 0 auto 18px;
  max-width: 760px;
  text-align: center;
}

.hero-copy h1 {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.hero-copy p {
  color: #667085;
  font-size: 1.05rem;
  margin: 0;
}

.dashboard-search-card {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  max-width: 1120px;
  padding: 18px;
}

.dashboard-search-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(280px, 1fr) 150px 150px 148px;
}

.dashboard-search-form .form-label {
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-field-main .form-control {
  border-radius: 14px;
  font-size: 1.06rem;
  min-height: 54px;
}

.date-field .form-control {
  border-radius: 12px;
  min-height: 44px;
}

.search-submit-btn {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 54px;
  width: 100%;
}

.recent-keywords {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.recent-label {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 700;
}

.keyword-chip {
  background: #f8fafc;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 11px;
}

.keyword-chip:hover {
  background: #eef4ff;
  border-color: #bcd2ff;
  color: #0d6efd;
}

.dashboard-summary-grid,
.search-live-section {
  margin: 16px auto 0;
  max-width: 1120px;
}

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

.summary-card,
.recent-results-panel,
.progress-panel {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.summary-card {
  padding: 15px 16px;
}

.summary-label {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-value {
  color: #111827;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
  margin-top: 8px;
}

.search-live-section {
  display: grid;
  gap: 14px;
}

.recent-results-panel {
  padding: 16px;
}

.recent-result-list {
  display: grid;
  gap: 8px;
}

.recent-result-item {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 11px 12px;
  text-decoration: none;
}

.recent-result-item:hover {
  background: #f5f8ff;
  border-color: #d9e6ff;
}

.recent-result-query {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-result-meta {
  color: #667085;
  font-size: 0.82rem;
}

.recent-result-price {
  color: #0f5132;
  font-size: 0.88rem;
  font-weight: 800;
}

.history-page {
  margin: 0 auto;
  max-width: 100%;
}

.history-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.history-header h1 {
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 850;
  line-height: 1.1;
  margin: 0 0 6px;
}

.history-header p {
  color: #667085;
  margin: 0;
}

.history-new-search {
  border-radius: 12px;
  font-weight: 750;
  padding: 10px 16px;
}

.compact-new-search-btn {
  background: linear-gradient(135deg, #0ea5e9, #2563eb 52%, #7c3aed);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 31px;
  padding: 6px 11px;
}

.compact-new-search-btn:hover {
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.history-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  justify-content: start;
  margin-bottom: 14px;
}

.history-summary-card {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 16px;
}

.history-summary-card span {
  color: #667085;
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
}

.history-summary-card strong {
  color: #111827;
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
  margin-top: 10px;
}

.history-card-container {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  padding: 12px;
}

.history-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) 180px 190px;
  margin-bottom: 14px;
}

.history-toolbar .form-control,
.history-toolbar .form-select {
  border-radius: 12px;
  min-height: 42px;
}

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

.history-item {
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.history-item:hover {
  border-color: #d9e6ff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.history-item:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), 0 14px 32px rgba(15, 23, 42, 0.1);
  outline: none;
}

.history-main {
  min-width: 0;
}

.history-card-top {
  align-items: flex-start;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.history-main h2 {
  color: #111827;
  display: -webkit-box;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-icon-actions {
  display: inline-flex;
  gap: 4px;
}

.history-icon-btn {
  align-items: center;
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  height: 25px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 25px;
}

button.history-icon-btn {
  font-family: inherit;
}

.history-icon-btn:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.history-icon-btn.is-danger {
  background: rgba(255, 241, 242, 0.95);
  border-color: rgba(254, 202, 202, 0.95);
  color: #e11d48;
}

.history-meta {
  color: #667085;
  display: grid;
  font-size: 0.6rem;
  gap: 3px;
}

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

.history-metric {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9px;
  padding: 6px;
}

.history-metric span {
  color: #7a8699;
  display: block;
  font-size: 0.53rem;
  font-weight: 750;
  line-height: 1.1;
}

.history-metric strong {
  color: #111827;
  display: block;
  font-size: 0.68rem;
  font-weight: 850;
  margin-top: 3px;
}

.history-price {
  color: #0f5132 !important;
}

.history-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
}

.history-action-buttons {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr;
  justify-content: stretch;
}

.history-action-buttons .btn {
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  min-height: 28px;
  padding: 4px 6px;
}

.history-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 800;
  justify-content: center;
  padding: 4px 7px;
  white-space: nowrap;
}

.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-processing,
.status-pending,
.status-paused_flood_wait {
  background: #cfe2ff;
  color: #084298;
}

.status-failed {
  background: #f8d7da;
  color: #842029;
}

.status-partially_completed {
  background: #fff3cd;
  color: #664d03;
}

.history-empty {
  color: #667085;
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
}

.compact-search-dashboard {
  background:
    radial-gradient(circle at 10% 5%, rgba(14, 165, 233, 0.18), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(168, 85, 247, 0.18), transparent 25%),
    radial-gradient(circle at 55% 100%, rgba(20, 184, 166, 0.12), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #f4f7ff 42%, #f7fbfb 100%);
  border: 1px solid rgba(218, 226, 238, 0.85);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.page-content-shell {
  margin-top: 0;
}

.compact-search-dashboard::before {
  background-image: radial-gradient(rgba(37, 99, 235, 0.22) 1px, transparent 1.5px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.mesh-shape {
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
}

.shape-a {
  animation: compactFloat 8s ease-in-out infinite;
  background: #38bdf8;
  height: 74px;
  right: 18%;
  top: 20px;
  width: 74px;
}

.shape-b {
  animation: compactFloat 10s ease-in-out infinite reverse;
  background: #d946ef;
  bottom: 20px;
  height: 70px;
  left: 8%;
  width: 70px;
}

.compact-hero,
.compact-search-panel,
.compact-metrics-grid,
.compact-live-area {
  position: relative;
  z-index: 1;
}

.compact-hero {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 96px;
  padding: 4px 4px 12px;
}

.compact-hero-copy {
  min-width: 0;
}

.hero-badge {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 6px;
  padding: 4px 8px;
}

.compact-hero h1 {
  color: #101828;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 5px;
}

.compact-hero p {
  color: #586579;
  font-size: 0.9rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.floater {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(216, 226, 240, 0.88);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 7px 10px;
  text-align: center;
}

.floater.price {
  color: #0f5132;
}

.compact-search-panel,
.compact-progress-panel,
.compact-results-panel,
.compact-metric-card {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 228, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.compact-search-panel {
  border-radius: 18px;
  padding: 12px;
}

.compact-search-form {
  align-items: end;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.34), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(168, 85, 247, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(224, 242, 254, 0.98), rgba(238, 242, 255, 0.96) 48%, rgba(240, 253, 250, 0.96)) padding-box,
    linear-gradient(135deg, rgba(14, 165, 233, 0.98), rgba(124, 58, 237, 0.9), rgba(20, 184, 166, 0.72)) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(460px, 1fr) 190px 190px 140px;
  padding: 9px;
}

.compact-search-form .form-label {
  color: #344054;
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.compact-query-field {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 7px;
  position: relative;
}

.compact-query-field::after {
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 58%),
    radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 62%);
  content: "";
  filter: blur(14px);
  inset: -8px 16px auto auto;
  height: 48px;
  pointer-events: none;
  position: absolute;
  width: 160px;
  z-index: -1;
}

.query-label-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.query-label-row .standout-query-label {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.search-mode-options {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
}

.search-mode-pill {
  cursor: pointer;
  margin: 0;
}

.search-mode-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-mode-pill span {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(147, 197, 253, 0.52);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 850;
  gap: 4px;
  line-height: 1;
  min-height: 24px;
  padding: 5px 8px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.search-mode-pill span .bi {
  color: #2563eb;
  font-size: 0.72rem;
}

.search-mode-pill input:checked + span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(124, 58, 237, 0.92));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  color: #fff;
}

.search-mode-pill input:checked + span .bi {
  color: #fff;
}

.search-mode-pill:focus-within span,
.search-mode-pill:hover span {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}
.standout-query-label {
  align-items: center;
  display: flex;
  gap: 7px;
}

.query-label-icon {
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  color: #fff;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.query-label-icon svg {
  height: 14px;
  width: 14px;
}

.query-label-hint {
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  color: #0369a1;
  font-size: 0.62rem;
  font-weight: 800;
  margin-left: 0;
  padding: 3px 7px;
  white-space: nowrap;
}

.query-input-shell {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.36);
  border-radius: 13px;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  transition: box-shadow 190ms ease, border-color 190ms ease;
}

.query-input-shell:focus-within,
.compact-date-field .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.compact-query-field:focus-within {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.query-input-shell svg {
  background: linear-gradient(135deg, #2563eb, #a855f7);
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  height: 26px;
  padding: 6px;
  width: 26px;
}

.query-input-shell .form-control {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 700;
  min-height: 42px;
  padding: 0;
}

.query-clear-btn {
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  flex: 0 0 auto;
  height: 26px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  width: 26px;
}

.query-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.04);
}

.query-clear-btn .bi {
  font-size: 0.72rem;
}

.query-input-shell .form-control::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.compact-date-field .form-control {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  min-height: 44px;
}

.compact-date-field {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 15px;
  padding: 7px;
}

.compact-search-btn {
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 48%, #7c3aed);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  transition: box-shadow 190ms ease, transform 190ms ease;
}

.compact-search-action {
  align-self: end;
}

.compact-search-btn:hover {
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}

.compact-search-btn svg {
  height: 16px;
  width: 16px;
}

.compact-recent-chips {
  align-items: center;
  display: flex;
  gap: 5px;
  margin-top: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.compact-recent-chips > span:first-child {
  color: #667085;
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 800;
}

.compact-chip {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  max-width: 150px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.compact-metrics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.compact-metric-card {
  align-items: center;
  border-radius: 16px;
  display: flex;
  gap: 11px;
  min-height: 78px;
  padding: 12px;
}

.metric-icon {
  align-items: center;
  background: linear-gradient(135deg, #e0f2fe, #f3e8ff);
  border-radius: 14px;
  color: #1d4ed8;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.compact-metric-card span:not(.metric-icon) {
  color: #667085;
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
}

.compact-metric-card strong {
  color: #111827;
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  margin-top: 4px;
}

.compact-live-area {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.search-alert-strip {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
}

.search-alert-icon {
  align-items: center;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.search-alert-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.search-alert-copy strong {
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 0.76rem;
  line-height: 1.1;
}

.search-alert-copy span {
  color: #475569;
  font-size: 0.72rem;
}

.search-alert-danger {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.9));
  border-color: rgba(254, 202, 202, 0.9);
}

.search-alert-danger .search-alert-icon {
  background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.search-alert-warning {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.9));
  border-color: rgba(253, 230, 138, 0.9);
}

.search-alert-warning .search-alert-icon {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.search-alert-info,
.search-alert-success {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.9));
  border-color: rgba(125, 211, 252, 0.55);
}

.search-alert-info .search-alert-icon,
.search-alert-success .search-alert-icon {
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
}

.compact-progress-panel,
.compact-results-panel {
  border-radius: 16px;
  padding: 10px;
}

.compact-progress-panel {
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.88));
  border: 1px solid rgba(125, 211, 252, 0.34);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
  overflow: hidden;
  position: relative;
}

.compact-progress-panel::after {
  background-image: radial-gradient(rgba(37, 99, 235, 0.18) 1px, transparent 1.5px);
  background-size: 14px 14px;
  content: "";
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  position: absolute;
}

.progress-panel-top {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  position: relative;
  z-index: 1;
}

.progress-orb {
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 48%, #7c3aed);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.progress-orb::after {
  animation: progressPulse 1.8s ease-out infinite;
  border: 1px solid rgba(37, 99, 235, 0.34);
  border-radius: 20px;
  content: "";
  inset: -5px;
  position: absolute;
}

.progress-copy {
  min-width: 0;
}

.progress-kicker {
  color: #2563eb;
  font-size: 0.64rem;
  font-weight: 850;
  margin-bottom: 2px;
}

#progressMessage {
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}

#progressCounts {
  color: #64748b;
  font-size: 0.68rem;
  margin-top: 2px;
}

.premium-cancel-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  color: #475569;
  font-size: 0.68rem;
  min-height: 31px;
  padding: 5px 10px;
}

.premium-progress-track {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
  height: 12px;
  overflow: hidden;
  padding: 2px;
  position: relative;
  z-index: 1;
}

.premium-progress-track .progress-bar {
  animation: progressSheen 1.4s linear infinite;
  background:
    linear-gradient(90deg, #22d3ee, #2563eb 45%, #7c3aed 75%, #ec4899),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%);
  background-size: 100% 100%, 18px 18px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.32);
}

@keyframes progressPulse {
  0% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes progressSheen {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 36px 0; }
}

.compact-results-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.compact-results-header h2 {
  color: #111827;
  font-size: 0.96rem;
  font-weight: 900;
  margin: 0 0 2px;
}

.compact-results-header p {
  color: #667085;
  font-size: 0.68rem;
  margin: 0;
}

.view-history-btn {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(124, 58, 237, 0.9)) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.13);
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0;
  min-height: 30px;
  padding: 5px 9px;
  transition: box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.view-history-btn .bi:first-child {
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.view-history-btn .bi:last-child {
  color: #7c3aed;
  font-size: 0.68rem;
}

.view-history-btn:hover {
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
  color: #172554;
  transform: translateY(-1px);
}

.compact-result-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-result-row {
  align-content: start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  color: inherit;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  overflow: hidden;
  padding: 8px 10px 7px;
  position: relative;
  text-decoration: none;
  transition: box-shadow 190ms ease, border-color 190ms ease, transform 190ms ease;
}

.compact-result-row::after {
  background: linear-gradient(90deg, #0ea5e9, #7c3aed);
  bottom: 0;
  content: "";
  height: 2px;
  left: 10px;
  opacity: 0.45;
  position: absolute;
  right: 10px;
}

.compact-result-row:hover {
  background: #fff;
  border-color: #dbeafe;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.11);
  transform: translateY(-1px);
}

.result-query {
  min-width: 0;
  padding-right: 58px;
}

.result-query strong {
  color: #111827;
  display: -webkit-box;
  font-size: 0.72rem;
  line-height: 1.12;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.result-query span,
.result-messages {
  color: #667085;
  font-size: 0.6rem;
}

.result-messages {
  grid-column: 1 / 2;
}

.result-status {
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 900;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  justify-self: end;
  max-width: 66px;
  overflow: hidden;
  padding: 3px 7px;
  position: absolute;
  right: 10px;
  top: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-price {
  color: #0f5132;
  font-size: 0.68rem;
  font-weight: 950;
  grid-column: 1 / 2;
  text-align: left;
}

.result-price span {
  background: #eef1f5;
  border-radius: 999px;
  color: #667085;
  font-size: 0.58rem;
  padding: 3px 6px;
}

.result-open {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  place-self: end;
  text-align: center;
}

@keyframes compactFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -8px, 0); }
}

.login-experience {
  background:
    radial-gradient(circle at 10% 12%, rgba(14, 165, 233, 0.32), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.24), transparent 26%),
    linear-gradient(135deg, #07112f 0%, #172554 34%, #5b21b6 68%, #0f172a 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.login-experience::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.75) 55%, transparent 100%);
  opacity: 0.35;
  position: absolute;
}

.login-hero-panel,
.login-form-panel {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.login-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3.8vw, 46px);
}

.login-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1.5px);
  background-size: 18px 18px;
  height: 180px;
  opacity: 0.22;
  position: absolute;
  right: 8%;
  top: 9%;
  width: 260px;
}

.login-brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.08rem;
  font-weight: 850;
  gap: 12px;
  margin-bottom: 18px;
}

.login-brand-icon {
  align-items: center;
  background: linear-gradient(135deg, #06b6d4, #3b82f6 48%, #a855f7);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.36);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.login-brand-icon svg {
  height: 19px;
  width: 19px;
}

.login-hero-copy {
  max-width: 760px;
}

.login-hero-copy h1 {
  font-size: clamp(2rem, 4.1vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 14px;
}

.login-hero-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.92rem, 1.05vw, 1.04rem);
  line-height: 1.45;
  margin: 0 0 10px;
  max-width: 650px;
}

.login-hero-copy strong {
  color: #cffafe;
  display: block;
  font-size: 0.96rem;
}

.login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.login-benefits div {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  gap: 9px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.login-benefits span {
  color: #67e8f9;
  font-size: 0.78rem;
}

.commerce-illustration {
  height: 220px;
  max-width: 720px;
  position: relative;
}

.telegram-message-card,
.floating-product-card,
.price-winner-card {
  animation: floatPanel 7s ease-in-out infinite;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.24);
  position: absolute;
}

.telegram-message-card {
  align-items: center;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 12px;
  top: 24px;
  width: min(560px, 92%);
}

.telegram-message-card .avatar {
  align-items: center;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  border-radius: 16px;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.telegram-message-card p,
.floating-product-card span {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.price-chip {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  font-weight: 900;
  padding: 8px 11px;
}

.floating-product-card {
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 12px;
  width: 158px;
}

.card-one {
  animation-delay: -2s;
  bottom: 24px;
  left: 64px;
}

.card-two {
  animation-delay: -4s;
  bottom: 48px;
  right: 8%;
}

.product-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, #fb7185, #f97316);
  border-radius: 16px;
  height: 58px;
}

.supplier-stack {
  display: flex;
  margin-bottom: 8px;
}

.supplier-stack span {
  align-items: center;
  background: linear-gradient(135deg, #f0abfc, #38bdf8);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-left: -8px;
  width: 38px;
}

.supplier-stack span:first-child {
  margin-left: 0;
}

.price-winner-card {
  animation-delay: -1s;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.92), rgba(16, 185, 129, 0.72));
  border-radius: 18px;
  padding: 12px 14px;
  right: 15%;
  top: 8px;
}

.price-winner-card span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.8;
}

.price-winner-card strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 950;
}

.login-form-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: clamp(18px, 3vw, 40px);
}

.login-card {
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.28);
  color: #111827;
  max-width: 420px;
  padding: clamp(20px, 3vw, 30px);
  width: 100%;
}

.login-card-header {
  margin-bottom: 16px;
}

.login-secure-pill {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  color: #0e7490;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 10px;
  padding: 5px 9px;
}

.login-card h2 {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.login-card p {
  color: #667085;
  font-size: 0.9rem;
  margin: 0;
}

.premium-login-form {
  display: grid;
  gap: 11px;
}

.google-login-form {
  margin: 0;
}

.google-login-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e1ee;
  border-radius: 13px;
  color: #1f2937;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 850;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.google-login-button:hover:not(:disabled) {
  border-color: #cbd5e1;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.google-login-button:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.28);
  outline-offset: 3px;
}

.google-login-button.is-disabled,
.google-login-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.google-mark {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.google-mark svg {
  display: block;
  height: 20px;
  width: 20px;
}

.login-divider {
  align-items: center;
  color: #94a3b8;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 12px;
  margin: 14px 0;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  background: #e2e8f0;
  content: "";
  flex: 1;
  height: 1px;
}

.login-field .form-label {
  color: #344054;
  font-size: 0.84rem;
  font-weight: 800;
}

.login-input-wrap {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d8e1ee;
  border-radius: 13px;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-input-wrap:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
  transform: translateY(-1px);
}

.login-input-wrap > svg {
  color: #64748b;
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.login-input-wrap input {
  background: transparent;
  border: 0;
  color: #111827;
  flex: 1;
  font-size: 1rem;
  min-width: 0;
  outline: 0;
}

.password-toggle {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.password-toggle:focus-visible,
.premium-login-button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.45);
  outline-offset: 3px;
}

.password-toggle svg {
  height: 17px;
  width: 17px;
}

.premium-login-button {
  background: linear-gradient(135deg, #0ea5e9, #6366f1 48%, #d946ef);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.32);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  min-height: 48px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.premium-login-button:hover {
  box-shadow: 0 24px 45px rgba(99, 102, 241, 0.42);
  transform: translateY(-2px);
}

.login-error,
.premium-login-form .errorlist {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  color: #be123c;
  font-size: 0.88rem;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
}

.secure-access-message {
  color: #475467 !important;
  font-size: 0.9rem;
  margin: 12px 0 10px !important;
  text-align: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.trust-row span {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 8px;
}

@keyframes floatPanel {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.panel,
.search-band {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 20px;
}

.auth-card,
.result-card {
  border-radius: 8px;
  border-color: #d8dee6;
}

.result-section > .h5 {
  font-weight: 700;
}

.results-page-header {
  padding: 0 2px;
}

.results-title {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
}

.results-subtitle {
  font-size: 0.76rem;
}

.results-filter-panel {
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
  padding: 10px 12px 9px;
}

.results-filter-panel .form-label {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.results-filter-panel .form-control,
.results-filter-panel .form-select {
  border-radius: 9px;
  font-size: 0.78rem;
  min-height: 34px;
  padding-bottom: 5px;
  padding-top: 5px;
}

.results-checks {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.results-checks label {
  align-items: center;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  padding: 4px 8px;
}

.unified-results-section {
  margin-top: 10px;
}

.section-compact-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.section-compact-header h2 {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.1;
  margin: 0;
}

.section-compact-header p {
  color: #64748b;
  font-size: 0.72rem;
  margin: 2px 0 0;
}

.section-compact-header > span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 999px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.product-card:hover,
.product-card:focus {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.product-image-wrap,
.modal-image-wrap {
  align-items: center;
  background: #eef1f5;
  display: flex;
  height: 118px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-image,
.modal-product-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.modal-image-wrap {
  aspect-ratio: 1 / 1;
  height: auto;
}

.product-placeholder {
  object-fit: cover;
}

.image-note {
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  bottom: 6px;
  color: #fff;
  font-size: 0.62rem;
  left: 6px;
  padding: 3px 6px;
  position: absolute;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
}

.product-title {
  color: #111827;
  display: -webkit-box;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
  min-height: 1.9em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-description,
.modal-description {
  color: #596579;
  line-height: 1.4;
}

.product-description {
  display: -webkit-box;
  font-size: 0.68rem;
  line-height: 1.28;
  margin: 0;
  min-height: 1.75em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.supplier-name {
  color: #344054;
  font-size: 0.68rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  color: #7a8699;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.63rem;
  gap: 3px 7px;
}

.product-card-footer {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-top: auto;
}

.product-price,
.modal-product-price {
  color: #0f5132;
  font-weight: 800;
}

.product-price {
  color: #0f766e;
  font-size: 0.9rem;
  letter-spacing: 0;
  line-height: 1.05;
}

.modal-product-price {
  font-size: 1.55rem;
}

.price-status {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 800;
}

.image-status-badge {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  left: 6px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 4px 6px;
  position: absolute;
  text-overflow: ellipsis;
  top: 6px;
  white-space: nowrap;
}

.view-details-btn {
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 6px 7px;
  white-space: nowrap;
}

.empty-results-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(148, 163, 184, 0.58);
  border-radius: 12px;
  color: #64748b;
  font-size: 0.82rem;
  padding: 18px;
  text-align: center;
}

.product-modal {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.34);
  max-height: calc(100vh - 96px);
  overflow: hidden;
}

.product-details-modal {
  z-index: 1200;
}

.modal-backdrop {
  z-index: 1190;
}

.product-details-modal .modal-dialog {
  align-items: flex-start;
  margin-top: 34px;
  max-width: min(1040px, calc(100vw - 34px));
}

.product-modal-header {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96)),
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.14), transparent 28%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  gap: 14px;
  padding: 14px 54px 12px 18px;
  position: relative;
}

.product-modal-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.modal-kicker,
.modal-label {
  color: #64748b;
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 3px;
}

.product-modal .modal-title {
  color: #0f172a;
  display: -webkit-box;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.26;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.modal-supplier-pill {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 7px;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.modal-source-pill {
  align-items: center;
  background: rgba(239, 246, 255, 0.92);
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 999px;
  color: #1e3a8a;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  gap: 5px;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-modal .btn-close {
  background-color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  margin: 0;
  opacity: 0.66;
  padding: 8px;
  position: absolute;
  right: 16px;
  top: 14px;
  transition: background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
  z-index: 2;
}

.product-modal .btn-close:hover,
.product-modal .btn-close:focus {
  background-color: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  opacity: 0.95;
  transform: translateY(-1px);
}

.product-modal .modal-body {
  max-height: calc(100vh - 205px);
  overflow: auto;
  padding: 14px 18px;
}

.product-modal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.product-modal-media {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  padding: 8px;
}

.product-modal-media .modal-image-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  height: auto;
}

.modal-offer-strip {
  align-items: center;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.96));
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.modal-product-price {
  color: #047857;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-status-badge {
  border-radius: 999px;
  font-size: 0.66rem;
  padding: 6px 8px;
  white-space: nowrap;
}

.modal-stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.modal-stat {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  min-width: 0;
  padding: 8px 9px;
}

.modal-stat span {
  color: #64748b;
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.modal-stat strong {
  color: #1e293b;
  display: block;
  font-size: 0.74rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-summary-card,
.modal-contact-card,
.modal-message-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  margin-top: 10px;
  padding: 10px;
}

.modal-contact-card {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.96));
  border-color: rgba(125, 211, 252, 0.42);
}

.modal-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal-contact-pill {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  color: #0f172a;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
  padding: 7px 10px;
  text-decoration: none;
}

.modal-contact-pill:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.modal-description {
  color: #475569;
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.modal-message-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.modal-message-header h3 {
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.modal-message-header span {
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.modal-message {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.72);
  border-radius: 11px;
  color: #0f172a;
  font-size: 0.78rem;
  line-height: 1.46;
  max-height: 255px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-modal-footer {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  gap: 8px;
  position: relative;
  z-index: 2;
  padding: 10px 18px;
}

.product-modal-footer .btn {
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 12px;
}

.search-band {
  border-left: 4px solid #0d6efd;
}

.telegram-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #fbfcfe;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  padding: 14px;
  line-height: 1.45;
}

.price-highlight {
  color: #146c43;
  font-weight: 700;
  font-size: 1.15rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #667085;
  font-size: 0.875rem;
}

.navbar .badge {
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  .compact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .compact-hero p {
    white-space: normal;
  }

  .hero-floaters {
    display: none;
  }

  .compact-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .compact-query-field,
  .compact-search-action {
    grid-column: 1 / -1;
  }

  .compact-result-row {
    grid-template-columns: 1fr auto;
  }

  .result-price,
  .result-open {
    text-align: left;
  }

  .result-open {
    display: block;
  }

  .compact-result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-experience {
    grid-template-columns: 1fr;
  }

  .login-hero-panel {
    padding: 22px 22px 8px;
  }

  .login-hero-copy h1 {
    font-size: clamp(1.85rem, 7vw, 2.8rem);
  }

  .login-hero-copy p {
    max-width: 720px;
  }

  .commerce-illustration {
    height: 160px;
    margin-top: 8px;
  }

  .login-form-panel {
    align-items: flex-start;
    padding: 8px 22px 22px;
  }

  .login-card {
    max-width: none;
  }

  .app-navbar {
    max-width: calc(100% - 14px);
    min-height: 68px;
  }

  .app-nav-links {
    gap: 8px;
    margin: 14px 0 10px;
  }

  .app-nav-links .nav-link {
    justify-content: flex-start;
    padding: 11px 13px;
    width: 100%;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e7edf5;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    margin-top: 12px;
    padding: 12px;
  }

  .connection-state {
    margin-bottom: 10px;
  }

  .logout-button {
    justify-content: center;
    width: 100%;
  }

  .dashboard-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-field-main,
  .search-action {
    grid-column: 1 / -1;
  }

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

  .product-image-wrap {
    height: 112px;
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-media .modal-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .modal-message {
    max-height: 230px;
  }

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

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

  .history-toolbar,
  .history-item {
    grid-template-columns: 1fr;
  }

  .history-actions {
    align-items: stretch;
  }

  .history-action-buttons {
    justify-content: stretch;
  }
}

@media (max-width: 575.98px) {
  .decor-left-ladder,
  .decor-right-dots,
  .decor-left-tag,
  .decor-right-rings {
    display: none;
  }

  .compact-search-dashboard {
    border-radius: 16px;
    padding: 10px;
  }

  .compact-hero {
    padding-bottom: 9px;
  }

  .compact-hero h1 {
    font-size: 1.55rem;
  }

  .compact-search-form,
  .compact-metrics-grid,
  .compact-result-row {
    grid-template-columns: 1fr;
  }

  .compact-query-field,
  .compact-search-action {
    grid-column: auto;
  }

  .compact-search-btn {
    min-height: 44px;
  }

  .query-label-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.query-label-row .standout-query-label {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.search-mode-options {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
}

.search-mode-pill {
  cursor: pointer;
  margin: 0;
}

.search-mode-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-mode-pill span {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(147, 197, 253, 0.52);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 850;
  gap: 4px;
  line-height: 1;
  min-height: 24px;
  padding: 5px 8px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.search-mode-pill span .bi {
  color: #2563eb;
  font-size: 0.72rem;
}

.search-mode-pill input:checked + span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(124, 58, 237, 0.92));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  color: #fff;
}

.search-mode-pill input:checked + span .bi {
  color: #fff;
}

.search-mode-pill:focus-within span,
.search-mode-pill:hover span {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}
.standout-query-label {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .query-label-hint {
    margin-left: 0;
  }

  .compact-metric-card {
    min-height: 68px;
  }

  .compact-results-header {
    align-items: flex-start;
    gap: 8px;
  }

  .compact-result-row {
    gap: 6px;
    min-height: auto;
  }

  .progress-panel-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .premium-cancel-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .login-hero-panel {
    padding: 18px 14px 6px;
  }

  .login-brand {
    margin-bottom: 12px;
  }

  .login-hero-copy p,
  .login-hero-copy strong {
    font-size: 0.94rem;
  }

  .login-benefits {
    gap: 7px;
    margin: 12px 0;
  }

  .login-benefits div {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .commerce-illustration,
  .login-pattern {
    display: none;
  }

  .login-form-panel {
    padding: 6px 14px 18px;
  }

  .login-card {
    border-radius: 18px;
    padding: 18px;
  }

  .login-card h2 {
    font-size: 1.55rem;
  }

  .app-shell {
    padding: 16px;
  }

  .hero-copy {
    text-align: left;
  }

  .dashboard-search-card {
    border-radius: 16px;
    padding: 14px;
  }

  .dashboard-search-form,
  .dashboard-summary-grid,
  .recent-result-item,
  .compact-result-list {
    grid-template-columns: 1fr;
  }

  .search-field-main,
  .search-action {
    grid-column: auto;
  }

  .recent-result-meta,
  .recent-result-price {
    justify-self: start;
  }

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

  .product-image-wrap {
    height: 108px;
  }

  .results-filter-panel {
    padding: 9px;
  }

  .section-compact-header {
    align-items: flex-start;
    gap: 6px;
  }

  .view-details-btn {
    padding-left: 6px;
    padding-right: 6px;
  }

  .product-details-modal .modal-dialog {
    max-width: calc(100vw - 18px);
  }

  .product-modal-header,
  .product-modal .modal-body,
  .product-modal-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .modal-stat-grid {
    grid-template-columns: 1fr;
  }

  .modal-message-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-new-search {
    width: 100%;
  }

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

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

  .history-card-container {
    border-radius: 16px;
    padding: 12px;
  }

  .history-main h2 {
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    height: 132px;
  }

  .history-list {
    grid-template-columns: 1fr;
  }
}
/* Keep Product Query and search mode options in one compact row. */
.compact-query-field .query-label-row {
  align-items: center !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  justify-content: flex-start !important;
  margin-bottom: 4px !important;
  overflow: hidden;
}

.compact-query-field .standout-query-label {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  font-size: 0.72rem !important;
  gap: 6px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  width: auto !important;
}

.compact-query-field .query-label-hint {
  display: none !important;
}

.compact-query-field .search-mode-options {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  min-width: 0;
}

.compact-query-field .search-mode-pill span {
  font-size: 0.72rem !important;
  min-height: 24px !important;
  padding: 4px 8px !important;
}
/* Restore centered page shell alignment. */
.app-shell {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(1320px, calc(100% - 24px)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.search-dashboard-page .app-shell {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.search-dashboard-page .compact-search-dashboard {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}
/* Small breathing space above Product Query mode row. */
.compact-query-field .query-label-row {
  padding-top: 3px !important;
}
/* Make search mode options read as clickable segmented controls. */
.compact-query-field .search-mode-options {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(147, 197, 253, 0.52) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 18px rgba(37, 99, 235, 0.08) !important;
  gap: 3px !important;
  padding: 3px !important;
}

.compact-query-field .search-mode-pill {
  cursor: pointer !important;
  display: inline-flex !important;
  margin: 0 !important;
  user-select: none !important;
}

.compact-query-field .search-mode-pill input {
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
}

.compact-query-field .search-mode-pill span {
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #475569 !important;
  cursor: pointer !important;
  font-size: 0.72rem !important;
  min-height: 25px !important;
  padding: 5px 10px !important;
}

.compact-query-field .search-mode-pill span::after {
  color: #94a3b8;
  content: "Click";
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-left: 2px;
  text-transform: uppercase;
}

.compact-query-field .search-mode-pill:hover span,
.compact-query-field .search-mode-pill:focus-within span {
  background: rgba(219, 234, 254, 0.92) !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
}

.compact-query-field .search-mode-pill input:checked + span {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
  color: #fff !important;
}

.compact-query-field .search-mode-pill input:checked + span::after {
  color: rgba(255, 255, 255, 0.78);
  content: "On";
}
/* Clean single-select search mode segmented control. */
.compact-query-field .search-mode-pill span::after {
  content: none !important;
}

.compact-query-field .search-mode-pill span::before {
  background: rgba(148, 163, 184, 0.34);
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 2px;
  width: 8px;
}

.compact-query-field .search-mode-pill input:checked + span::before {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.compact-query-field .search-mode-pill input:checked + span {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}
