:root {
  color-scheme: dark;
  --bg: #070d16;
  --bg-2: #0b1420;
  --sidebar: #07111b;
  --panel: #111c2a;
  --panel-2: #0e1825;
  --panel-3: #162334;
  --text: #f7f9fd;
  --muted: #a9b4c3;
  --soft: #7f8da3;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --green: #24c76f;
  --green-soft: rgba(36, 199, 111, 0.16);
  --blue: #2f80ed;
  --blue-soft: rgba(47, 128, 237, 0.18);
  --orange: #ff8a00;
  --orange-soft: rgba(255, 138, 0, 0.16);
  --purple: #7c5cff;
  --purple-soft: rgba(124, 92, 255, 0.18);
  --danger: #ff5b5b;
  --danger-soft: rgba(255, 91, 91, 0.14);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  --sidebar-width: 242px;
  --topbar-height: 92px;
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(47, 128, 237, 0.55) rgba(148, 163, 184, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, #07111d 0%, #091423 42%, #050a12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body,
button,
input,
select {
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
}

.dashboard-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 15, 25, 0.88);
  padding: 18px 28px 18px 30px;
  backdrop-filter: blur(22px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 520px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green);
}

.brand-mark svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.9;
}

.brand-mark path:first-child {
  fill: rgba(36, 199, 111, 0.12);
}

.topbar-brand strong {
  display: block;
  color: var(--text);
  font-size: 1.42rem;
  line-height: 1.1;
}

.topbar-brand small,
.topbar-subtitle,
.user-chip small {
  color: var(--muted);
}

.topbar-brand small {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
}

.topbar-subtitle {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-action,
.date-pill,
.user-chip,
.primary-button,
.secondary-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 28, 42, 0.72);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.icon-action:hover,
.date-pill:hover,
.secondary-button:hover {
  border-color: var(--line-strong);
  background: rgba(22, 35, 52, 0.95);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 199, 111, 0.18);
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.date-pill svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-color: transparent;
  background: transparent;
  text-decoration: none;
}

.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(145deg, #d8d5ff, #766dff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

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

.avatar.has-photo {
  padding: 0;
  background: #fff;
}

.user-chip strong,
.user-chip small {
  display: block;
  white-space: nowrap;
}

.sidebar {
  position: fixed;
  inset: var(--topbar-height) auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  border-right: 1px solid var(--line);
  background: rgba(7, 17, 27, 0.96);
}

.sidebar-nav {
  display: grid;
  gap: 7px;
  padding: 24px 18px 10px;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  padding: 0 14px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-nav a:hover {
  border-color: var(--line);
  background: rgba(22, 35, 52, 0.72);
}

.sidebar-nav a.active {
  border-color: rgba(36, 199, 111, 0.18);
  background: linear-gradient(90deg, rgba(36, 199, 111, 0.16), rgba(47, 128, 237, 0.07));
  color: #fff;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #9aa8bb;
}

.sidebar-nav a.active .nav-icon {
  color: var(--green);
}

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

.automation-status-card {
  display: grid;
  gap: 16px;
  margin: 12px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 28, 42, 0.92), rgba(10, 20, 31, 0.92));
  padding: 18px;
  box-shadow: var(--shadow);
}

.automation-status-card h2,
.panel-card h2 {
  color: var(--text);
  font-size: 1rem;
}

.automation-status-card h2 {
  font-size: 0.92rem;
}

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

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(36, 199, 111, 0.12);
}

.automation-status-card dl {
  display: grid;
  gap: 16px;
}

.automation-status-card dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.automation-status-card dd {
  color: var(--text);
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: auto;
  padding: 22px 34px;
}

.sidebar-footer strong {
  display: block;
  color: #fff;
  font-size: 1.9rem;
  letter-spacing: 0;
}

.dashboard-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 20px) 24px 36px;
}

.welcome-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.welcome-row h1 {
  font-size: 1.65rem;
  line-height: 1.08;
}

.welcome-row p,
.panel-subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 0 16px;
}

.primary-button {
  border-color: rgba(36, 199, 111, 0.44);
  background: linear-gradient(135deg, var(--green), #48df93);
  color: #04120b;
  box-shadow: 0 18px 40px rgba(36, 199, 111, 0.17);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(36, 199, 111, 0.25);
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.secondary-button.compact {
  min-height: 36px;
  padding-inline: 12px;
}

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

.kpi-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(17, 28, 42, 0.88);
  box-shadow: var(--shadow);
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.kpi-card:hover,
.panel-card:hover {
  border-color: var(--line-strong);
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
}

.kpi-card.blue .kpi-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.kpi-card.green .kpi-icon {
  background: var(--green-soft);
  color: var(--green);
}

.kpi-card.purple .kpi-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.kpi-card.orange .kpi-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.kpi-icon svg {
  width: 31px;
  height: 31px;
}

.kpi-card h2 {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.25;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.kpi-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.kpi-card p span {
  color: var(--green);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.86fr);
  grid-template-rows: 222px 106px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.panel-card {
  min-width: 0;
  padding: 20px;
}

.chart-panel {
  grid-row: 1 / span 2;
  height: 340px;
  min-height: 340px;
}

.panel-heading,
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.chart-legend span,
.source-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot,
.source-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot {
  width: 22px;
  height: 6px;
}

.legend-dot.green,
.source-dot.green {
  background: var(--green);
}

.legend-dot.blue,
.source-dot.blue {
  background: var(--blue);
}

.legend-dot.orange,
.source-dot.orange {
  background: var(--orange);
}

.legend-dot.purple,
.source-dot.purple {
  background: var(--purple);
}

.source-dot.gray {
  background: #a8b4c2;
}

.activity-chart {
  display: block;
  width: 100%;
  height: 252px;
}

.activity-chart text {
  fill: #b7c2d1;
  font-size: 12px;
}

.activity-chart .grid-line {
  stroke: rgba(148, 163, 184, 0.13);
  stroke-width: 1;
}

.activity-chart .axis-line {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}

.activity-chart .series {
  fill: none;
  stroke-width: 3;
}

.activity-chart .series.green-line {
  stroke: var(--green);
}

.activity-chart .series.blue-line {
  stroke: var(--blue);
}

.activity-chart .series.orange-line {
  stroke: var(--orange);
}

.activity-chart .point {
  stroke: rgba(7, 13, 22, 0.9);
  stroke-width: 3;
}

.sources-panel {
  height: 222px;
  min-height: 222px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 174px 1fr;
  gap: 24px;
  align-items: center;
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--green) 0 45%,
      var(--blue) 45% 70%,
      var(--orange) 70% 85%,
      var(--purple) 85% 95%,
      #a8b4c2 95% 100%
    );
}

.catalog-paused .donut-chart {
  background: conic-gradient(#d8e5e1 0 100%);
}

.donut-chart::after {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #111c2a;
  content: "";
}

.donut-chart span {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.source-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  justify-content: space-between;
  color: var(--text);
}

.source-list strong {
  flex: 1;
  font-weight: 600;
}

.source-list em {
  color: var(--text);
  font-style: normal;
}

.source-list .source-list-empty {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.flow-card {
  grid-column: 2;
  height: 106px;
  padding-block: 16px;
}

.flow-success {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
}

.flow-success p,
.flow-success dt {
  color: var(--muted);
}

.flow-success strong {
  display: block;
  margin-top: 4px;
}

.flow-success dl {
  display: grid;
  gap: 4px;
  text-align: left;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 340px);
  gap: 14px;
  margin-bottom: 14px;
}

.alerts-card {
  padding-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-inline: -20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 12px 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th:nth-child(1),
td:nth-child(1) {
  width: 15%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 28%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 15%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 12%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 14%;
}

th:nth-child(6),
td:nth-child(6) {
  overflow: visible;
  text-overflow: clip;
  width: 16%;
}

th {
  color: var(--muted);
  font-weight: 600;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(47, 128, 237, 0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 9px;
}

.badge.new {
  border: 1px solid rgba(36, 199, 111, 0.34);
  background: rgba(36, 199, 111, 0.12);
  color: var(--green);
}

.badge.drop {
  border: 1px solid rgba(47, 128, 237, 0.34);
  background: rgba(47, 128, 237, 0.12);
  color: #4b93ff;
}

.badge.up {
  border: 1px solid rgba(255, 138, 0, 0.34);
  background: rgba(255, 138, 0, 0.12);
  color: var(--orange);
}

.source-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.source-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  color: #101826;
  font-size: 0.72rem;
  font-weight: 900;
}

.change-negative {
  color: var(--green);
  font-weight: 800;
}

.change-positive {
  color: var(--danger);
  font-weight: 800;
}

.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(36, 199, 111, 0.45);
  border-radius: 7px;
  background: rgba(36, 199, 111, 0.07);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  width: 100%;
  padding: 0 8px;
  text-decoration: none;
}

.details-button:hover {
  background: rgba(36, 199, 111, 0.14);
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 800;
  margin: 0 -20px;
  padding: 17px;
  text-decoration: none;
}

.upcoming-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.upcoming-list {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

.upcoming-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.upcoming-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-list time {
  color: var(--muted);
  white-space: nowrap;
}

.clock-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.8px solid var(--soft);
  border-radius: 50%;
}

.clock-icon::before,
.clock-icon::after {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 1.5px;
  height: 5px;
  border-radius: 999px;
  background: var(--soft);
  content: "";
}

.clock-icon::after {
  top: 8px;
  width: 5px;
  height: 1.5px;
}

.monitor-console {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(270px, 320px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.filter-panel {
  display: grid;
  gap: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.is-hidden {
  display: none !important;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-group span {
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(7, 13, 22, 0.72);
  color: var(--text);
  outline: none;
  padding: 0 11px;
}

input::placeholder {
  color: rgba(169, 180, 195, 0.75);
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.16);
}

select option {
  background: var(--panel);
}

.config-status {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
}

.config-status.ready {
  border-color: rgba(36, 199, 111, 0.34);
  color: var(--green);
}

.config-status.missing {
  border-color: rgba(255, 138, 0, 0.34);
  color: var(--orange);
}

.price-alerts-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
}

.data-service-warning {
  border: 1px solid rgba(255, 138, 0, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 138, 0, 0.08);
  color: #ffc983;
  font-weight: 800;
  padding: 12px 14px;
}

.data-service-warning.ready {
  border-color: rgba(36, 199, 111, 0.3);
  background: rgba(36, 199, 111, 0.1);
  color: var(--green);
}

.data-service-warning.missing {
  border-color: rgba(255, 91, 91, 0.3);
  background: rgba(255, 91, 91, 0.08);
  color: #ff8b8b;
}

.alert-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.alert-form,
.session-card,
.alert-builder,
.saved-alerts,
.saved-alert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 13, 22, 0.36);
}

.alert-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.alert-form h3,
.saved-alerts h3 {
  font-size: 1rem;
}

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

.session-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.session-card p {
  color: var(--muted);
  margin-top: 2px;
}

.alert-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.alert-builder .alert-product-query-field,
.alert-builder .alert-email-field {
  grid-column: span 2;
}

.alert-product-query-field {
  position: relative;
}

.catalog-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  width: min(100%, 680px);
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(13, 61, 43, 0.14);
  padding: 8px;
}

.catalog-suggestion {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  padding: 10px;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.catalog-suggestion:hover,
.catalog-suggestion:focus-visible {
  background: #eef9f3;
  outline: none;
  transform: translateY(-1px);
}

.catalog-suggestion img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(24, 57, 46, 0.08);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 5px;
}

.catalog-suggestion span,
.catalog-suggestion strong,
.catalog-suggestion small {
  display: block;
  min-width: 0;
}

.catalog-suggestion strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-suggestion small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-suggestion em {
  border-radius: 999px;
  background: #def5e9;
  color: var(--green);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
}

.catalog-suggestion-empty {
  color: var(--muted);
  font-weight: 700;
  padding: 12px;
}

.selected-product-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(36, 199, 111, 0.24);
  border-radius: 14px;
  background: rgba(36, 199, 111, 0.08);
  padding: 10px;
}

.selected-product-preview img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 6px;
}

.selected-product-preview span,
.selected-product-preview strong,
.selected-product-preview p {
  display: block;
}

.selected-product-preview span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-product-preview strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-product-preview p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.alert-builder .primary-button {
  align-self: end;
}

.alert-builder .alert-edit-cancel {
  align-self: end;
}

.alert-builder.is-editing-alert {
  border-color: rgba(15, 163, 115, 0.28);
  box-shadow: 0 18px 42px rgba(15, 163, 115, 0.1);
}

.alert-builder.is-editing-alert input:disabled,
.alert-builder.is-editing-alert select:disabled {
  color: var(--muted);
  background: #f7fbf9;
  cursor: not-allowed;
}

.saved-alerts {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.saved-alerts-list {
  display: grid;
  gap: 10px;
}

.saved-alert-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.saved-alert-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.saved-alert-card[data-status="paused"] {
  opacity: 0.68;
}

.saved-alert-card.is-editing {
  border-color: rgba(15, 163, 115, 0.34);
  background: #f2fbf6;
}

.saved-alert-header,
.saved-alert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-alert-actions {
  flex-wrap: wrap;
}

.saved-alert-actions .danger {
  margin-left: auto;
}

.saved-alert-header p {
  color: var(--muted);
  margin-top: 3px;
}

.alert-status {
  border: 1px solid rgba(36, 199, 111, 0.3);
  border-radius: 999px;
  background: rgba(36, 199, 111, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 9px;
}

.alert-status.paused {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
}

.saved-alert-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.saved-alert-product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 12px;
  background: #f8fbf9;
  padding: 9px;
}

.saved-alert-product img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  padding: 5px;
}

.saved-alert-product span,
.saved-alert-product small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-alert-product span {
  color: var(--text);
  font-weight: 900;
}

.saved-alert-product small {
  color: var(--muted);
  margin-top: 2px;
}

.saved-alert-product a {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.alert-metric {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px 10px;
}

.alert-metric strong,
.alert-metric small {
  display: block;
}

.alert-metric strong {
  color: var(--soft);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.alert-metric small {
  color: var(--text);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.text-button.danger {
  color: var(--danger);
}

.setup-inline-link {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.search-box {
  flex: 1 1 280px;
}

.toolbar select {
  flex: 0 0 180px;
}

.compact-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 11px;
  white-space: nowrap;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  padding: 0 12px;
}

.category-button.active {
  border-color: rgba(36, 199, 111, 0.34);
  background: rgba(36, 199, 111, 0.11);
  color: var(--green);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-rows: 150px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 24, 37, 0.86);
  transition: transform 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.product-image-link {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(36, 199, 111, 0.08));
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.product-meta,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-badge,
.change-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.source-badge {
  background: rgba(47, 128, 237, 0.12);
  color: #63a1ff;
}

.change-badge {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.change-badge.new,
.change-badge.drop {
  background: var(--green-soft);
  color: var(--green);
}

.change-badge.promotion {
  background: rgba(255, 152, 0, 0.16);
  color: var(--orange);
}

.change-badge.up {
  background: var(--danger-soft);
  color: var(--danger);
}

.product-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-seller,
.product-note,
.price-change,
.timeline-detail,
.timeline-time {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-seller {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-note {
  min-height: 58px;
}

.product-price {
  font-size: 1.12rem;
}

.price-change.drop {
  color: var(--green);
}

.price-change.up {
  color: var(--danger);
}

.history-strip {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
}

.history-strip span {
  flex: 1;
  min-width: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--blue), rgba(47, 128, 237, 0.28));
}

.product-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.product-actions .product-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-alert-button {
  flex: 0 0 auto;
  border: 1px solid rgba(36, 199, 111, 0.24);
  border-radius: 999px;
  background: rgba(36, 199, 111, 0.08);
  padding: 5px 9px;
}

.timeline {
  display: grid;
  gap: 12px;
  max-height: 522px;
  overflow-y: auto;
  padding-right: 4px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--green);
}

.timeline-dot.up {
  background: var(--danger);
}

.timeline-title {
  display: block;
  font-size: 0.88rem;
}

.timeline-detail {
  margin-top: 4px;
}

.timeline-time {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
}

.empty-state,
.error-state,
.warning-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 18px;
}

.error-state {
  border-color: rgba(255, 91, 91, 0.34);
  color: var(--danger);
}

.warning-state {
  border-color: rgba(255, 138, 0, 0.34);
  color: var(--orange);
}

.disclosure-band {
  border: 1px solid rgba(255, 138, 0, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 138, 0, 0.08);
  color: #ffc983;
  padding: 14px 16px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}

.setup-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.setup-card {
  display: grid;
  width: min(620px, 100%);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 31, 46, 0.94), rgba(9, 17, 28, 0.96));
  box-shadow: var(--shadow);
  padding: 28px;
}

.setup-card.success {
  border-color: rgba(36, 199, 111, 0.32);
}

.setup-card.error {
  border-color: rgba(255, 91, 91, 0.32);
}

.setup-back,
.setup-kicker {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.setup-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.setup-card p {
  color: var(--muted);
  line-height: 1.7;
}

.setup-note {
  border: 1px solid rgba(255, 138, 0, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 138, 0, 0.08);
  color: #ffd393;
  line-height: 1.55;
  padding: 12px 14px;
}

.setup-note strong {
  color: #fff2cf;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

  .dashboard-grid,
  .content-grid,
  .monitor-console,
  .alert-builder {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .alert-builder .alert-product-query-field,
  .alert-builder .alert-email-field {
    grid-column: auto;
  }

  .chart-panel {
    grid-row: auto;
    height: auto;
  }

  .flow-card {
    grid-column: auto;
    height: auto;
  }

  .sources-panel {
    height: auto;
  }
}

@media (max-width: 1080px) {
  :root {
    --topbar-height: auto;
  }

  .topbar,
  .sidebar {
    position: static;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .topbar-subtitle {
    display: none;
    order: 3;
    flex: 0 0 calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 14px;
  }

  .sidebar-nav a {
    flex: 0 0 auto;
  }

  .automation-status-card,
  .sidebar-footer {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 22px 18px 32px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 16px;
  }

  .topbar-brand {
    min-width: 0;
  }

  .topbar-actions {
    flex: 0 0 calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .user-chip span:not(.avatar),
  .date-pill span {
    display: none;
  }

  .welcome-row,
  .panel-heading,
  .table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .kpi-grid,
  .donut-layout,
  .alert-auth-grid,
  .saved-alert-details {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 112px;
  }

  .chart-legend {
    gap: 10px;
  }

  .monitor-actions,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button,
  .toolbar select,
  .compact-toggle {
    width: 100%;
  }

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

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

/* Garimpanda visual system */
:root {
  color-scheme: light;
  --bg: #f6fbf8;
  --bg-2: #eef8f2;
  --sidebar: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7fbf8;
  --panel-3: #edf8f1;
  --text: #101820;
  --muted: #68757f;
  --soft: #87949c;
  --line: rgba(24, 57, 46, 0.11);
  --line-strong: rgba(24, 57, 46, 0.2);
  --green: #0fa373;
  --green-soft: rgba(15, 163, 115, 0.12);
  --blue: #1985ff;
  --blue-soft: rgba(25, 133, 255, 0.1);
  --orange: #ffb21f;
  --orange-soft: rgba(255, 178, 31, 0.16);
  --purple: #7757ff;
  --purple-soft: rgba(119, 87, 255, 0.1);
  --danger: #e75151;
  --danger-soft: rgba(231, 81, 81, 0.1);
  --shadow: 0 18px 46px rgba(19, 81, 58, 0.1);
  --radius: 18px;
  --topbar-height: 82px;
}

body {
  background:
    linear-gradient(180deg, rgba(246, 251, 248, 0.92), rgba(246, 251, 248, 0.96)),
    url("./assets/garimpanda-background.png") top center / 100% auto no-repeat,
    #f6fbf8;
  color: var(--text);
}

body,
button,
input,
select {
  font-size: 14px;
}

.dashboard-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 18px;
  inset: auto;
  z-index: 50;
  width: min(1320px, calc(100% - 36px));
  min-height: 70px;
  margin: 18px auto 0;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 45px rgba(23, 84, 61, 0.08);
  padding: 12px 18px;
}

.topbar-brand {
  min-width: 0;
  flex: 0 0 auto;
  gap: 10px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 18px;
  background:
    #e5f6ee url("./assets/garimpanda-panda.png") 64% 86% / 170px auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(15, 163, 115, 0.16);
}

.brand-mark img {
  display: none;
}

.topbar-brand strong {
  color: var(--text);
  font-size: 1.34rem;
}

.topbar-brand strong span {
  color: var(--green);
}

.topbar-brand small {
  max-width: 340px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
}

.top-nav a {
  position: relative;
  border-radius: 999px;
  color: #2b3633;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--green);
  background: rgba(15, 163, 115, 0.08);
}

.topbar-actions {
  flex: 0 0 auto;
}

.icon-action,
.date-pill,
.user-chip,
.primary-button,
.secondary-button {
  border-color: rgba(24, 57, 46, 0.12);
  background: #fff;
  color: var(--text);
}

.icon-action {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.date-pill {
  text-decoration: none;
}

.icon-action:hover,
.date-pill:hover,
.secondary-button:hover {
  border-color: rgba(15, 163, 115, 0.26);
  background: #f4fbf7;
}

.user-chip {
  border-color: transparent;
}

.avatar {
  border-color: rgba(15, 163, 115, 0.22);
  background: linear-gradient(145deg, #e9fff4, #bfead8);
  color: var(--green);
}

.sidebar {
  display: none;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.welcome-row,
.kpi-grid,
.dashboard-grid,
.content-grid,
.monitor-console,
.price-alerts-panel,
.disclosure-band {
  margin-bottom: 0;
}

.hero-panel {
  position: relative;
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 20px;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbf8 52%, #e9f8f0 100%);
  box-shadow: var(--shadow);
  padding: 42px;
}

.hero-panel::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background: rgba(15, 163, 115, 0.1);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #dff4e9;
  color: var(--green);
  font-weight: 900;
  padding: 9px 14px;
}

.hero-copy h1 {
  max-width: 610px;
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-copy p {
  max-width: 520px;
  color: #4e5c63;
  font-size: 1.08rem;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #15221d;
  font-weight: 900;
}

.hero-benefits i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #dcf3e7;
  color: var(--green);
  font-style: normal;
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: center;
  height: 360px;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 82%;
}

.hero-panel .monitor-actions {
  position: absolute;
  z-index: 3;
  left: 42px;
  bottom: 34px;
}

.primary-button {
  border-color: #0c986a;
  background: linear-gradient(135deg, #14b981, #07996b);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 163, 115, 0.24);
}

.primary-button:hover {
  box-shadow: 0 18px 40px rgba(15, 163, 115, 0.3);
}

.secondary-button {
  background: #fff;
}

.monitor-console {
  order: 2;
  grid-template-columns: minmax(240px, 285px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.events-panel {
  display: none;
}

.products-area {
  padding: 22px;
}

.products-area .panel-heading h2::after {
  color: var(--green);
  content: " em destaque";
}

.filter-panel,
.products-area,
.price-alerts-panel,
.panel-card,
.kpi-card {
  border-color: var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel-card:hover,
.kpi-card:hover {
  border-color: rgba(15, 163, 115, 0.22);
}

.panel-subtitle,
.welcome-row p {
  color: var(--muted);
}

.toolbar {
  gap: 12px;
}

input,
select {
  min-height: 46px;
  border-color: rgba(24, 57, 46, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 163, 115, 0.12);
}

select option {
  background: #fff;
}

.toggle-row input {
  accent-color: var(--green);
}

.category-tabs {
  gap: 10px;
}

.category-button {
  min-height: 42px;
  border-color: rgba(24, 57, 46, 0.12);
  border-radius: 14px;
  background: #f7fbf8;
  color: #52615c;
}

.category-button.active {
  border-color: rgba(15, 163, 115, 0.28);
  background: #dff4e9;
  color: var(--green);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}

.product-card {
  grid-template-rows: 150px 1fr;
  align-self: start;
  border-color: rgba(24, 57, 46, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(13, 61, 43, 0.08);
}

.product-card:hover {
  border-color: rgba(15, 163, 115, 0.24);
  transform: translateY(-4px);
}

.product-image-link {
  background: linear-gradient(145deg, #f8fbf9, #eef8f3);
}

.product-title {
  color: #15211d;
}

.product-note,
.history-strip {
  display: none;
}

.product-price {
  color: var(--green);
}

.history-strip span {
  background: linear-gradient(180deg, var(--green), rgba(15, 163, 115, 0.22));
}

.source-badge {
  background: #eef8f3;
  color: var(--green);
}

.change-badge.new,
.change-badge.drop,
.change-badge.promotion {
  background: var(--green);
  color: #fff;
}

.product-alert-button {
  background: #e4f6ed;
  color: var(--green);
}

.product-link {
  color: var(--green);
}

.price-alerts-panel {
  order: 3;
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 247, 0.95)),
    url("./assets/garimpanda-background.png") bottom center / cover no-repeat;
}

.price-alerts-panel::after {
  position: absolute;
  right: -80px;
  top: 40px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(15, 163, 115, 0.08);
  content: "";
}

.price-alerts-panel > * {
  position: relative;
  z-index: 1;
}

.data-service-warning {
  border-color: rgba(15, 163, 115, 0.18);
  background: #eef8f3;
  color: #166b51;
}

.data-service-warning.missing {
  border-color: rgba(255, 178, 31, 0.32);
  background: #fff8e8;
  color: #946409;
}

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

.radar-guide article,
.alert-form,
.session-card,
.alert-builder,
.saved-alerts,
.saved-alert-card {
  border-color: rgba(24, 57, 46, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(13, 61, 43, 0.06);
}

.radar-guide article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  row-gap: 3px;
  padding: 16px;
}

.radar-guide article span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #dff4e9;
  color: var(--green);
  font-weight: 900;
}

.radar-guide article strong {
  align-self: end;
}

.radar-guide article p {
  color: var(--muted);
  font-size: 0.86rem;
}

.alert-auth-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.8fr);
}

.alert-builder {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.saved-alert-card:hover {
  border-color: rgba(15, 163, 115, 0.24);
}

.alert-metric {
  border-color: rgba(24, 57, 46, 0.1);
  background: #f8fbf9;
}

.kpi-grid {
  order: 4;
}

.kpi-card {
  min-height: 118px;
  background: #fff;
}

.kpi-card strong {
  color: var(--text);
}

.kpi-card h2 {
  color: var(--text);
}

.kpi-card p {
  color: var(--muted);
}

.dashboard-grid {
  order: 5;
}

.content-grid {
  order: 6;
}

.disclosure-band {
  order: 7;
  border-color: rgba(255, 178, 31, 0.22);
  background: #fff8e8;
  color: #7a5a12;
}

.chart-panel,
.sources-panel,
.flow-card,
.alerts-card,
.upcoming-card {
  background: rgba(255, 255, 255, 0.92);
}

.activity-chart text {
  fill: #66746f;
}

.grid-line {
  stroke: rgba(24, 57, 46, 0.08);
}

.axis-line {
  stroke: rgba(24, 57, 46, 0.18);
}

.table-wrap {
  border-color: rgba(24, 57, 46, 0.08);
}

table th {
  color: #52615c;
}

table td {
  color: var(--text);
}

.empty-state,
.warning-state,
.error-state {
  border-color: rgba(24, 57, 46, 0.12);
  background: #f8fbf9;
}

.warning-state {
  border-color: rgba(255, 178, 31, 0.34);
  background: #fff8e8;
  color: #946409;
}

.error-state {
  border-color: rgba(231, 81, 81, 0.3);
  background: #fff0f0;
  color: var(--danger);
}

.config-status {
  border-color: rgba(24, 57, 46, 0.1);
  background: #f8fbf9;
}

.config-status.ready {
  border-color: rgba(15, 163, 115, 0.24);
  color: var(--green);
}

.setup-inline-link,
.panel-link,
.text-button {
  color: var(--green);
}

@media (max-width: 1180px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero-panel,
  .monitor-console,
  .dashboard-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel .monitor-actions {
    position: static;
    align-self: end;
  }
}

@media (max-width: 780px) {
  .topbar,
  .dashboard-main {
    width: min(100% - 24px, 1320px);
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .topbar-brand small {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-visual {
    height: 280px;
    min-height: 0;
  }

  .hero-benefits,
  .monitor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .radar-guide,
  .alert-auth-grid,
  .alert-builder,
  .saved-alert-details {
    grid-template-columns: 1fr;
  }

  .alert-builder .alert-product-query-field,
  .alert-builder .alert-email-field {
    grid-column: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-height: 920px;
  }
}

/* Garimpos product catalog */
.monitor-console {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 0;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 18px;
}

.filter-heading,
.filter-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-heading {
  padding-bottom: 16px;
}

.filter-heading h2 {
  font-size: 1.05rem;
}

.filter-section {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.filter-section-title {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  padding: 0 0 12px;
}

.filter-section-title.static {
  padding-bottom: 12px;
}

.category-tabs.vertical {
  display: grid;
  gap: 8px;
  margin: 0;
}

.category-tabs.vertical .category-button {
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f6e68;
  font-size: 0.86rem;
  padding: 0 2px;
}

.category-tabs.vertical .category-button::before {
  width: 16px;
  height: 16px;
  border: 1px solid #d3dfd9;
  border-radius: 5px;
  content: "";
}

.category-tabs.vertical .category-button.active {
  background: transparent;
  color: var(--green);
}

.category-tabs.vertical .category-button.active::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}

.category-tabs.vertical .category-button span {
  margin-left: auto;
  color: #7b8983;
  font-weight: 800;
}

.discount-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.discount-filter {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  padding: 0 10px;
}

.discount-filter.active {
  border-color: rgba(15, 163, 115, 0.28);
  background: #dff4e9;
  color: var(--green);
}

.source-config {
  display: grid;
  gap: 10px;
}

.filter-apply-button {
  width: 100%;
}

.filter-trust-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: #eaf8f0;
  color: #17634c;
  padding: 12px;
}

.filter-trust-card p {
  color: #4f6d62;
  font-size: 0.76rem;
}

.products-area {
  overflow: hidden;
  padding: 0 0 22px;
}

.products-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 155px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.9) 48%, rgba(223, 244, 233, 0.62) 100%),
    url("./assets/garimpanda-background.png") right bottom / cover no-repeat;
  padding: 28px 32px;
}

.products-hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.products-hero img {
  align-self: flex-end;
  width: 230px;
  max-width: 34%;
  margin: -38px 12px -54px 0;
  object-fit: cover;
  object-position: 65% 84%;
}

.products-area .toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto 190px auto;
  gap: 14px;
  align-items: stretch;
  margin: 0;
  padding: 16px;
}

.products-area .search-box {
  position: relative;
}

.products-area .search-box input {
  min-height: 54px;
  padding-left: 42px;
}

.products-area .search-box::before {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #7d8a85;
  border-radius: 999px;
  transform: translateY(-50%);
  content: "";
}

.products-area .search-box::after {
  position: absolute;
  z-index: 1;
  left: 29px;
  top: 32px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #7d8a85;
  transform: rotate(45deg);
  content: "";
}

.products-count {
  display: grid;
  align-content: center;
  min-width: 178px;
}

.products-count strong {
  color: var(--green);
  font-size: 0.9rem;
}

.products-count span {
  color: var(--muted);
  font-size: 0.82rem;
}

.view-toggle {
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf8f3;
  padding: 5px;
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #61726b;
}

.view-toggle button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 7px 16px rgba(13, 61, 43, 0.08);
}

.view-toggle button:first-child {
  grid-template-columns: repeat(2, 7px);
  gap: 4px;
}

.view-toggle span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

.view-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: currentColor;
}

.product-info-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 16px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(15, 163, 115, 0.14), rgba(15, 163, 115, 0.06));
  padding: 16px 20px;
}

.product-info-banner > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.product-info-banner p {
  color: var(--muted);
  margin-top: 2px;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-height: none;
  overflow: visible;
  gap: 16px;
  padding: 0 16px;
}

.product-card {
  position: relative;
  grid-template-rows: 140px 1fr;
  min-height: 286px;
  border-radius: 15px;
}

.product-image {
  padding: 10px;
}

.product-body {
  gap: 6px;
  padding: 10px 11px 12px;
}

.product-meta {
  position: absolute;
  inset: 10px 10px auto 10px;
}

.source-badge {
  display: none;
}

.change-badge {
  border-radius: 7px;
  padding: 2px 7px;
}

.product-title {
  min-height: 40px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.product-seller {
  color: var(--muted);
  font-size: 0.72rem;
}

.price-row {
  align-items: baseline;
}

.product-price {
  font-size: 0.98rem;
}

.price-change {
  color: #98a39e;
  font-size: 0.72rem;
  text-decoration: line-through;
}

.product-rating {
  color: #66766f;
  font-size: 0.74rem;
}

.product-rating::first-letter {
  color: #ffb21f;
}

.product-actions {
  margin-top: auto;
}

.product-link {
  font-size: 0.76rem;
}

.product-alert-button {
  padding: 4px 7px;
  font-size: 0.72rem;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 16px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.pagination button,
.pagination-ellipsis {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.pagination button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.pagination button:disabled {
  color: #b6c1bb;
  cursor: not-allowed;
}

.pagination-ellipsis {
  border-color: transparent;
  background: transparent;
}

.page-size-control {
  flex: 0 0 170px;
}

@media (max-width: 1180px) {
  .filter-panel {
    position: static;
    max-height: none;
  }

  .products-area .toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .products-area .toolbar,
  .pagination-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .products-count {
    min-width: 0;
  }

  .view-toggle {
    width: fit-content;
  }

  .products-hero {
    min-height: 120px;
    padding: 22px;
  }

  .products-hero img {
    display: none;
  }

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

  .page-size-control {
    flex-basis: auto;
  }
}

/* Multi-page structure */
.entry-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(246, 251, 248, 0.94), rgba(232, 247, 239, 0.96)),
    url("./assets/garimpanda-background.png") top center / cover no-repeat,
    #f6fbf8;
}

.entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 430px);
  gap: 26px;
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
  align-items: center;
}

.entry-hero,
.entry-card,
.page-intro,
.feature-card,
.flow-explain {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.entry-hero {
  position: relative;
  display: grid;
  gap: 34px;
  overflow: hidden;
  min-height: 640px;
  padding: 34px;
}

.entry-hero::after {
  position: absolute;
  right: -42px;
  bottom: -88px;
  width: 360px;
  height: 360px;
  background: url("./assets/garimpanda-panda.png") center / cover no-repeat;
  content: "";
}

.entry-brand,
.entry-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-brand {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.entry-brand strong {
  font-size: 2rem;
  line-height: 1;
}

.entry-brand strong span,
.entry-copy h1 span {
  color: var(--green);
}

.entry-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 650px;
}

.entry-copy h1,
.page-intro h1 {
  color: var(--text);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.entry-copy p,
.page-intro p,
.feature-card p,
.flow-steps span,
.form-status {
  color: var(--muted);
}

.entry-copy p {
  max-width: 560px;
  font-size: 1.08rem;
}

.entry-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
  max-width: 760px;
}

.entry-benefits article {
  min-height: 154px;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px;
}

.entry-benefits span,
.feature-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #dff4e9;
  color: var(--green);
  font-weight: 900;
}

.entry-benefits strong,
.entry-benefits p {
  display: block;
  margin-top: 10px;
}

.entry-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.entry-card-header img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
  object-position: 66% 84%;
}

.entry-card h2 {
  font-size: 1.8rem;
}

.entry-card p {
  color: var(--muted);
}

.entry-form {
  display: grid;
  gap: 14px;
}

.full-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  text-decoration: none;
}

.entry-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.entry-divider::before,
.entry-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.entry-link {
  justify-self: center;
}

.form-status {
  min-height: 21px;
  font-weight: 800;
}

.form-status.ready {
  color: var(--green);
}

.page-main {
  padding-top: 24px;
}

.page-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  min-height: 230px;
  padding: 34px;
}

.page-intro img {
  width: min(260px, 30vw);
  margin-bottom: -58px;
  object-fit: cover;
  object-position: 66% 84%;
}

.compact-intro {
  min-height: 180px;
}

.split-intro {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(234, 248, 240, 0.86)),
    url("./assets/garimpanda-background.png") right bottom / cover no-repeat;
}

.nav-button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.products-page .monitor-console {
  order: initial;
}

.products-page .products-area {
  padding-top: 4px;
}

.intro-status {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
}

.intro-status div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbf9;
  padding: 14px;
}

.intro-status dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-status dd {
  margin-top: 3px;
  font-weight: 900;
}

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

.feature-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.feature-card h2 {
  font-size: 1.15rem;
}

.flow-explain {
  display: grid;
  gap: 18px;
  padding: 24px;
}

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

.flow-steps article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbf9;
  padding: 16px;
}

.flow-steps strong,
.flow-steps span {
  display: block;
}

.flow-steps span {
  margin-top: 6px;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .entry-shell,
  .feature-grid,
  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .entry-hero {
    min-height: 520px;
  }
}

@media (max-width: 780px) {
  .entry-shell,
  .entry-benefits,
  .feature-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .entry-hero {
    min-height: 0;
  }

  .entry-hero::after {
    position: static;
    width: min(100%, 260px);
    height: 260px;
    justify-self: center;
  }

  .entry-copy h1,
  .page-intro h1 {
    font-size: 2.45rem;
  }

  .page-intro,
  .compact-intro {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 24px;
  }

  .page-intro img {
    width: min(100%, 220px);
    margin: 0 auto -40px;
  }
}

/* Login reference screen */
.login-screen {
  display: grid;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% -8%, rgba(15, 163, 115, 0.18), transparent 34%),
    radial-gradient(circle at 94% 8%, rgba(15, 163, 115, 0.12), transparent 30%),
    linear-gradient(180deg, #f7fbf8 0%, #eef8f3 100%);
}

.login-screen::before {
  position: fixed;
  inset: 0 0 auto 0;
  height: 190px;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 163, 115, 0.24) 1.8px, transparent 1.8px);
  background-size: 28px 28px;
  opacity: 0.38;
  content: "";
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 22px;
}

.login-card {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(24, 57, 46, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(22, 93, 68, 0.16);
  padding: 42px 46px 210px;
}

.login-logo {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  color: #101820;
  text-decoration: none;
}

.login-logo-mark {
  width: 58px;
  height: 50px;
  border-radius: 18px;
  background: url("./assets/garimpanda-panda.png") 64% 86% / 178px auto no-repeat;
}

.login-logo strong {
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.login-logo strong span,
.login-header h1 span {
  color: var(--green);
}

.login-header {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  margin-top: 42px;
  text-align: center;
}

.login-header h1 {
  font-size: clamp(2.15rem, 7vw, 2.75rem);
  line-height: 1.04;
}

.login-header p {
  max-width: 330px;
  margin: 0 auto;
  color: #75818a;
  font-size: 1rem;
}

.login-form {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 17px;
  margin-top: 32px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field > span {
  color: #1d282f;
  font-weight: 900;
}

.login-input-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(24, 57, 46, 0.12);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 37, 31, 0.04);
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(15, 163, 115, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 163, 115, 0.11);
}

.login-input-shell svg {
  width: 20px;
  height: 20px;
  color: #9ba6ad;
}

.login-input-shell input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101820;
  padding: 0;
}

.login-input-shell input:focus {
  box-shadow: none;
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8f9aa2;
  padding: 0;
}

.password-toggle:hover {
  background: #eef8f3;
  color: var(--green);
}

.forgot-link,
.guest-link {
  width: fit-content;
  color: #73808a;
  font-size: 0.86rem;
  font-weight: 800;
}

.forgot-link {
  margin-top: -7px;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 10px;
  font-size: 1rem;
}

.login-submit svg {
  width: 17px;
  height: 17px;
}

.login-divider {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  color: #9aa6ad;
  font-weight: 800;
}

.login-divider::before,
.login-divider::after {
  flex: 1;
  height: 1px;
  background: rgba(24, 57, 46, 0.1);
  content: "";
}

.create-account-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid rgba(24, 57, 46, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #101820;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 37, 31, 0.03);
}

.google-login-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(24, 57, 46, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #101820;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 37, 31, 0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.google-login-button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 999px;
  color: #4285f4;
  font-weight: 950;
}

.google-login-button:hover {
  border-color: rgba(15, 163, 115, 0.28);
  background: #f6fbf8;
  transform: translateY(-1px);
}

.google-login-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.create-account-button:hover {
  border-color: rgba(15, 163, 115, 0.28);
  background: #f6fbf8;
}

.guest-link {
  position: relative;
  z-index: 3;
  justify-self: center;
  margin-top: 10px;
  color: var(--green);
}

.login-security {
  position: absolute;
  z-index: 2;
  left: 46px;
  bottom: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 160px);
  gap: 12px;
  align-items: center;
}

.login-security > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green);
}

.login-security svg {
  width: 34px;
  height: 34px;
}

.login-security strong {
  display: block;
  color: #1f2d31;
  font-size: 0.92rem;
}

.login-security p {
  color: #7c8991;
  font-size: 0.78rem;
}

.login-panda {
  position: absolute;
  z-index: 1;
  right: -20px;
  bottom: -4px;
  width: 300px;
  height: 245px;
  background: url("./assets/garimpanda-panda.png") 68% 100% / 430px auto no-repeat;
  pointer-events: none;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 8px;
  }

  .login-card {
    min-height: 100vh;
    border-radius: 18px;
    padding: 34px 28px 218px;
  }

  .login-header {
    margin-top: 34px;
  }

  .login-security {
    left: 28px;
    bottom: 52px;
    grid-template-columns: 32px minmax(0, 160px);
  }

  .login-panda {
    right: -54px;
    width: 292px;
  }
}

/* Desktop login layout */
.login-shell {
  padding: clamp(28px, 4vw, 58px);
}

.login-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.82fr);
  width: min(1180px, calc(100vw - 96px));
  min-height: min(760px, calc(100vh - 96px));
  padding: 0;
}

.login-showcase,
.login-panel {
  position: relative;
  display: grid;
}

.login-showcase {
  overflow: hidden;
  align-content: start;
  gap: 28px;
  min-height: 690px;
  border-right: 1px solid rgba(24, 57, 46, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 250, 245, 0.9) 46%, rgba(216, 242, 229, 0.88) 100%),
    url("./assets/garimpanda-background.png") right bottom / cover no-repeat;
  padding: 42px 52px;
}

.login-showcase::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(15, 163, 115, 0.1);
  content: "";
}

.login-panel {
  align-content: center;
  padding: 48px 54px;
}

.login-logo-mobile {
  display: none;
}

.login-showcase .login-logo {
  justify-self: start;
}

.login-showcase-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin-top: 28px;
}

.login-showcase-copy > span {
  width: fit-content;
  border-radius: 999px;
  background: #dff4e9;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 9px 14px;
}

.login-showcase-copy h2 {
  color: #101820;
  font-size: clamp(2.65rem, 4.5vw, 5.15rem);
  line-height: 0.96;
}

.login-showcase-copy p {
  max-width: 470px;
  color: #52625f;
  font-size: 1.08rem;
}

.login-showcase-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 610px;
}

.login-showcase-grid article {
  min-height: 106px;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 32px rgba(23, 84, 61, 0.08);
  padding: 16px;
}

.login-showcase-grid strong,
.login-showcase-grid span {
  display: block;
}

.login-showcase-grid strong {
  color: var(--green);
  font-size: 1.45rem;
}

.login-showcase-grid span {
  margin-top: 4px;
  color: #5c6a66;
  font-weight: 800;
}

.login-panel .login-header {
  margin-top: 0;
  text-align: left;
}

.login-panel .login-header h1 {
  max-width: 390px;
  font-size: clamp(2.45rem, 3vw, 3.2rem);
}

.login-panel .login-header p {
  max-width: 390px;
  margin: 0;
}

.login-panel .login-form {
  max-width: 430px;
}

.login-panel .login-divider,
.login-panel .google-login-button,
.login-panel .create-account-button,
.login-panel .guest-link {
  max-width: 430px;
}

.login-security {
  position: relative;
  z-index: 2;
  left: auto;
  bottom: auto;
  align-self: end;
  grid-template-columns: 42px minmax(0, 230px);
  margin-top: auto;
}

.login-panda {
  right: 8px;
  bottom: -10px;
  width: 390px;
  height: 318px;
  background-size: 560px auto;
}

@media (max-width: 980px) {
  .login-card {
    grid-template-columns: 1fr;
    width: min(100%, 620px);
    min-height: auto;
  }

  .login-showcase {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 57, 46, 0.1);
    padding: 34px;
  }

  .login-showcase .login-logo,
  .login-showcase-grid,
  .login-security {
    display: none;
  }

  .login-showcase-copy {
    max-width: min(100%, 350px);
    margin-top: 0;
  }

  .login-showcase-copy h2 {
    max-width: 340px;
    font-size: 2.3rem;
  }

  .login-showcase-copy p {
    max-width: 330px;
  }

  .login-panda {
    right: -54px;
    bottom: -44px;
    width: 290px;
    height: 235px;
    background-size: 430px auto;
  }

  .login-panel {
    padding: 38px 42px 44px;
  }

  .login-logo-mobile {
    display: inline-flex;
    justify-self: center;
    margin-bottom: 30px;
  }

  .login-panel .login-header {
    text-align: center;
  }

  .login-panel .login-header p {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 10px;
  }

  .login-card {
    width: 100%;
    border-radius: 18px;
  }

  .login-showcase {
    min-height: 230px;
    padding: 24px;
  }

  .login-showcase-copy h2 {
    font-size: 2rem;
  }

  .login-showcase-copy p {
    font-size: 0.95rem;
  }

  .login-panel {
    padding: 30px 24px 34px;
  }

  .login-panel .login-header h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 560px) and (max-width: 980px) {
  .login-card {
    grid-template-columns: minmax(190px, 0.72fr) minmax(315px, 1fr);
    width: min(900px, calc(100vw - 56px));
    min-height: min(760px, calc(100vh - 72px));
  }

  .login-showcase {
    align-content: start;
    min-height: 100%;
    border-right: 1px solid rgba(24, 57, 46, 0.1);
    border-bottom: 0;
    padding: 30px 24px;
  }

  .login-showcase-copy {
    max-width: 210px;
  }

  .login-showcase-copy > span {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .login-showcase-copy h2 {
    max-width: 210px;
    font-size: 1.88rem;
  }

  .login-showcase-copy p {
    max-width: 200px;
    font-size: 0.88rem;
  }

  .login-panda {
    right: -112px;
    bottom: -8px;
    width: 290px;
    height: 250px;
    background-size: 440px auto;
  }

  .login-panel {
    padding: 34px 34px 38px;
  }

  .login-logo-mobile {
    margin-bottom: 24px;
  }

  .login-panel .login-header h1 {
    font-size: 2.15rem;
  }

  .login-panel .login-header p {
    font-size: 0.92rem;
  }
}

/* Products filter cleanup */
.products-page {
  overflow-x: hidden;
}

.products-page .dashboard-main {
  width: min(1360px, calc(100% - 32px));
}

.products-page .monitor-console {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  overflow: visible;
}

.products-page .filter-panel {
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding: 16px;
}

.products-page .filter-section {
  min-width: 0;
}

.products-page .products-area {
  min-width: 0;
  overflow: hidden;
}

.source-choice-grid {
  display: grid;
  gap: 10px;
}

.source-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(24, 57, 46, 0.12);
  border-radius: 14px;
  background: #f8fbf9;
  color: var(--text);
  cursor: pointer;
  padding: 12px;
}

.source-choice input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.source-choice strong,
.source-choice small {
  display: block;
}

.source-choice strong {
  line-height: 1.2;
}

.source-choice small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.source-choice:has(input:checked) {
  border-color: rgba(15, 163, 115, 0.32);
  background: #e7f7ef;
}

.products-page .products-area .toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) minmax(150px, 190px) auto;
}

.products-page .products-area .search-box,
.products-page .products-area .toolbar select,
.products-page .products-count {
  min-width: 0;
}

.products-page .pagination {
  flex-wrap: wrap;
  min-width: 0;
}

.products-page .pagination-bar {
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .products-page .monitor-console {
    grid-template-columns: 1fr;
  }

  .products-page .filter-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 0;
  }

  .products-page .filter-heading,
  .products-page .filter-trust-card {
    grid-column: 1 / -1;
  }

  .products-page .source-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-page .products-area .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  }

  .products-page .view-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  .products-page .dashboard-main {
    width: min(100% - 20px, 1360px);
    padding-top: 16px;
  }

  .products-page .source-choice-grid,
  .products-page .products-area .toolbar {
    grid-template-columns: 1fr;
  }

  .products-page .filter-section {
    padding: 14px 0;
  }

  .products-page .product-info-banner {
    align-items: flex-start;
    margin-inline: 12px;
    padding: 14px;
  }

  .products-page .product-grid {
    gap: 12px;
    padding-inline: 12px;
  }

  .products-page .pagination-bar {
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .products-page .filter-panel {
    grid-template-columns: 1fr;
  }

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

/* Product card readability */
.products-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: stretch;
  gap: 18px;
  max-height: none;
  overflow: visible;
  padding-inline: 16px;
}

.products-page .product-card {
  display: grid;
  grid-template-rows: 210px minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(22, 101, 76, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(16, 47, 37, 0.08);
}

.products-page .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 150, 96, 0.24);
  box-shadow: 0 22px 44px rgba(16, 47, 37, 0.12);
}

.products-page .product-image-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 18px 18px 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 150, 96, 0.12), transparent 48%),
    linear-gradient(180deg, #f8fffc 0%, #ffffff 100%);
}

.products-page .product-image {
  width: 100%;
  height: 100%;
  max-height: 180px;
  padding: 0;
  object-fit: contain;
  transition: transform 180ms ease;
}

.products-page .product-card:hover .product-image {
  transform: scale(1.035);
}

.products-page .product-meta {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.products-page .source-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 86px);
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #53615b;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 47, 37, 0.08);
}

.products-page .change-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(0, 150, 96, 0.24);
}

.products-page .change-badge.up {
  background: #f97316;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.2);
}

.products-page .change-badge.stable {
  background: #637381;
  box-shadow: none;
}

.products-page .product-body {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 9px;
  padding: 14px 14px 15px;
}

.products-page .product-title {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-page .product-seller {
  margin: 0;
  overflow: hidden;
  color: #6a7771;
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-page .product-note {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #56645e;
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-page .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: start;
}

.products-page .product-price {
  color: var(--green);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.products-page .price-change {
  min-height: 18px;
  overflow: hidden;
  color: #8b9792;
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration: line-through;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-page .price-change.drop,
.products-page .price-change.promotion {
  color: #8b9792;
}

.products-page .price-change.up {
  color: #d45b3f;
  text-decoration: none;
}

.products-page .product-rating {
  margin: 0;
  color: #66766f;
  font-size: 0.8rem;
  line-height: 1.2;
}

.products-page .history-strip {
  display: none;
}

.products-page .product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.products-page .product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 150, 96, 0.08);
  border-radius: 11px;
  background: linear-gradient(135deg, #17bf83, var(--green));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(0, 150, 96, 0.18);
}

.products-page .product-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(0, 150, 96, 0.24);
}

.products-page .product-alert-button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(0, 150, 96, 0.18);
  border-radius: 11px;
  background: #e9f8f1;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.products-page .product-alert-button:hover {
  background: #daf3e8;
  color: #087c54;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .products-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    padding-inline: 12px;
  }

  .products-page .product-card {
    grid-template-rows: 190px minmax(0, 1fr);
    min-height: 410px;
  }

  .products-page .product-image-link {
    min-height: 190px;
  }

  .products-page .product-image {
    max-height: 164px;
  }
}

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

  .products-page .product-card {
    grid-template-rows: 220px minmax(0, 1fr);
    min-height: 428px;
  }

  .products-page .product-image-link {
    min-height: 220px;
  }

  .products-page .product-image {
    max-height: 194px;
  }
}

/* Product filter visual refinements */
.products-page .filter-panel {
  border: 1px solid rgba(22, 101, 76, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(16, 47, 37, 0.08);
  padding: 20px 18px;
}

.products-page .filter-heading {
  border-bottom: 1px solid #e7eeea;
  padding-bottom: 17px;
}

.products-page .filter-heading h2 {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
}

.products-page .filter-heading .text-button {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

.products-page .filter-section {
  border-top: 0;
  border-bottom: 1px solid #e7eeea;
  padding: 18px 0;
}

.products-page .filter-section.source-config {
  border-bottom: 0;
}

.products-page .filter-section-title {
  align-items: center;
  color: #202a35;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  padding: 0 0 15px;
}

.products-page .filter-section-title span:last-child {
  color: #52615b;
  font-size: 1.05rem;
  transform: translateY(-1px);
}

.products-page .category-tabs.vertical {
  gap: 10px;
}

.products-page .category-tabs.vertical .category-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5d6a66;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  text-align: left;
}

.products-page .category-tabs.vertical .category-button::before {
  width: 17px;
  height: 17px;
  border: 2px solid #dce5e0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 47, 37, 0.04);
  content: "";
}

.products-page .category-tabs.vertical .category-button.active {
  color: #129567;
}

.products-page .category-tabs.vertical .category-button.active::before {
  border-color: var(--green);
  background:
    linear-gradient(135deg, transparent 58%, #fff 58% 68%, transparent 68%),
    linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%),
    var(--green);
  box-shadow: 0 5px 12px rgba(0, 150, 96, 0.18);
}

.products-page .category-tabs.vertical .category-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.products-page .category-tabs.vertical .category-button > span:last-child {
  color: #4f5d57;
  font-size: 0.82rem;
  font-weight: 800;
}

.products-page .filter-link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  margin-top: 12px;
  padding: 0;
}

.products-page .price-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.products-page .price-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #dfe8e3;
  border-radius: 10px;
  background: #fff;
  color: #697770;
  font-weight: 900;
  padding: 0 11px;
  box-shadow: 0 4px 12px rgba(16, 47, 37, 0.04);
}

.products-page .price-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #23302a;
  font: inherit;
  outline: 0;
}

.products-page .price-field input[type="number"] {
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}

.products-page .price-field input[type="number"]::-webkit-inner-spin-button,
.products-page .price-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.products-page .price-field input::placeholder {
  color: #8b9892;
  opacity: 1;
}

.products-page .range-separator {
  color: #b7c3bd;
  font-weight: 900;
}

.products-page .price-range-control {
  --range-min: 0%;
  --range-max: 100%;
  position: relative;
  height: 30px;
  margin-top: 15px;
}

.products-page .price-range-rail {
  position: absolute;
  top: 12px;
  right: 8px;
  left: 8px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e2;
}

.products-page .price-range-rail span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--range-min);
  right: calc(100% - var(--range-max));
  border-radius: inherit;
  background: linear-gradient(90deg, #1cc08a, #069467);
}

.products-page .price-range-control input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.products-page .price-range-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.products-page .price-range-control input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.products-page .price-range-control input[type="range"]::-webkit-slider-thumb {
  width: 21px;
  height: 21px;
  border: 3px solid #62ceb0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 13px rgba(0, 150, 96, 0.2);
  pointer-events: auto;
  transform: translateY(-8px);
  -webkit-appearance: none;
  appearance: none;
}

.products-page .price-range-control input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 3px solid #62ceb0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 13px rgba(0, 150, 96, 0.2);
  pointer-events: auto;
}

.products-page .price-range-control input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(0, 150, 96, 0.14), 0 5px 13px rgba(0, 150, 96, 0.2);
}

.products-page .price-range-control input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(0, 150, 96, 0.14), 0 5px 13px rgba(0, 150, 96, 0.2);
}

.products-page .discount-filter-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.products-page .discount-filter {
  min-width: 0;
  min-height: 38px;
  border: 1px solid #dfe8e3;
  border-radius: 9px;
  background: #fff;
  color: #74817b;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 4px;
  box-shadow: 0 4px 10px rgba(16, 47, 37, 0.03);
}

.products-page .discount-filter.active {
  border-color: rgba(0, 150, 96, 0.36);
  background: #e5f8f0;
  color: var(--green);
  box-shadow: 0 8px 16px rgba(0, 150, 96, 0.1);
}

.products-page .rating-filter-group {
  display: grid;
  gap: 7px;
}

.products-page .rating-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border: 1px solid #dfe8e3;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0 12px;
  text-align: left;
}

.products-page .rating-filter span {
  color: #7b8983;
  font-weight: 800;
}

.products-page .rating-filter.active {
  border-color: rgba(0, 150, 96, 0.32);
  background: #eefaf4;
  color: var(--green);
}

.products-page .source-choice-grid {
  gap: 14px;
}

.products-page .source-choice {
  grid-template-columns: 27px minmax(0, 1fr);
  min-height: 92px;
  border-color: rgba(0, 150, 96, 0.24);
  border-radius: 20px;
  background: #e7f7ef;
  padding: 18px;
}

.products-page .source-choice input {
  width: 27px;
  height: 27px;
  min-height: 27px;
}

.products-page .source-choice strong {
  color: #07111f;
  font-size: 1.04rem;
  font-weight: 900;
}

.products-page .source-choice small {
  color: #63746e;
  font-size: 0.84rem;
}

.products-page .filter-trust-card {
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  background: #eaf8f0;
  color: #0f6b50;
  margin-top: 6px;
  padding: 18px 14px;
}

.products-page .filter-trust-card .status-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: #d5f4e6;
}

.products-page .filter-trust-card .status-dot::after {
  width: 14px;
  height: 14px;
}

.products-page .filter-trust-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
}

.products-page .filter-trust-card p {
  color: #4d6a61;
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .products-page .filter-panel {
    border-radius: 20px;
  }
}

@media (max-width: 720px) {
  .products-page .filter-panel {
    grid-template-columns: 1fr;
  }

  .products-page .discount-filter-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .products-page .source-choice {
    min-height: 82px;
  }
}

/* Responsive hardening */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.page-body .topbar,
.page-body .dashboard-main,
.page-body .page-main {
  max-width: calc(100vw - 16px);
}

.page-body .topbar *,
.page-body .dashboard-main *,
.page-body .page-main * {
  min-width: 0;
}

@media (max-width: 980px) {
  .page-body .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100% - 20px, 1360px);
  }

  .page-body .top-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .page-body .top-nav a {
    flex: 0 0 auto;
  }

  .page-body .topbar-actions {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .page-body .page-intro {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 26px;
  }

  .page-body .page-intro img {
    justify-self: end;
    width: min(180px, 44vw);
  }
}

@media (max-width: 720px) {
  .page-body .dashboard-main,
  .page-body .page-main {
    width: min(100% - 20px, 1360px);
    padding-inline: 0;
  }

  .page-body .topbar-brand small,
  .page-body .user-chip small {
    display: none;
  }

  .page-body .topbar-actions {
    gap: 8px;
  }

  .page-body .nav-button,
  .page-body .icon-action,
  .page-body .user-chip {
    flex: 0 0 auto;
  }

  .products-page .products-area .toolbar {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .products-page .products-count {
    justify-self: start;
  }

  .products-page .products-area .toolbar select,
  .products-page .page-size-control select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-body .topbar {
    width: min(100% - 12px, 1360px);
    padding: 12px;
  }

  .page-body .topbar-brand strong {
    font-size: 1.18rem;
  }

  .page-body .page-intro {
    padding: 20px;
  }

  .products-page .filter-panel,
  .products-page .products-area {
    border-radius: 18px;
  }

  .products-page .discount-filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 340px) {
  .products-page .price-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .products-page .range-separator {
    display: none;
  }
}

/* Login reference refinement */
.login-screen {
  position: relative;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 9% 52%, rgba(0, 150, 96, 0.22), transparent 8%),
    radial-gradient(circle at 91% 84%, rgba(0, 150, 96, 0.2), transparent 7%),
    radial-gradient(circle at 50% 4%, rgba(202, 239, 224, 0.86), transparent 36%),
    linear-gradient(180deg, #f6fbf8 0%, #eef8f3 100%);
}

.login-screen::before,
.login-screen::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.login-screen::before {
  top: 84px;
  left: 0;
  width: 260px;
  height: 220px;
  background-image: radial-gradient(rgba(0, 150, 96, 0.24) 1.7px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0.42;
}

.login-screen::after {
  right: 0;
  bottom: 210px;
  width: 250px;
  height: 210px;
  background-image: radial-gradient(rgba(0, 150, 96, 0.18) 1.7px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0.42;
}

.login-shell {
  min-height: 100dvh;
  padding: clamp(14px, 2.4vw, 36px);
}

.login-card {
  isolation: isolate;
  grid-template-columns: minmax(0, 1.42fr) minmax(420px, 0.76fr);
  width: min(1500px, calc(100vw - 120px));
  min-height: min(800px, calc(100dvh - 80px));
  max-height: none;
  border: 1px solid rgba(24, 57, 46, 0.13);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 249, 0.96)),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  box-shadow: 0 34px 92px rgba(18, 80, 60, 0.16);
}

.login-showcase {
  min-height: min(800px, calc(100dvh - 80px));
  overflow: hidden;
  border-right: 0;
  gap: 20px;
  background:
    radial-gradient(circle at 81% 17%, rgba(0, 150, 96, 0.09), transparent 14%),
    radial-gradient(circle at 95% 74%, rgba(0, 150, 96, 0.11), transparent 25%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(238, 249, 244, 0.38));
  padding: clamp(34px, 4vw, 54px);
}

.login-showcase::before {
  position: absolute;
  right: 9%;
  top: 16%;
  z-index: 1;
  width: 26px;
  height: 26px;
  background: rgba(0, 150, 96, 0.09);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  content: "";
}

.login-showcase::after {
  right: -140px;
  bottom: -150px;
  z-index: 0;
  width: 620px;
  height: 620px;
  background: rgba(0, 150, 96, 0.09);
}

.login-showcase .login-logo {
  justify-self: start;
  gap: 10px;
}

.login-logo-mark {
  width: 58px;
  height: 48px;
  background-position: 61% 82%;
  background-size: 175px auto;
}

.login-showcase .login-logo strong {
  font-size: clamp(1.65rem, 2vw, 2.25rem);
}

.login-showcase-copy {
  max-width: 650px;
  margin-top: clamp(16px, 2.5vh, 28px);
}

.login-showcase-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dff4e9;
  color: #069467;
  font-size: 0.92rem;
  padding: 10px 18px;
}

.login-showcase-copy > span::before {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
  font-size: 0.62rem;
  line-height: 1;
  content: "";
}

.login-showcase-copy h2 {
  max-width: 700px;
  color: #101820;
  font-size: clamp(2.85rem, 4.1vw, 4.75rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
}

.login-showcase-copy h2 span {
  color: var(--green);
}

.login-showcase-copy p {
  max-width: 600px;
  color: #43524e;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  line-height: 1.45;
}

.login-showcase-grid {
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  max-width: 540px;
  margin-top: 4px;
}

.login-showcase-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  border-color: rgba(24, 57, 46, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 44px rgba(24, 91, 66, 0.08);
  padding: 16px;
}

.login-showcase-grid article::before {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 999px;
  background: #dff4e9;
  color: var(--green);
  font-weight: 900;
  content: "";
}

.login-showcase-grid article:nth-child(1)::before {
  content: "%";
}

.login-showcase-grid article:nth-child(2)::before {
  content: "30";
  font-size: 0.72rem;
}

.login-showcase-grid article:nth-child(3)::before {
  content: "!";
}

.login-showcase-grid strong {
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
}

.login-showcase-grid span {
  margin: 0;
  color: #35413f;
  font-size: 0.87rem;
  line-height: 1.35;
}

.login-security {
  z-index: 3;
  align-self: end;
  width: min(390px, 58%);
  min-height: 86px;
  border-radius: 18px;
  background: rgba(234, 248, 240, 0.86);
  box-shadow: 0 16px 34px rgba(24, 91, 66, 0.08);
  padding: 16px 18px;
}

.login-security strong {
  font-size: 1rem;
}

.login-security p {
  color: #5f6d69;
  font-size: 0.88rem;
  line-height: 1.35;
}

.login-panda {
  z-index: 2;
  right: -10px;
  bottom: -16px;
  width: clamp(330px, 31vw, 500px);
  height: clamp(290px, 28vw, 440px);
  background-position: 66% 100%;
  background-size: clamp(520px, 43vw, 720px) auto;
}

.login-panel {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(28px, 3vw, 44px) clamp(34px, 4vw, 58px) clamp(28px, 3vw, 44px) 8px;
}

.login-form-card {
  width: min(100%, 500px);
  min-height: 0;
  border: 1px solid rgba(24, 57, 46, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 80px rgba(20, 72, 54, 0.13);
  padding: clamp(34px, 3.4vw, 48px);
}

.login-panel .login-header h1 {
  max-width: 380px;
  font-size: clamp(2.85rem, 3.35vw, 4rem);
  line-height: 1.02;
}

.login-panel .login-header p {
  max-width: 400px;
  color: #4f5f5b;
  font-size: 0.98rem;
  line-height: 1.55;
}

.login-panel .login-form {
  max-width: none;
  gap: 15px;
  margin-top: 24px;
}

.login-input-shell {
  min-height: 56px;
  border-color: #dfe8e3;
  border-radius: 12px;
  padding: 0 16px;
}

.login-input-shell input {
  min-height: 54px;
}

.forgot-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #52615b;
  text-decoration: none;
}

.forgot-link::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  content: "✓";
}

.login-submit {
  min-height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1ac78d, #059669);
  box-shadow: 0 16px 32px rgba(0, 150, 96, 0.2);
}

.login-submit svg {
  width: 21px;
  height: 21px;
}

.login-divider {
  max-width: none;
  margin: 24px 0 18px;
}

.create-account-button {
  max-width: none;
  min-height: 56px;
  border-color: #dfe8e3;
  border-radius: 12px;
}

.google-login-button {
  max-width: none;
}

.guest-link {
  justify-self: center;
  margin-top: 16px;
  color: var(--green);
  font-size: 0.94rem;
}

@media (max-width: 1260px) {
  .login-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    width: min(1180px, calc(100vw - 56px));
  }

  .login-showcase {
    padding: 44px;
  }

  .login-showcase-copy h2 {
    font-size: clamp(2.7rem, 4.8vw, 4.4rem);
  }

  .login-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 500px;
  }

  .login-panda {
    right: -80px;
  }
}

@media (max-width: 980px) {
  .login-card {
    grid-template-columns: 1fr;
    width: min(680px, calc(100vw - 28px));
    min-height: auto;
  }

  .login-showcase {
    min-height: 360px;
    border-bottom: 1px solid rgba(24, 57, 46, 0.08);
    padding: 34px;
  }

  .login-showcase .login-logo {
    display: inline-flex;
  }

  .login-showcase-copy {
    max-width: 390px;
    margin-top: 18px;
  }

  .login-showcase-copy h2 {
    max-width: 390px;
    font-size: 2.65rem;
  }

  .login-showcase-grid,
  .login-security {
    display: none;
  }

  .login-panda {
    right: -56px;
    bottom: -46px;
    width: 310px;
    height: 250px;
    background-size: 460px auto;
  }

  .login-panel {
    padding: 26px;
  }

  .login-form-card {
    min-height: auto;
    padding: 38px;
  }

  .login-logo-mobile {
    display: none;
  }

  .login-panel .login-header {
    text-align: left;
  }

  .login-panel .login-header p {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .login-screen::before {
    width: 180px;
    height: 160px;
  }

  .login-shell {
    padding: 10px;
  }

  .login-card {
    width: 100%;
    border-radius: 20px;
  }

  .login-showcase {
    min-height: 310px;
    padding: 26px 22px;
  }

  .login-logo-mark {
    width: 48px;
    height: 42px;
    background-size: 148px auto;
  }

  .login-logo strong {
    font-size: 1.65rem;
  }

  .login-showcase-copy > span {
    font-size: 0.75rem;
    padding: 8px 11px;
  }

  .login-showcase-copy h2 {
    max-width: 310px;
    font-size: 2.22rem;
  }

  .login-showcase-copy p {
    max-width: 300px;
    font-size: 0.92rem;
  }

  .login-panda {
    right: -82px;
    bottom: -56px;
    width: 280px;
    height: 235px;
    background-size: 420px auto;
  }

  .login-panel {
    padding: 0;
  }

  .login-form-card {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding: 30px 24px 34px;
  }

  .login-panel .login-header h1 {
    font-size: 2.35rem;
  }

  .login-input-shell,
  .login-submit,
  .create-account-button {
    min-height: 54px;
  }
}

/* Login downloaded artwork */
.login-screen .login-card {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 47%, rgba(246, 252, 249, 0.76) 100%),
    url("./assets/garimpanda-login-bg.png") center bottom / cover no-repeat;
}

.login-screen .login-showcase {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(232, 249, 241, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(222, 244, 232, 0.26));
}

.login-screen .login-logo {
  width: clamp(220px, 20vw, 330px);
  height: clamp(56px, 5.1vw, 82px);
  background: url("./assets/garimpanda-logo-wide.png") left center / contain no-repeat;
}

.login-screen .login-logo-mark,
.login-screen .login-logo strong {
  display: none;
}

.login-screen .login-panda {
  right: clamp(-38px, 1.6vw, 26px);
  bottom: -18px;
  width: clamp(340px, 30vw, 500px);
  height: clamp(310px, 30vw, 500px);
  background: url("./assets/garimpanda-panda-cutout.png") center bottom / contain no-repeat;
}

@media (max-width: 1260px) {
  .login-screen .login-panda {
    right: -76px;
    width: clamp(300px, 32vw, 410px);
    height: clamp(285px, 32vw, 410px);
  }
}

@media (max-width: 980px) {
  .login-screen .login-logo {
    width: 250px;
    height: 64px;
  }

  .login-screen .login-panda {
    right: -68px;
    bottom: -48px;
    width: 310px;
    height: 310px;
  }
}

@media (max-width: 560px) {
  .login-screen .login-logo {
    width: 210px;
    height: 54px;
  }

  .login-screen .login-panda {
    right: -95px;
    bottom: -58px;
    width: 285px;
    height: 285px;
  }
}

/* Login premium composition */
.login-screen {
  background:
    radial-gradient(circle at 8% 48%, rgba(0, 150, 96, 0.18), transparent 8%),
    radial-gradient(circle at 91% 82%, rgba(0, 150, 96, 0.16), transparent 7%),
    radial-gradient(circle at 50% -4%, rgba(210, 244, 230, 0.95), transparent 36%),
    linear-gradient(180deg, #f8fcfa 0%, #eef8f3 100%);
}

.login-screen .login-card {
  grid-template-columns: minmax(0, 1.22fr) minmax(400px, 0.78fr);
  width: min(1480px, calc(100vw - 96px));
  min-height: min(790px, calc(100dvh - 72px));
  overflow: hidden;
  border-color: rgba(13, 74, 53, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 49%, rgba(238, 250, 243, 0.72) 100%),
    url("./assets/garimpanda-login-bg.png") center bottom / cover no-repeat;
  box-shadow:
    0 34px 92px rgba(18, 80, 60, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-screen .login-showcase {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: min(790px, calc(100dvh - 72px));
  padding: clamp(38px, 4vw, 62px) clamp(38px, 4.4vw, 74px);
}

.login-screen .login-showcase::before {
  right: 16%;
  top: 16%;
  z-index: 1;
  background: rgba(0, 150, 96, 0.12);
}

.login-screen .login-showcase::after {
  right: -168px;
  bottom: -176px;
  width: min(52vw, 700px);
  height: min(52vw, 700px);
  background:
    radial-gradient(circle at 45% 45%, rgba(0, 150, 96, 0.14), transparent 58%),
    radial-gradient(circle at 62% 70%, rgba(26, 199, 141, 0.14), transparent 54%);
}

.login-screen .login-logo {
  position: relative;
  z-index: 5;
  width: clamp(238px, 18vw, 330px);
  height: clamp(58px, 4.9vw, 82px);
  filter: drop-shadow(0 12px 22px rgba(17, 73, 54, 0.08));
}

.login-screen .login-showcase-copy {
  position: relative;
  z-index: 5;
  max-width: min(630px, 86%);
  margin-top: clamp(18px, 3vh, 34px);
}

.login-screen .login-showcase-copy > span {
  border: 1px solid rgba(0, 150, 96, 0.09);
  border-radius: 999px;
  background: rgba(214, 244, 229, 0.88);
  box-shadow: 0 14px 28px rgba(22, 93, 68, 0.06);
}

.login-screen .login-showcase-copy h2 {
  max-width: 610px;
  color: #101820;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.94);
}

.login-screen .login-showcase-copy p {
  max-width: 540px;
  color: #354641;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.82);
}

.login-screen .login-showcase-grid {
  position: relative;
  z-index: 5;
  grid-template-columns: repeat(3, minmax(0, 124px));
  gap: 14px;
  max-width: 400px;
  margin-top: clamp(18px, 2.4vh, 30px);
}

.login-screen .login-showcase-grid article {
  min-height: 122px;
  border: 1px solid rgba(20, 86, 63, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 252, 249, 0.84));
  box-shadow:
    0 18px 42px rgba(24, 91, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.login-screen .login-showcase-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 150, 96, 0.2);
  box-shadow:
    0 24px 52px rgba(24, 91, 66, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-screen .login-showcase-grid article::before {
  box-shadow: 0 10px 22px rgba(0, 150, 96, 0.1);
}

.login-screen .login-security {
  z-index: 5;
  width: min(350px, 46%);
  border: 1px solid rgba(20, 86, 63, 0.08);
  background: rgba(239, 250, 244, 0.9);
  backdrop-filter: blur(16px);
}

.login-screen .login-panda {
  z-index: 2;
  right: clamp(-8px, 0.6vw, 14px);
  bottom: 0;
  width: clamp(336px, 26vw, 390px);
  height: clamp(336px, 26vw, 390px);
  filter: drop-shadow(0 32px 42px rgba(20, 72, 54, 0.18));
}

.login-screen .login-panel {
  position: relative;
  z-index: 6;
  padding: clamp(30px, 3.2vw, 52px) clamp(30px, 4vw, 62px) clamp(30px, 3.2vw, 52px) 12px;
}

.login-screen .login-form-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(13, 74, 53, 0.11);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 30px 84px rgba(20, 72, 54, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-screen .login-form-card::before {
  position: absolute;
  top: -58px;
  right: -56px;
  width: 190px;
  height: 190px;
  background: url("./assets/garimpanda-panda-face.png") center / contain no-repeat;
  opacity: 0.055;
  content: "";
  pointer-events: none;
}

.login-screen .login-form-card > * {
  position: relative;
  z-index: 1;
}

.login-screen .login-panel .login-header h1 {
  color: #101820;
  text-wrap: balance;
}

.login-screen .login-input-shell,
.login-screen .google-login-button,
.login-screen .create-account-button {
  border-color: rgba(24, 57, 46, 0.12);
  box-shadow: 0 10px 24px rgba(20, 37, 31, 0.04);
}

.login-screen .login-form-card .google-login-button,
.login-screen .login-form-card .create-account-button {
  display: flex;
  width: 100%;
  max-width: none;
}

.login-screen .login-form-card .guest-link {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

@media (max-width: 1280px) {
  .login-screen .login-card {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
    width: min(1200px, calc(100vw - 48px));
  }

  .login-screen .login-showcase {
    padding: 42px;
  }

  .login-screen .login-showcase-copy {
    max-width: min(520px, 76%);
  }

  .login-screen .login-showcase-copy h2 {
    font-size: clamp(2.55rem, 4.2vw, 3.65rem);
    line-height: 0.98;
  }

  .login-screen .login-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 320px;
  }

  .login-screen .login-security {
    width: min(350px, 46%);
  }

  .login-screen .login-panda {
    right: 0;
    bottom: 8px;
    width: clamp(300px, 27vw, 335px);
    height: clamp(300px, 27vw, 335px);
  }
}

@media (max-width: 1080px) {
  .login-screen .login-card {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 28px));
    min-height: auto;
  }

  .login-screen .login-showcase {
    min-height: 500px;
    padding: 34px;
  }

  .login-screen .login-showcase-copy {
    max-width: min(390px, calc(100% - 132px));
  }

  .login-screen .login-showcase-copy h2 {
    font-size: clamp(2.35rem, 6.2vw, 3.1rem);
  }

  .login-screen .login-showcase-grid,
  .login-screen .login-security {
    display: grid;
  }

  .login-screen .login-security {
    display: none;
  }

  .login-screen .login-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(100%, 400px);
    margin-top: 18px;
  }

  .login-screen .login-security {
    width: min(390px, calc(100% - 190px));
    margin-top: 18px;
  }

  .login-screen .login-panda {
    right: 0;
    bottom: 0;
    width: 290px;
    height: 290px;
  }

  .login-screen .login-panel {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .login-screen .login-card {
    width: 100%;
    border-radius: 24px;
  }

  .login-screen .login-showcase {
    min-height: 470px;
    padding: 26px 22px;
  }

  .login-screen .login-showcase-copy {
    max-width: calc(100% - 76px);
    margin-top: 18px;
  }

  .login-screen .login-showcase-copy > span {
    max-width: 100%;
  }

  .login-screen .login-showcase-copy h2 {
    max-width: 320px;
    font-size: clamp(2.05rem, 9vw, 2.55rem);
  }

  .login-screen .login-showcase-copy p {
    max-width: 310px;
  }

  .login-screen .login-showcase-grid {
    grid-template-columns: 1fr 1fr;
    max-width: min(100%, 330px);
  }

  .login-screen .login-showcase-grid article:nth-child(3) {
    display: none;
  }

  .login-screen .login-security {
    display: none;
  }

  .login-screen .login-panda {
    right: -58px;
    bottom: 6px;
    width: 270px;
    height: 270px;
  }

  .login-screen .login-panel {
    padding: 0;
  }

  .login-screen .login-form-card {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .login-screen .login-showcase {
    min-height: 445px;
  }

  .login-screen .login-logo {
    width: 190px;
    height: 50px;
  }

  .login-screen .login-showcase-copy {
    max-width: 100%;
    padding-right: 72px;
  }

  .login-screen .login-showcase-copy p {
    max-width: 280px;
  }

  .login-screen .login-showcase-grid,
  .login-screen .login-security {
    display: none;
  }

  .login-screen .login-panda {
    right: -156px;
    bottom: -22px;
    width: 228px;
    height: 228px;
  }

  .login-screen .login-form-card {
    padding: 30px 22px 34px;
  }
}

/* Premium compact hero for product catalog */
.products-page .page-intro {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  min-height: clamp(230px, 18vw, 300px);
  border-color: rgba(13, 74, 53, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 54%, rgba(25, 190, 133, 0.18), transparent 24%),
    radial-gradient(circle at 94% 20%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 50%, rgba(227, 248, 238, 0.72) 100%),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  box-shadow:
    0 26px 78px rgba(20, 72, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: clamp(26px, 3.2vw, 42px) clamp(26px, 4.4vw, 56px);
}

.products-page .page-intro::after {
  position: absolute;
  right: min(41%, 540px);
  top: 30px;
  z-index: 1;
  width: 32px;
  height: 32px;
  background: rgba(0, 150, 96, 0.14);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  content: "";
}

.products-page .page-intro > div {
  position: relative;
  z-index: 2;
  max-width: min(700px, 56%);
}

.products-page .page-intro .hero-kicker {
  border: 1px solid rgba(0, 150, 96, 0.1);
  background: rgba(214, 244, 229, 0.92);
  box-shadow: 0 12px 26px rgba(22, 93, 68, 0.06);
}

.products-page .page-intro h1 {
  margin-top: 18px;
  font-size: clamp(3.25rem, 6vw, 6.1rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.products-page .page-intro p {
  max-width: 560px;
  margin-top: 12px;
  color: #586a64;
  font-size: clamp(1rem, 1.1vw, 1.16rem);
  line-height: 1.45;
}

.products-page .page-intro img {
  position: absolute;
  right: clamp(64px, 8vw, 128px);
  bottom: 12px;
  z-index: 2;
  width: clamp(230px, 18vw, 310px);
  height: clamp(230px, 18vw, 310px);
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 38px rgba(20, 72, 54, 0.18));
}

@media (max-width: 980px) {
  .products-page .page-intro {
    grid-template-columns: 1fr;
    min-height: 230px;
    padding: 26px;
  }

  .products-page .page-intro::after {
    right: 38%;
    top: 24px;
  }

  .products-page .page-intro > div {
    max-width: calc(100% - 330px);
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.85rem, 9vw, 5rem);
  }

  .products-page .page-intro img {
    right: 42px;
    bottom: 12px;
    width: clamp(190px, 29vw, 250px);
    height: clamp(190px, 29vw, 250px);
  }
}

@media (max-width: 640px) {
  .products-page .page-intro {
    min-height: 220px;
    padding: 22px;
  }

  .products-page .page-intro::after {
    display: none;
  }

  .products-page .page-intro > div {
    max-width: min(330px, calc(100% - 198px));
  }

  .products-page .page-intro h1 {
    margin-top: 14px;
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .products-page .page-intro p {
    max-width: 280px;
    font-size: 0.95rem;
  }

  .products-page .page-intro img {
    right: -4px;
    bottom: 10px;
    width: 176px;
    height: 176px;
  }
}

@media (max-width: 430px) {
  .products-page .page-intro {
    min-height: 202px;
    padding: 20px;
  }

  .products-page .page-intro > div {
    max-width: calc(100% - 114px);
  }

  .products-page .page-intro .hero-kicker {
    font-size: 0.74rem;
    padding: 8px 12px;
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.35rem, 14vw, 3.25rem);
  }

  .products-page .page-intro p {
    max-width: 230px;
    font-size: 0.9rem;
  }

  .products-page .page-intro img {
    right: -42px;
    bottom: 8px;
    width: 150px;
    height: 150px;
  }
}

/* Shared internal page heroes without double artwork backgrounds */
.page-body:not(.products-page) .page-intro {
  isolation: isolate;
  min-height: clamp(210px, 18vw, 280px);
  border-color: rgba(13, 74, 53, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 52%, rgba(25, 190, 133, 0.16), transparent 24%),
    radial-gradient(circle at 96% 18%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 50%, rgba(227, 248, 238, 0.72) 100%),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  box-shadow:
    0 26px 78px rgba(20, 72, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: clamp(26px, 3.2vw, 42px) clamp(26px, 4.2vw, 54px);
}

.page-body:not(.products-page) .split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
}

.page-body:not(.products-page) .split-intro > div,
.page-body:not(.products-page) .compact-intro > div {
  position: relative;
  z-index: 2;
  max-width: min(760px, 58%);
}

.page-body:not(.products-page) .split-intro img {
  position: absolute;
  right: clamp(60px, 8vw, 128px);
  bottom: 8px;
  z-index: 2;
  width: clamp(210px, 17vw, 300px);
  height: clamp(210px, 17vw, 300px);
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 38px rgba(20, 72, 54, 0.18));
}

.page-body:not(.products-page) .split-intro::after,
.page-body:not(.products-page) .compact-intro::after {
  position: absolute;
  right: min(41%, 540px);
  top: 30px;
  z-index: 1;
  width: 32px;
  height: 32px;
  background: rgba(0, 150, 96, 0.14);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  content: "";
}

.page-body:not(.products-page) .page-intro .hero-kicker {
  border: 1px solid rgba(0, 150, 96, 0.1);
  background: rgba(214, 244, 229, 0.92);
  box-shadow: 0 12px 26px rgba(22, 93, 68, 0.06);
}

.page-body:not(.products-page) .page-intro h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 3.9vw, 4.25rem);
  line-height: 0.95;
}

.page-body:not(.products-page) .page-intro p {
  max-width: 640px;
  margin-top: 12px;
  color: #586a64;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.45;
}

.alerts-page .compact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
}

.alerts-page .compact-intro > div {
  max-width: 760px;
}

.alerts-page .intro-status {
  position: relative;
  z-index: 2;
}

.alerts-page .intro-status div {
  border-color: rgba(0, 150, 96, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(20, 72, 54, 0.08);
  backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
  .page-body:not(.products-page) .page-intro,
  .page-body:not(.products-page) .compact-intro {
    min-height: 220px;
    padding: 26px;
  }

  .page-body:not(.products-page) .split-intro,
  .alerts-page .compact-intro {
    grid-template-columns: 1fr;
  }

  .page-body:not(.products-page) .split-intro > div {
    max-width: calc(100% - 300px);
  }

  .page-body:not(.products-page) .compact-intro > div,
  .alerts-page .compact-intro > div {
    max-width: 100%;
  }

  .page-body:not(.products-page) .split-intro img {
    right: 34px;
    bottom: 10px;
    width: clamp(190px, 29vw, 250px);
    height: clamp(190px, 29vw, 250px);
  }
}

@media (max-width: 640px) {
  .page-body:not(.products-page) .page-intro {
    min-height: 220px;
    padding: 22px;
  }

  .page-body:not(.products-page) .split-intro > div {
    max-width: min(330px, calc(100% - 188px));
  }

  .page-body:not(.products-page) .split-intro::after,
  .page-body:not(.products-page) .compact-intro::after {
    display: none;
  }

  .page-body:not(.products-page) .page-intro h1 {
    font-size: clamp(2.25rem, 10vw, 3.65rem);
  }

  .page-body:not(.products-page) .page-intro p {
    max-width: 290px;
    font-size: 0.95rem;
  }

  .page-body:not(.products-page) .split-intro img {
    right: -10px;
    bottom: 10px;
    width: 176px;
    height: 176px;
  }
}

@media (max-width: 430px) {
  .page-body:not(.products-page) .page-intro {
    min-height: 206px;
    padding: 20px;
  }

  .page-body:not(.products-page) .split-intro > div {
    max-width: calc(100% - 112px);
  }

  .page-body:not(.products-page) .page-intro .hero-kicker {
    font-size: 0.74rem;
    padding: 8px 12px;
  }

  .page-body:not(.products-page) .page-intro h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .page-body:not(.products-page) .page-intro p {
    max-width: 230px;
    font-size: 0.9rem;
  }

  .page-body:not(.products-page) .split-intro img {
    right: -46px;
    bottom: 8px;
    width: 150px;
    height: 150px;
  }
}

/* Product filters responsive pass */
.products-page .monitor-console,
.products-page .filter-panel,
.products-page .products-area,
.products-page .products-area .toolbar,
.products-page .product-grid {
  max-width: 100%;
}

.products-page .filter-panel {
  align-self: start;
  width: 100%;
  overflow: clip;
}

.products-page .filter-panel select,
.products-page .price-field input,
.products-page .products-area select,
.products-page .products-area input {
  min-width: 0;
  text-overflow: ellipsis;
}

.products-page .compact-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  line-height: 1.25;
}

.products-page .compact-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.products-page .topbar-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-page .filter-trust-card,
.products-page .field-group {
  min-width: 0;
}

.products-page .source-filter-section .compact-source-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.products-page .source-filter-section .compact-source-choice {
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 58px;
  border-radius: 14px;
  padding: 12px;
}

.products-page .source-filter-section .compact-source-choice input {
  width: 22px;
  height: 22px;
  min-height: 22px;
}

.products-page .source-filter-section .compact-source-choice strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.products-page .source-filter-section .compact-source-choice small {
  font-size: 0.76rem;
  line-height: 1.2;
}

.products-page .source-filter-section .compact-toggle {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .products-page .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0;
  }

  .products-page .filter-heading,
  .products-page .filter-trust-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .products-page .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-body .topbar {
    width: calc(100% - 16px);
    max-width: calc(100vw - 16px);
    overflow: visible;
  }

  .page-body .top-nav {
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .page-body .top-nav a {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 9px 8px;
    text-align: center;
  }

  .page-body .topbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 8px;
    overflow: visible;
  }

  .products-page .topbar-actions .nav-button {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
  }

  .products-page .topbar-actions .user-chip {
    width: 42px;
    min-width: 42px;
    justify-content: center;
    padding: 0;
  }

  .products-page .topbar-actions .user-chip > span:not(.avatar) {
    display: none;
  }

  .products-page .page-intro {
    min-height: 194px;
  }

  .products-page .page-intro > div {
    max-width: calc(100% - 136px);
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.05rem);
    overflow-wrap: normal;
  }

  .products-page .page-intro p {
    max-width: 260px;
  }

  .products-page .page-intro img {
    right: 4px;
    width: 136px;
    height: 136px;
  }

  .products-page .filter-panel {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .products-page .filter-section {
    padding: 16px 0;
  }

  .products-page .category-tabs.vertical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .products-page .category-tabs.vertical .category-button {
    min-height: 38px;
    border: 1px solid #e3ebe7;
    border-radius: 10px;
    background: #fff;
    padding: 0 9px;
  }

  .products-page .category-tabs.vertical .category-button.active {
    border-color: rgba(0, 150, 96, 0.28);
    background: #eefaf4;
  }

  .products-page .price-input-row {
    grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr);
    gap: 7px;
  }

  .products-page .price-field {
    min-height: 48px;
    padding-inline: 9px;
  }

  .products-page .price-field,
  .products-page .price-field input {
    font-size: 0.84rem;
  }

  .products-page .price-range-control {
    margin-top: 12px;
  }

  .products-page .rating-filter {
    min-height: 35px;
    padding-inline: 10px;
  }

  .products-page .source-filter-section .compact-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .products-page .page-intro {
    min-height: 188px;
    padding: 18px;
  }

  .products-page .page-intro > div {
    max-width: calc(100% - 118px);
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.05rem, 10.4vw, 2.65rem);
  }

  .products-page .page-intro p {
    max-width: 220px;
    font-size: 0.88rem;
  }

  .products-page .page-intro img {
    right: 0;
    bottom: 8px;
    width: 122px;
    height: 122px;
  }

  .products-page .filter-panel {
    padding-inline: 14px;
  }

  .products-page .discount-filter-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .products-page .discount-filter {
    min-height: 34px;
    font-size: 0.72rem;
  }

.products-page .source-filter-section .compact-source-choice {
    padding: 10px;
  }
}

/* Product cards/list view switch */
.products-page .view-toggle {
  display: flex;
}

.products-page .view-toggle button {
  cursor: pointer;
}

.products-page .view-toggle button:focus-visible {
  outline: 3px solid rgba(0, 150, 96, 0.22);
  outline-offset: 2px;
}

.products-page .product-grid.product-list-view {
  grid-template-columns: 1fr;
  gap: 14px;
}

.products-page .product-grid.product-list-view .product-card {
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  border-radius: 18px;
}

.products-page .product-grid.product-list-view .product-card:hover {
  transform: translateY(-2px);
}

.products-page .product-grid.product-list-view .product-image-link {
  min-height: 190px;
  height: 100%;
  padding: 18px;
}

.products-page .product-grid.product-list-view .product-image {
  max-height: 152px;
}

.products-page .product-grid.product-list-view .product-body {
  grid-template-columns: minmax(0, 1fr) minmax(164px, auto);
  grid-template-rows: auto auto auto auto;
  column-gap: 20px;
  align-content: center;
  padding: 18px;
}

.products-page .product-grid.product-list-view .product-meta {
  position: static;
  grid-column: 1 / -1;
  justify-content: flex-start;
  order: -1;
}

.products-page .product-grid.product-list-view .source-badge {
  display: inline-flex;
  max-width: none;
}

.products-page .product-grid.product-list-view .product-title,
.products-page .product-grid.product-list-view .product-seller,
.products-page .product-grid.product-list-view .product-note,
.products-page .product-grid.product-list-view .product-rating {
  grid-column: 1;
}

.products-page .product-grid.product-list-view .product-title {
  min-height: 0;
  font-size: 1.05rem;
  -webkit-line-clamp: 2;
}

.products-page .product-grid.product-list-view .product-note {
  min-height: 0;
  -webkit-line-clamp: 1;
}

.products-page .product-grid.product-list-view .price-row {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  text-align: right;
}

.products-page .product-grid.product-list-view .product-actions {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  justify-self: end;
  min-width: 220px;
}

@media (max-width: 720px) {
  .products-page .product-grid.product-list-view .product-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .products-page .product-grid.product-list-view .product-image-link {
    min-height: 170px;
    padding: 14px;
  }

  .products-page .product-grid.product-list-view .product-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }

  .products-page .product-grid.product-list-view .price-row,
  .products-page .product-grid.product-list-view .product-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    text-align: left;
  }

  .products-page .product-grid.product-list-view .product-actions {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .products-page .product-grid.product-list-view .product-card {
    grid-template-columns: 1fr;
  }

  .products-page .product-grid.product-list-view .product-image-link {
    min-height: 200px;
  }
}

/* Product card global sizing refinement */
.products-page {
  --product-card-media-height: clamp(154px, 13vw, 178px);
  --product-card-gap: 7px;
}

.products-page .product-grid.product-card-view {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr));
  align-items: stretch;
  gap: 16px;
}

.products-page .product-grid.product-card-view .product-card {
  grid-template-rows: var(--product-card-media-height) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  border-radius: 20px;
}

.products-page .product-grid.product-card-view .product-image-link {
  min-height: 0;
  height: var(--product-card-media-height);
  padding: 16px 16px 10px;
}

.products-page .product-grid.product-card-view .product-image {
  max-height: calc(var(--product-card-media-height) - 28px);
}

.products-page .product-grid.product-card-view .product-body {
  display: flex;
  flex-direction: column;
  gap: var(--product-card-gap);
  min-height: 0;
  padding: 13px 14px 15px;
}

.products-page .product-grid.product-card-view .product-title {
  display: block;
  min-height: 0;
  overflow: visible;
  color: #0f1a27;
  font-size: 0.9rem;
  line-height: 1.22;
  -webkit-line-clamp: initial;
}

.products-page .product-grid.product-card-view .product-seller {
  min-height: 17px;
  font-size: 0.76rem;
}

.products-page .product-grid.product-card-view .product-note {
  display: block;
  min-height: 0;
  overflow: visible;
  color: #52625b;
  font-size: 0.76rem;
  line-height: 1.32;
  -webkit-line-clamp: initial;
}

.products-page .product-grid.product-card-view .price-row {
  margin-top: 2px;
}

.products-page .product-grid.product-card-view .product-price {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
}

.products-page .product-grid.product-card-view .price-change,
.products-page .product-grid.product-card-view .product-rating {
  font-size: 0.76rem;
}

.products-page .product-grid.product-card-view .product-actions {
  margin-top: auto;
  padding-top: 4px;
}

.products-page .product-grid.product-card-view .product-link,
.products-page .product-grid.product-card-view .product-alert-button {
  min-height: 36px;
}

@media (max-width: 720px) {
  .products-page {
    --product-card-media-height: 164px;
  }

  .products-page .product-grid.product-card-view {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 14px;
  }

  .products-page .product-grid.product-card-view .product-body {
    padding: 13px;
  }
}

@media (max-width: 480px) {
  .products-page {
    --product-card-media-height: 188px;
  }

  .products-page .product-grid.product-card-view {
    grid-template-columns: 1fr;
  }

  .products-page .product-grid.product-card-view .product-title {
    font-size: 0.96rem;
  }
}

/* Header readability and Garimpanda home */
.page-body .topbar {
  width: min(1500px, calc(100% - 36px));
  gap: 18px;
}

.page-body .topbar-brand {
  flex: 1 1 360px;
  min-width: 0;
}

.page-body .topbar-brand > span:last-child {
  min-width: 0;
}

.page-body .topbar-brand small:not(.sr-only) {
  max-width: 470px;
  overflow: visible;
  color: #52615b;
  font-size: 0.84rem;
  line-height: 1.28;
  text-overflow: clip;
  white-space: normal;
}

.page-body .top-nav {
  flex: 0 1 auto;
  min-width: 0;
}

.page-body .top-nav a {
  color: #26322e;
  white-space: nowrap;
}

.page-body .topbar-actions {
  min-width: 0;
}

.page-body .topbar-actions.compact-actions {
  justify-content: flex-end;
}

.home-page .topbar-actions.home-actions {
  justify-content: flex-end;
}

.home-page {
  overflow-x: hidden;
}

.home-page .home-main {
  width: min(1500px, calc(100% - 36px));
  gap: 24px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  min-height: clamp(390px, 36vw, 540px);
  overflow: hidden;
  border: 1px solid rgba(13, 74, 53, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 18%, rgba(22, 185, 126, 0.16), transparent 24%),
    radial-gradient(circle at 12% 84%, rgba(33, 202, 142, 0.12), transparent 24%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 254, 252, 0.96) 48%, rgba(224, 248, 238, 0.9) 100%),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  box-shadow:
    0 30px 90px rgba(20, 72, 54, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  padding: clamp(28px, 4vw, 54px);
}

.home-hero::after {
  position: absolute;
  right: 34%;
  top: 22%;
  width: 34px;
  height: 34px;
  background: rgba(0, 150, 96, 0.14);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  content: "";
}

.home-hero-copy,
.home-hero-visual {
  position: relative;
  z-index: 2;
}

.home-hero-copy {
  max-width: 700px;
}

.home-page .hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(0, 150, 96, 0.12);
  border-radius: 999px;
  background: rgba(214, 244, 229, 0.9);
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 9px 15px;
}

.home-hero h1 {
  max-width: 700px;
  margin-top: 22px;
  color: #101923;
  font-size: clamp(2.75rem, 4.4vw, 4.85rem);
  line-height: 0.94;
}

.home-hero p {
  max-width: 650px;
  margin-top: 18px;
  color: #4f605a;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.5;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero-actions .primary-button,
.home-hero-actions .secondary-button,
.home-cta-actions .primary-button,
.home-cta-actions .secondary-button,
.home-page .topbar-actions .primary-button,
.home-page .topbar-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  margin-top: 30px;
}

.home-stats div {
  min-width: 0;
  border: 1px solid rgba(13, 74, 53, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(20, 72, 54, 0.08);
  padding: 18px;
}

.home-stats dt {
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.home-stats dd {
  margin-top: 8px;
  color: #34433e;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.home-hero-visual {
  display: grid;
  place-items: end center;
  min-height: 360px;
  align-self: stretch;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(180deg, rgba(248, 254, 251, 0.86), rgba(211, 245, 231, 0.7));
}

.home-hero-visual img {
  width: min(470px, 92%);
  height: min(470px, 92%);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 32px 42px rgba(20, 72, 54, 0.18));
}

.hero-float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(13, 74, 53, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #164a38;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: 0 18px 34px rgba(20, 72, 54, 0.1);
  backdrop-filter: blur(12px);
}

.hero-float-card.top {
  left: 24px;
  top: 34px;
}

.hero-float-card.bottom {
  right: 22px;
  bottom: 30px;
}

.home-featured {
  border-color: rgba(13, 74, 53, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(20, 72, 54, 0.1);
  padding: clamp(22px, 3vw, 34px);
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.home-section-heading h2,
.home-cta h2 {
  max-width: 780px;
  margin-top: 10px;
  color: #101923;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.home-section-heading p {
  max-width: 680px;
  margin-top: 8px;
  color: #5a6a65;
  line-height: 1.45;
}

.home-page .product-grid,
.home-page .product-grid.product-list-view,
.home-page .product-grid.product-card-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.home-page .product-card {
  display: grid;
  grid-template-rows: 205px minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(22, 101, 76, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(16, 47, 37, 0.08);
}

.home-page .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 150, 96, 0.24);
  box-shadow: 0 22px 44px rgba(16, 47, 37, 0.12);
}

.home-page .product-image-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 18px 18px 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 150, 96, 0.12), transparent 48%),
    linear-gradient(180deg, #f8fffc 0%, #ffffff 100%);
}

.home-page .product-image {
  width: 100%;
  height: 100%;
  max-height: 176px;
  object-fit: contain;
  padding: 0;
}

.home-page .product-meta {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.home-page .source-badge {
  display: inline-flex;
  min-width: 0;
  max-width: calc(100% - 86px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #53615b;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .change-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 4px 9px;
}

.home-page .product-body {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 9px;
  padding: 14px 14px 15px;
}

.home-page .product-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-page .product-seller {
  overflow: hidden;
  color: #6a7771;
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .product-note {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: #56645e;
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-page .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: start;
}

.home-page .product-price {
  color: var(--green);
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1.08;
}

.home-page .price-change {
  min-height: 18px;
  overflow: hidden;
  color: #8b9792;
  font-size: 0.78rem;
  line-height: 1.2;
  text-decoration: line-through;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .product-rating {
  color: #66766f;
  font-size: 0.8rem;
  line-height: 1.2;
}

.home-page .history-strip {
  display: none;
}

.home-page .product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.home-page .product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(0, 150, 96, 0.08);
  border-radius: 11px;
  background: linear-gradient(135deg, #17bf83, var(--green));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(0, 150, 96, 0.18);
}

.home-page .product-alert-button {
  min-height: 38px;
  border: 1px solid rgba(0, 150, 96, 0.18);
  border-radius: 11px;
  background: #e9f8f1;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 11px;
}

.home-how {
  display: grid;
  gap: 18px;
}

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

.home-steps article {
  border: 1px solid rgba(13, 74, 53, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(20, 72, 54, 0.08);
  padding: 22px;
}

.home-steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #daf4e7;
  color: var(--green);
  font-weight: 950;
}

.home-steps h3 {
  margin-top: 18px;
  color: #101923;
  font-size: 1.1rem;
}

.home-steps p {
  margin-top: 8px;
  color: #5a6a65;
  line-height: 1.45;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(13, 74, 53, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(225, 247, 238, 0.9)),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  box-shadow: 0 22px 54px rgba(20, 72, 54, 0.1);
  padding: clamp(24px, 3.2vw, 38px);
}

.home-cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

@media (max-width: 1280px) {
  .page-body .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .page-body .topbar-brand {
    flex: 1 1 420px;
  }

  .page-body .top-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero-visual {
    min-height: 340px;
  }

  .home-page .product-grid,
  .home-page .product-grid.product-list-view,
  .home-page .product-grid.product-card-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page-body .topbar {
    width: min(100% - 20px, 1500px);
  }

  .page-body .topbar-brand small:not(.sr-only) {
    display: none;
  }

  .home-page .home-main {
    width: min(100% - 20px, 1500px);
    padding-top: 16px;
  }

  .home-hero,
  .home-featured,
  .home-cta {
    border-radius: 24px;
  }

  .home-hero {
    padding: 24px;
  }

  .home-hero h1 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
  }

  .home-stats,
  .home-page .product-grid,
  .home-page .product-grid.product-list-view,
  .home-page .product-grid.product-card-view,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-section-heading,
  .home-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .home-hero-visual {
    min-height: 280px;
  }

  .home-hero-visual img {
    width: 108%;
    height: 108%;
  }

  .hero-float-card {
    display: none;
  }

  .home-page .topbar-actions.home-actions {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .home-page .topbar-actions .user-chip {
    width: 42px;
    min-width: 42px;
    justify-content: center;
    padding: 0;
  }

  .home-page .topbar-actions .user-chip > span:not(.avatar) {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-body .topbar-actions.compact-actions {
    grid-template-columns: 42px auto;
    width: auto;
  }
}

/* Keep internal pages aligned with the header width */
.page-body .topbar,
.page-body .dashboard-main,
.page-body .page-main,
.products-page .dashboard-main,
.home-page .home-main {
  width: min(1500px, calc(100% - 36px));
}

@media (max-width: 760px) {
  .page-body .topbar,
  .page-body .dashboard-main,
  .page-body .page-main,
  .products-page .dashboard-main,
  .home-page .home-main {
    width: min(100% - 20px, 1500px);
  }
}

@media (max-width: 760px) {
  .catalog-suggestions {
    position: static;
    width: 100%;
    max-height: 280px;
    margin-top: 4px;
  }

  .catalog-suggestion {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .catalog-suggestion em {
    grid-column: 2;
    justify-self: start;
  }

  .selected-product-preview,
  .saved-alert-product {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .selected-product-preview .text-button,
  .saved-alert-product a {
    grid-column: 2;
    justify-self: start;
  }
}

/* Mobile visual pass - stage 1: login shell */
@media (max-width: 640px) {
  .login-screen {
    min-height: 100dvh;
    align-items: flex-start;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 50% -12%, rgba(227, 249, 239, 0.94), transparent 34%),
      linear-gradient(180deg, #f7fbf9 0%, #e8f7f0 100%);
    padding: 10px;
  }

  .login-screen .login-shell {
    width: 100%;
  }

  .login-screen .login-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 83, 61, 0.12);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 253, 248, 0.93) 48%, #fff 48.1%, #fff 100%),
      url("./assets/garimpanda-login-bg.png") center top / cover no-repeat;
    box-shadow: 0 26px 78px rgba(26, 83, 62, 0.16);
  }

  .login-screen .login-showcase {
    min-height: 640px;
    overflow: hidden;
    padding: 32px 22px 188px;
  }

  .login-screen .login-logo {
    width: min(250px, 78vw);
    height: 62px;
  }

  .login-screen .login-showcase-copy {
    max-width: 100%;
    margin-top: 30px;
    padding-right: 0;
  }

  .login-screen .login-showcase-copy > span {
    min-height: 42px;
    padding: 0 15px;
  }

  .login-screen .login-showcase-copy h2 {
    max-width: 312px;
    margin-top: 22px;
    font-size: clamp(2.75rem, 11.5vw, 3.55rem);
    line-height: 0.96;
    letter-spacing: 0;
  }

  .login-screen .login-showcase-copy p {
    max-width: 278px;
    color: #465852;
    font-size: 1rem;
    line-height: 1.5;
  }

  .login-screen .login-panda {
    right: -86px;
    bottom: 158px;
    width: 232px;
    height: 232px;
  }

  .login-screen .login-showcase-grid {
    position: absolute;
    inset: auto 22px 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
    margin: 0;
  }

  .login-screen .login-showcase-grid article,
  .login-screen .login-showcase-grid article:nth-child(3) {
    display: grid;
  }

  .login-screen .login-showcase-grid article {
    min-height: 148px;
    align-content: center;
    border-radius: 18px;
    padding: 16px 12px;
  }

  .login-screen .login-showcase-grid article strong {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }

  .login-screen .login-showcase-grid article span {
    font-size: 0.83rem;
    line-height: 1.25;
  }

  .login-screen .login-panel {
    padding: 0 18px 28px;
    background: #fff;
  }

  .login-screen .login-form-card {
    border: 1px solid rgba(24, 57, 46, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 48px rgba(25, 72, 54, 0.1);
    padding: 30px 20px 28px;
  }

  .login-screen .login-panel .login-logo-mobile,
  .login-screen .login-panel .login-header {
    display: none;
  }

  .login-screen .login-input-shell,
  .login-screen .google-login-button,
  .login-screen .create-account-button {
    min-height: 58px;
    border-radius: 14px;
  }

  .login-screen .login-submit {
    min-height: 64px;
    border-radius: 14px;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .login-screen .login-showcase {
    min-height: 612px;
    padding: 28px 18px 176px;
  }

  .login-screen .login-showcase-copy h2 {
    max-width: 286px;
    font-size: clamp(2.45rem, 12.2vw, 3rem);
  }

  .login-screen .login-showcase-copy p {
    max-width: 252px;
    font-size: 0.95rem;
  }

  .login-screen .login-panda {
    right: -82px;
    bottom: 150px;
    width: 230px;
    height: 230px;
  }

  .login-screen .login-showcase-grid {
    inset: auto 18px 28px;
    gap: 9px;
  }

  .login-screen .login-showcase-grid article {
    min-height: 138px;
    padding: 14px 9px;
  }

  .login-screen .login-form-card {
    padding: 28px 16px 26px;
  }
}

/* Mobile visual pass - stage 2: app header, home and how-it-works */
@media (max-width: 760px) {
  .page-body {
    overflow-x: hidden;
    background:
      radial-gradient(circle at 50% -6%, rgba(225, 249, 239, 0.86), transparent 34%),
      linear-gradient(180deg, #f7fbf9 0%, #eaf7f1 100%);
  }

  .page-body .dashboard-shell {
    padding: 10px 0 22px;
  }

  .page-body .topbar {
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: min(100% - 20px, 1500px);
    min-height: 82px;
    overflow: visible;
    border: 1px solid rgba(15, 83, 61, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(23, 78, 58, 0.12);
    backdrop-filter: none;
    padding: 12px 14px;
  }

  .page-body .topbar-brand {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  .page-body .brand-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
  }

  .page-body .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .page-body .topbar-brand strong {
    display: block;
    overflow: hidden;
    font-size: clamp(1.42rem, 6.9vw, 2rem);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-body .topbar-brand small:not(.sr-only),
  .page-body .top-nav,
  .page-body .topbar-actions .date-pill,
  .page-body .topbar-actions .nav-button,
  .home-page .topbar-actions [data-login-cta] {
    display: none;
  }

  .page-body .topbar-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    gap: 8px;
    overflow: visible;
  }

  .page-body .topbar-actions::before {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 150, 96, 0.11);
    border-radius: 50%;
    background:
      linear-gradient(#0f1823, #0f1823) center 15px / 18px 2px no-repeat,
      linear-gradient(#0f1823, #0f1823) center 23px / 18px 2px no-repeat,
      linear-gradient(#0f1823, #0f1823) center 31px / 18px 2px no-repeat,
      #e0f7ec;
    content: "";
  }

  .page-body .topbar-actions.compact-actions::before {
    display: none;
  }

  .page-body .icon-action,
  .page-body .user-chip {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .page-body .user-chip > span:not(.avatar) {
    display: none;
  }

  .page-body .user-chip .avatar {
    width: 100%;
    height: 100%;
    background: #dff6eb;
    color: var(--green);
  }

  .page-body .dashboard-main,
  .page-body .page-main,
  .products-page .dashboard-main,
  .home-page .home-main {
    width: min(100% - 20px, 1500px);
  }

  .home-page .home-main {
    gap: 14px;
    padding-top: 12px;
  }

  .home-hero,
  .home-featured,
  .home-cta,
  .flow-explain {
    border-radius: 26px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 24px 20px;
  }

  .home-page .hero-kicker,
  .section-kicker,
  .page-body:not(.products-page) .page-intro .hero-kicker {
    min-height: 34px;
    font-size: 0.78rem;
    padding: 0 12px;
  }

  .home-hero h1 {
    max-width: 360px;
    margin-top: 18px;
    font-size: clamp(2.45rem, 11vw, 3.45rem);
    line-height: 0.96;
  }

  .home-hero p {
    max-width: 350px;
    font-size: 0.98rem;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 10px;
  }

  .home-hero-actions .primary-button,
  .home-hero-actions .secondary-button,
  .home-cta-actions .primary-button,
  .home-cta-actions .secondary-button {
    min-height: 48px;
    border-radius: 13px;
    padding: 0 14px;
  }

  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .home-stats div {
    min-height: 108px;
    padding: 14px 12px;
  }

  .home-stats dt {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
  }

  .home-stats dd {
    font-size: 0.78rem;
  }

  .home-hero-visual {
    min-height: 240px;
    border-radius: 22px;
  }

  .home-hero-visual img {
    width: min(300px, 94%);
    height: 240px;
  }

  .home-featured {
    padding: 18px;
  }

  .home-section-heading {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .home-section-heading h2,
  .home-cta h2 {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.04;
  }

  .home-section-heading p {
    display: none;
  }

  .home-page .product-grid,
  .home-page .product-grid.product-list-view,
  .home-page .product-grid.product-card-view {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-page .product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 0;
    border-radius: 16px;
    padding: 10px;
  }

  .home-page .product-image-link {
    min-height: 92px;
    height: 92px;
    border-radius: 14px;
    padding: 8px;
  }

  .home-page .product-image {
    max-height: 78px;
  }

  .home-page .product-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 0 0 10px;
    gap: 5px;
  }

  .home-page .product-meta {
    position: static;
    order: -1;
  }

  .home-page .source-badge,
  .home-page .change-badge {
    min-height: 22px;
    font-size: 0.66rem;
  }

  .home-page .product-title {
    min-height: 0;
    font-size: 0.86rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .home-page .price-row {
    margin-top: 1px;
  }

  .home-page .product-seller,
  .home-page .product-note {
    font-size: 0.72rem;
  }

  .home-page .product-note {
    min-height: 0;
    -webkit-line-clamp: 1;
  }

  .home-page .product-price {
    font-size: 1rem;
  }

  .home-page .product-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .home-page .product-link,
  .home-page .product-alert-button {
    min-height: 34px;
    border-radius: 10px;
    font-size: 0.73rem;
  }

  .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-steps article {
    min-height: 164px;
    border-radius: 18px;
    padding: 16px;
  }

  .home-steps h3 {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.12;
  }

  .home-steps p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .home-cta {
    padding: 20px;
  }

  .home-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-body:not(.products-page) .page-main {
    gap: 14px;
    padding-top: 14px;
  }

  .page-body:not(.products-page) .page-intro {
    overflow: hidden;
    min-height: 420px;
    border-radius: 26px;
    padding: 26px 20px;
  }

  .page-body:not(.products-page) .split-intro > div {
    max-width: min(100%, 350px);
  }

  .page-body:not(.products-page) .page-intro h1 {
    max-width: 360px;
    margin-top: 18px;
    font-size: clamp(2.35rem, 11.2vw, 3.18rem);
    line-height: 0.94;
  }

  .page-body:not(.products-page) .page-intro p {
    max-width: 310px;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .page-body:not(.products-page) .split-intro img {
    right: -44px;
    bottom: 16px;
    width: 188px;
    height: 188px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 5px;
    min-height: 0;
    border-radius: 22px;
    padding: 20px;
  }

  .feature-card > span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .feature-card h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.16;
  }

  .feature-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .flow-explain {
    padding: 20px;
  }

  .flow-explain .panel-heading {
    align-items: flex-start;
  }

  .flow-explain .panel-heading h2 {
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .flow-steps {
    gap: 10px;
  }

  .flow-steps article {
    border-radius: 16px;
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .home-hero-actions {
    grid-template-columns: 1fr;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .page-body:not(.products-page) .page-intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.1rem);
  }

  .page-body:not(.products-page) .split-intro img {
    right: -70px;
    width: 166px;
    height: 166px;
  }
}

/* Mobile visual pass - stage 3: product catalog */
@media (max-width: 760px) {
  .products-page .dashboard-shell {
    padding-bottom: 94px;
  }

  .products-page .topbar {
    border-radius: 26px;
  }

  .products-page .top-nav {
    position: fixed;
    right: 10px;
    bottom: 8px;
    left: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 70px;
    overflow: hidden;
    border: 1px solid rgba(15, 83, 61, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -16px 44px rgba(28, 78, 58, 0.12);
    padding: 8px;
  }

  .products-page .top-nav a {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    border-radius: 16px;
    color: #31413c;
    font-size: 0.72rem;
    font-weight: 850;
    padding: 0 4px;
    text-align: center;
    white-space: normal;
  }

  .products-page .top-nav a.active {
    background: #e0f7ec;
    color: var(--green);
  }

  .products-page .page-main {
    gap: 14px;
    padding-top: 14px;
  }

  .products-page .page-intro {
    min-height: 244px;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px 20px;
  }

  .products-page .page-intro > div {
    max-width: calc(100% - 132px);
  }

  .products-page .page-intro h1 {
    margin-top: 16px;
    font-size: clamp(2.8rem, 14vw, 4rem);
    line-height: 0.92;
  }

  .products-page .page-intro p {
    max-width: 300px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .products-page .page-intro img {
    right: -12px;
    bottom: 8px;
    width: 174px;
    height: 174px;
  }

  .products-page .monitor-console {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .products-page .products-area {
    order: 1;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .products-page .filter-panel {
    order: 2;
    border-radius: 22px;
    padding: 16px;
  }

  .products-page .products-area .toolbar {
    display: grid;
    grid-template-areas:
      "search search"
      "sort view"
      "count count";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .products-page .products-area .search-box {
    grid-area: search;
  }

  .products-page .products-area .search-box input {
    min-height: 62px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(24, 72, 54, 0.08);
    font-size: 0.98rem;
    padding: 0 18px 0 48px;
  }

  .products-page .products-area .toolbar select {
    grid-area: sort;
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(24, 72, 54, 0.06);
    font-weight: 850;
  }

  .products-page .products-count {
    grid-area: count;
    margin: 0;
  }

  .products-page .products-count strong {
    color: var(--green);
    font-size: 1rem;
  }

  .products-page .products-count span {
    font-size: 0.84rem;
  }

  .products-page .view-toggle {
    grid-area: view;
    align-self: stretch;
    min-width: 92px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(24, 72, 54, 0.06);
  }

  .products-page .product-info-banner {
    display: none;
  }

  .products-page {
    --product-card-media-height: 122px;
  }

  .products-page .product-grid,
  .products-page .product-grid.product-card-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
  }

  .products-page .product-card,
  .products-page .product-grid.product-card-view .product-card {
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(24, 72, 54, 0.09);
  }

  .products-page .product-image-link,
  .products-page .product-grid.product-card-view .product-image-link {
    min-height: 0;
    height: var(--product-card-media-height);
    padding: 13px 12px 8px;
  }

  .products-page .product-image,
  .products-page .product-grid.product-card-view .product-image {
    max-height: 96px;
  }

  .products-page .product-body,
  .products-page .product-grid.product-card-view .product-body {
    gap: 5px;
    padding: 10px 10px 12px;
  }

  .products-page .product-title,
  .products-page .product-grid.product-card-view .product-title {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .products-page .product-seller,
  .products-page .product-note,
  .products-page .product-grid.product-card-view .product-seller,
  .products-page .product-grid.product-card-view .product-note {
    min-height: 0;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .products-page .product-note,
  .products-page .product-grid.product-card-view .product-note {
    -webkit-line-clamp: 1;
  }

  .products-page .product-price,
  .products-page .product-grid.product-card-view .product-price {
    font-size: 1rem;
  }

  .products-page .price-change,
  .products-page .product-rating,
  .products-page .product-grid.product-card-view .price-change,
  .products-page .product-grid.product-card-view .product-rating {
    font-size: 0.7rem;
  }

  .products-page .product-actions,
  .products-page .product-grid.product-card-view .product-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .products-page .product-link,
  .products-page .product-alert-button,
  .products-page .product-grid.product-card-view .product-link,
  .products-page .product-grid.product-card-view .product-alert-button {
    min-height: 36px;
    border-radius: 11px;
    font-size: 0.72rem;
    padding: 0 8px;
  }

  .products-page .source-badge,
  .products-page .change-badge {
    font-size: 0.66rem;
  }

  .products-page .pagination-bar {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .products-page .product-grid,
  .products-page .product-grid.product-card-view {
    grid-template-columns: 1fr;
  }
}

/* Mobile visual pass - stage 4: price radar and saved alerts */
@media (max-width: 760px) {
  .radar-page .page-intro {
    min-height: 420px;
  }

  .radar-page .page-intro h1 {
    max-width: 370px;
  }

  .radar-page .page-intro p {
    max-width: 315px;
  }

  .radar-page .split-intro img {
    right: -36px;
    bottom: 24px;
    width: 184px;
    height: 184px;
  }

  .price-alerts-panel {
    overflow: hidden;
    border-radius: 26px;
    padding: 22px 18px;
  }

  .price-alerts-panel .panel-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .price-alerts-panel .panel-heading h2 {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .price-alerts-panel .panel-subtitle {
    max-width: 330px;
    font-size: 0.92rem;
  }

  .data-service-warning {
    min-height: 54px;
    border-radius: 16px;
    padding: 13px 16px;
    font-size: 0.92rem;
  }

  .radar-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .radar-guide article {
    display: block;
    min-height: 168px;
    border-radius: 18px;
    padding: 14px 10px;
    text-align: left;
  }

  .radar-guide article span {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    font-size: 0.85rem;
  }

  .radar-guide article strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .radar-guide article p {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.32;
  }

  .alert-auth-grid,
  .price-alerts-workspace,
  .alert-builder,
  .saved-alert-details {
    grid-template-columns: 1fr;
  }

  .alert-auth-grid {
    gap: 14px;
  }

  .alert-form,
  .session-card,
  .alert-builder,
  .saved-alerts,
  .saved-alert-card {
    border-radius: 22px;
    padding: 18px;
  }

  .alert-form h3,
  .saved-alerts h3 {
    font-size: 1.08rem;
  }

  .field-group {
    gap: 8px;
  }

  .field-group input,
  .field-group select {
    min-height: 54px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .alert-builder .alert-product-query-field,
  .alert-builder .alert-email-field {
    grid-column: auto;
  }

  .alert-builder .primary-button,
  .alert-form .primary-button,
  .alert-form .secondary-button,
  .alert-form .google-login-button {
    min-height: 56px;
    border-radius: 14px;
  }

  .session-card {
    align-items: center;
  }

  .selected-product-preview,
  .saved-alert-product {
    border-radius: 16px;
  }

  .saved-alert-card {
    gap: 14px;
  }

  .saved-alert-header,
  .saved-alert-actions {
    align-items: flex-start;
  }

  .saved-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .saved-alert-actions button {
    min-height: 40px;
    border-radius: 999px;
  }
}

@media (max-width: 420px) {
  .radar-guide {
    grid-template-columns: 1fr;
  }

  .radar-guide article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    column-gap: 12px;
  }

  .radar-guide article span {
    grid-row: 1 / 3;
    margin: 0;
  }
}

/* Mobile visual pass - stage 5: alerts dashboard */
@media (max-width: 760px) {
  .alerts-page .page-intro {
    min-height: 388px;
  }

  .alerts-page .compact-intro {
    gap: 16px;
  }

  .alerts-page .compact-intro > div {
    max-width: 100%;
  }

  .alerts-page .page-intro h1 {
    max-width: 350px;
  }

  .alerts-page .page-intro p {
    max-width: 320px;
  }

  .alerts-page .intro-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .alerts-page .intro-status div {
    min-height: 62px;
    border-radius: 16px;
    padding: 14px 16px;
  }

  .alerts-page .intro-status dt {
    font-size: 0.72rem;
  }

  .alerts-page .intro-status dd {
    font-size: 0.9rem;
  }

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

  .kpi-card {
    align-items: center;
    gap: 10px;
    min-height: 116px;
    border-radius: 20px;
    padding: 14px;
  }

  .kpi-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .kpi-card h2 {
    font-size: 0.73rem;
    line-height: 1.15;
  }

  .kpi-card strong {
    font-size: 1.45rem;
    line-height: 1;
  }

  .kpi-card p {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .dashboard-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chart-panel,
  .sources-panel,
  .flow-card,
  .alerts-card,
  .upcoming-card {
    border-radius: 22px;
    padding: 18px;
  }

  .chart-panel .panel-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .chart-panel .panel-heading h2,
  .sources-panel h2,
  .flow-card h2,
  .alerts-card h2,
  .upcoming-card h2 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .chart-legend {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.72rem;
  }

  .activity-chart {
    min-height: 220px;
  }

  .donut-layout {
    grid-template-columns: minmax(128px, 0.8fr) minmax(0, 1fr);
    gap: 14px;
  }

  .donut-chart {
    width: 132px;
    height: 132px;
  }

  .source-list {
    gap: 8px;
    font-size: 0.82rem;
  }

  .flow-success {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .flow-success dl {
    grid-column: 2;
    justify-self: start;
  }

  .alerts-card {
    padding: 0;
    overflow: hidden;
  }

  .alerts-card .table-heading {
    padding: 18px 18px 12px;
  }

  .table-wrap {
    overflow: visible;
  }

  .alerts-card table,
  .alerts-card tbody,
  .alerts-card tr,
  .alerts-card td {
    display: block;
    width: 100%;
  }

  .alerts-card thead {
    display: none;
  }

  .alerts-card tbody {
    display: grid;
    gap: 0;
  }

  .alerts-card tbody tr {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    padding: 12px 14px;
  }

  .alerts-card tbody td {
    border: 0;
    padding: 0;
    white-space: normal;
  }

  .alerts-card tbody td:nth-child(1) {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
  }

  .alerts-card tbody td:nth-child(2) {
    grid-column: 2;
    overflow: hidden;
    color: #13202d;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .alerts-card tbody td:nth-child(3),
  .alerts-card tbody td:nth-child(5) {
    grid-column: 2;
    overflow: hidden;
    color: #64736e;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .alerts-card tbody td:nth-child(4) {
    display: none;
  }

  .alerts-card tbody td:nth-child(6) {
    grid-row: 1 / 3;
    grid-column: 3;
    justify-self: end;
  }

  .alerts-card tbody td:nth-child(6) a,
  .alerts-card tbody td:nth-child(6) button {
    min-height: 36px;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 0 10px;
    white-space: nowrap;
  }

  .alerts-card .panel-link,
  .upcoming-card .panel-link {
    display: flex;
    justify-content: center;
    padding: 14px 18px 18px;
  }

  .upcoming-list article {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 0;
  }

  .upcoming-list time {
    font-size: 0.78rem;
    text-align: right;
  }
}

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

  .donut-layout {
    grid-template-columns: 1fr;
  }

  .alerts-card tbody tr {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .alerts-card tbody td:nth-child(6) {
    grid-row: auto;
    grid-column: 2;
    justify-self: start;
  }
}

/* Mobile correction: readable product cards on phone widths */
@media (max-width: 560px) {
  .products-page {
    --product-card-media-height: 168px;
  }

  .products-page .product-grid,
  .products-page .product-grid.product-card-view,
  .products-page .product-grid.product-list-view {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 12px;
  }

  .products-page .product-card,
  .products-page .product-grid.product-card-view .product-card,
  .products-page .product-grid.product-list-view .product-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: var(--product-card-media-height) auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    border-radius: 20px;
  }

  .products-page .product-image-link,
  .products-page .product-grid.product-card-view .product-image-link,
  .products-page .product-grid.product-list-view .product-image-link {
    min-height: 0;
    height: var(--product-card-media-height);
    border-radius: 20px 20px 0 0;
    padding: 16px 16px 10px;
  }

  .products-page .product-image,
  .products-page .product-grid.product-card-view .product-image,
  .products-page .product-grid.product-list-view .product-image {
    width: 100%;
    height: 100%;
    max-height: calc(var(--product-card-media-height) - 28px);
    object-fit: contain;
  }

  .products-page .product-body,
  .products-page .product-grid.product-card-view .product-body,
  .products-page .product-grid.product-list-view .product-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 14px;
  }

  .products-page .product-meta,
  .products-page .product-grid.product-list-view .product-meta {
    position: static;
    order: -1;
    justify-content: space-between;
    pointer-events: auto;
  }

  .products-page .source-badge {
    max-width: calc(100% - 96px);
  }

  .products-page .product-title,
  .products-page .product-grid.product-card-view .product-title,
  .products-page .product-grid.product-list-view .product-title {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .products-page .product-seller,
  .products-page .product-note,
  .products-page .product-grid.product-card-view .product-seller,
  .products-page .product-grid.product-card-view .product-note,
  .products-page .product-grid.product-list-view .product-seller,
  .products-page .product-grid.product-list-view .product-note {
    min-height: 0;
    overflow: visible;
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: normal;
  }

  .products-page .product-note,
  .products-page .product-grid.product-card-view .product-note,
  .products-page .product-grid.product-list-view .product-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .products-page .price-row,
  .products-page .product-grid.product-list-view .price-row {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    margin-top: 2px;
    text-align: left;
  }

  .products-page .product-price,
  .products-page .product-grid.product-card-view .product-price,
  .products-page .product-grid.product-list-view .product-price {
    font-size: 1.18rem;
  }

  .products-page .price-change,
  .products-page .product-rating,
  .products-page .product-grid.product-card-view .price-change,
  .products-page .product-grid.product-card-view .product-rating,
  .products-page .product-grid.product-list-view .price-change,
  .products-page .product-grid.product-list-view .product-rating {
    font-size: 0.8rem;
  }

  .products-page .product-actions,
  .products-page .product-grid.product-card-view .product-actions,
  .products-page .product-grid.product-list-view .product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 9px;
    min-width: 0;
    margin-top: 2px;
    padding-top: 0;
  }

  .products-page .product-link,
  .products-page .product-alert-button,
  .products-page .product-grid.product-card-view .product-link,
  .products-page .product-grid.product-card-view .product-alert-button,
  .products-page .product-grid.product-list-view .product-link,
  .products-page .product-grid.product-list-view .product-alert-button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.84rem;
    padding: 0 12px;
  }
}

/* Garimpanda design refresh: responsive, hero depth, empty states, and interaction polish */
:root {
  --gp-ink: #0c1722;
  --gp-text: #24352f;
  --gp-muted: #63736e;
  --gp-line: rgba(18, 91, 67, 0.14);
  --gp-surface: rgba(255, 255, 255, 0.84);
  --gp-green: #0aa66f;
  --gp-green-dark: #087452;
  --gp-yellow: #ffb82e;
  --gp-yellow-soft: rgba(255, 184, 46, 0.16);
  --gp-shadow-soft: 0 20px 54px rgba(18, 80, 60, 0.12);
  --gp-shadow-lift: 0 28px 72px rgba(18, 80, 60, 0.18);
  --gp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.page-body {
  background: linear-gradient(180deg, #f2fbf6 0%, #e8f5ee 46%, #f8fcfa 100%);
}

.page-body .topbar {
  border-color: var(--gp-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 56px rgba(29, 85, 65, 0.1);
  backdrop-filter: blur(18px);
}

.top-nav a,
.primary-button,
.secondary-button,
.text-button,
.google-login-button,
.create-account-button,
.guest-link,
.product-link,
.product-alert-button,
.view-toggle button,
.category-button,
.discount-filter,
.rating-filter,
.filter-section-title,
.user-chip,
.date-pill,
.login-submit {
  touch-action: manipulation;
  transition:
    transform 160ms var(--gp-ease-out),
    background-color 180ms var(--gp-ease-out),
    border-color 180ms var(--gp-ease-out),
    box-shadow 180ms var(--gp-ease-out),
    color 180ms var(--gp-ease-out);
}

.primary-button:active,
.secondary-button:active,
.google-login-button:active,
.create-account-button:active,
.product-link:active,
.product-alert-button:active,
.view-toggle button:active,
.category-button:active,
.discount-filter:active,
.rating-filter:active,
.user-chip:active,
.date-pill:active,
.login-submit:active {
  transform: scale(0.97);
}

.primary-button,
.login-submit,
.alert-builder .primary-button,
.alert-form .primary-button {
  border: 1px solid rgba(0, 130, 86, 0.18);
  background: linear-gradient(180deg, #19bf83 0%, #079c68 100%);
  box-shadow:
    0 16px 32px rgba(8, 148, 97, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.secondary-button,
.google-login-button,
.create-account-button,
.product-link {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(29, 85, 65, 0.06);
}

:focus-visible {
  outline: 3px solid rgba(0, 150, 96, 0.34);
  outline-offset: 3px;
}

.home-hero,
.products-page .page-intro,
.page-body:not(.products-page) .page-intro,
.login-screen .login-card {
  border: 1px solid rgba(13, 91, 66, 0.18);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 38%, rgba(228, 249, 239, 0.54) 66%, rgba(190, 239, 217, 0.46) 100%),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  box-shadow:
    0 34px 92px rgba(18, 80, 60, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home-hero {
  min-height: clamp(430px, 38vw, 570px);
  border-radius: 32px;
}

.home-hero::before,
.products-page .page-intro::before,
.page-body:not(.products-page) .page-intro::before {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 163, 105, 0.09) 64%, rgba(13, 116, 79, 0.16) 100%);
  content: "";
}

.home-hero-copy,
.home-hero-visual,
.products-page .page-intro > div,
.products-page .page-intro img,
.page-body:not(.products-page) .page-intro > div,
.page-body:not(.products-page) .page-intro img,
.alerts-page .intro-status {
  position: relative;
  z-index: 2;
}

.home-hero h1,
.products-page .page-intro h1,
.page-body:not(.products-page) .page-intro h1,
.login-showcase-copy h2,
.login-panel h1 {
  color: var(--gp-ink);
  text-wrap: balance;
}

.home-hero p,
.products-page .page-intro p,
.page-body:not(.products-page) .page-intro p,
.home-section-heading p,
.panel-subtitle,
.login-showcase-copy p,
.login-panel p {
  color: var(--gp-text);
}

.hero-kicker,
.home-page .hero-kicker,
.section-kicker,
.page-body:not(.products-page) .page-intro .hero-kicker,
.products-page .page-intro .hero-kicker {
  border-color: rgba(0, 150, 96, 0.22);
  background: linear-gradient(180deg, rgba(221, 250, 235, 0.98), rgba(193, 240, 218, 0.94));
  color: var(--gp-green-dark);
  box-shadow: 0 12px 26px rgba(22, 93, 68, 0.08);
}

.home-hero-visual {
  overflow: visible;
  border: 1px solid rgba(13, 91, 66, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(214, 247, 232, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 22px 52px rgba(15, 91, 65, 0.08);
}

.home-hero-visual img,
.products-page .page-intro img,
.page-body:not(.products-page) .split-intro img,
.login-screen .login-panda {
  filter: drop-shadow(0 34px 42px rgba(16, 64, 49, 0.2));
}

.hero-float-card {
  border-color: rgba(13, 91, 66, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(20, 72, 54, 0.12);
}

.hero-float-card.top::before,
.hero-float-card.bottom::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gp-yellow);
  box-shadow: 0 0 0 4px var(--gp-yellow-soft);
  content: "";
}

.home-stats div,
.intro-status div,
.radar-guide article,
.kpi-card,
.feature-card,
.flow-step,
.product-info-banner,
.empty-state,
.warning-state,
.error-state {
  border: 1px solid rgba(13, 91, 66, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(20, 72, 54, 0.08);
}

.panel-card,
.filter-panel,
.products-area,
.price-alerts-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  box-shadow: var(--gp-shadow-soft);
}

@media (hover: hover) and (pointer: fine) {
  .panel-card:hover,
  .product-card:hover,
  .feature-card:hover,
  .radar-guide article:hover,
  .home-stats div:hover {
    transform: translateY(-2px);
    box-shadow: var(--gp-shadow-lift);
  }

  .primary-button:hover,
  .login-submit:hover {
    box-shadow:
      0 20px 40px rgba(8, 148, 97, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

.products-page .page-intro img {
  right: clamp(48px, 7vw, 116px);
  bottom: 4px;
  width: clamp(250px, 20vw, 340px);
  height: clamp(250px, 20vw, 340px);
}

.page-body:not(.products-page) .split-intro img {
  right: clamp(44px, 7vw, 112px);
  bottom: 4px;
  width: clamp(230px, 18vw, 320px);
  height: clamp(230px, 18vw, 320px);
}

.alerts-page .intro-status div {
  min-height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.price-alerts-panel {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 56%, rgba(224, 249, 238, 0.7) 100%),
    url("./assets/garimpanda-background.png") right bottom / cover no-repeat;
}

.data-service-warning {
  border-color: rgba(183, 125, 20, 0.26);
  background: linear-gradient(180deg, #fff7e7, #fff1d2);
  color: #765010;
  box-shadow: 0 14px 32px rgba(170, 112, 16, 0.08);
}

.data-service-warning.ready {
  border-color: rgba(0, 150, 96, 0.2);
  background: linear-gradient(180deg, #e9fbf2, #d9f7e9);
  color: #0a6f4f;
}

.product-info-banner {
  background: linear-gradient(90deg, rgba(225, 249, 237, 0.96), rgba(245, 253, 249, 0.9));
}

.empty-state,
.warning-state,
.error-state,
.catalog-suggestion-empty {
  display: grid;
  align-items: center;
  min-height: 64px;
  border-radius: 18px;
  padding: 18px 20px 18px 58px;
  color: #425650;
  line-height: 1.45;
  position: relative;
}

.empty-state::before,
.warning-state::before,
.error-state::before,
.catalog-suggestion-empty::before {
  position: absolute;
  left: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  content: "i";
}

.empty-state::before,
.catalog-suggestion-empty::before {
  background: var(--gp-green);
}

.warning-state::before {
  background: #c17a0d;
  content: "!";
}

.error-state {
  border-color: rgba(222, 67, 67, 0.24);
  background: linear-gradient(180deg, #fff5f3, #fffafa);
  color: #b32727;
}

.error-state::before {
  background: #d63e3e;
  content: "!";
}

.products-page .monitor-console {
  align-items: start;
}

.products-page .filter-panel {
  top: 18px;
  max-height: calc(100dvh - 36px);
  overflow: auto;
}

.products-page .products-area .toolbar {
  align-items: stretch;
}

.products-page .search-box input {
  min-height: 54px;
}

.chart-panel {
  overflow: hidden;
}

@media (max-width: 980px) {
  .home-hero,
  .products-page .page-intro,
  .page-body:not(.products-page) .page-intro {
    background:
      linear-gradient(115deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.84) 54%, rgba(213, 247, 232, 0.56) 100%),
      url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  }

  .products-page .filter-panel {
    position: relative;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-body .dashboard-shell,
  .home-page .dashboard-shell,
  .products-page .dashboard-shell {
    padding-bottom: 108px;
  }

  .home-hero {
    gap: 20px;
    padding: 22px 20px;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(2.42rem, 11vw, 3.18rem);
    line-height: 0.98;
  }

  .home-hero p {
    max-width: 100%;
  }

  .home-hero-actions,
  .home-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-hero-actions .primary-button,
  .home-hero-actions .secondary-button,
  .home-cta-actions .primary-button,
  .home-cta-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .home-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-stats div {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .home-stats dd {
    margin-top: 0;
  }

  .home-hero-visual {
    min-height: 260px;
    overflow: hidden;
  }

  .home-hero-visual img {
    width: min(310px, 88vw);
    height: 250px;
  }

  .hero-float-card {
    max-width: calc(100% - 32px);
    white-space: normal;
  }

  .hero-float-card.bottom {
    right: 14px;
    bottom: 18px;
  }

  .hero-float-card.top {
    left: 18px;
    top: 18px;
  }

  .products-page .page-intro,
  .radar-page .page-intro,
  .page-body:not(.products-page) .split-intro {
    min-height: 248px;
    padding: 24px 20px;
  }

  .products-page .page-intro > div,
  .radar-page .page-intro > div,
  .page-body:not(.products-page) .split-intro > div {
    max-width: calc(100% - 104px);
  }

  .products-page .page-intro img,
  .radar-page .page-intro img,
  .page-body:not(.products-page) .split-intro img {
    right: -14px;
    bottom: 10px;
    width: 132px;
    height: 132px;
    opacity: 0.92;
  }

  .products-page .page-intro h1,
  .radar-page .page-intro h1,
  .page-body:not(.products-page) .page-intro h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  .products-page .page-intro p,
  .radar-page .page-intro p,
  .page-body:not(.products-page) .page-intro p {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .products-page .products-area .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .products-count {
    min-width: 0;
  }

  .products-page .view-toggle {
    justify-self: stretch;
    width: 100%;
  }

  .products-page .view-toggle button {
    flex: 1;
  }

  .products-page .category-tabs.vertical {
    grid-template-columns: 1fr 1fr;
  }

  .products-page .category-tabs.vertical .category-button {
    min-width: 0;
  }

  .radar-guide {
    grid-template-columns: 1fr;
  }

  .radar-guide article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
    gap: 6px 12px;
    text-align: left;
  }

  .radar-guide article span {
    grid-row: 1 / 3;
    margin: 0;
  }

  .alert-auth-grid,
  .price-alerts-workspace,
  .alert-builder,
  .saved-alert-details {
    grid-template-columns: 1fr;
  }

  .alerts-page .compact-intro,
  .alerts-page .kpi-grid,
  .alerts-page .dashboard-grid,
  .alerts-page .content-grid {
    grid-template-columns: 1fr;
  }

  .alerts-page .intro-status {
    grid-template-columns: 1fr;
  }

  .empty-state,
  .warning-state,
  .error-state,
  .catalog-suggestion-empty {
    padding: 16px 16px 16px 52px;
  }
}

@media (max-width: 560px) {
  .page-body .topbar,
  .page-body .dashboard-main,
  .page-body .page-main,
  .products-page .dashboard-main,
  .home-page .home-main {
    width: min(100% - 20px, 1500px);
  }

  .home-hero,
  .products-page .page-intro,
  .page-body:not(.products-page) .page-intro {
    border-radius: 24px;
  }

  .home-hero {
    padding: 22px 18px;
  }

  .products-page .page-intro > div,
  .radar-page .page-intro > div,
  .page-body:not(.products-page) .split-intro > div {
    max-width: calc(100% - 92px);
  }

  .products-page .page-intro img,
  .radar-page .page-intro img,
  .page-body:not(.products-page) .split-intro img {
    right: -22px;
    width: 118px;
    height: 118px;
  }

  .products-page .page-intro p,
  .radar-page .page-intro p,
  .page-body:not(.products-page) .page-intro p {
    max-width: 245px;
  }

  .home-stats div {
    grid-template-columns: 1fr;
  }

  .products-page .category-tabs.vertical,
  .products-page .source-filter-section .compact-source-grid,
  .products-page .discount-filter-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .products-page .page-intro img,
  .radar-page .page-intro img,
  .page-body:not(.products-page) .split-intro img {
    display: none;
  }

  .products-page .page-intro > div,
  .radar-page .page-intro > div,
  .page-body:not(.products-page) .split-intro > div {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Final mobile QA fixes */
@media (max-width: 760px) {
  .products-page .topbar {
    backdrop-filter: none;
  }

  .home-hero h1 {
    font-size: clamp(2.08rem, 9.4vw, 2.78rem);
    line-height: 1.02;
  }

  .home-hero p {
    font-size: 0.96rem;
  }

  .hero-float-card {
    min-height: 34px;
    font-size: 0.76rem;
    line-height: 1.15;
    padding: 0 10px;
  }

  .hero-float-card.bottom {
    right: 10px;
    max-width: 168px;
  }

  .products-page .products-area .toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow: hidden;
  }

  .products-page .products-area .toolbar select,
  .products-page .view-toggle,
  .products-page .products-count,
  .products-page .search-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .products-page .view-toggle {
    justify-self: stretch !important;
  }

  .products-page .view-toggle button {
    flex: 1 1 0;
  }

  .products-page .products-area {
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .home-hero {
    padding-inline: 18px;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 9vw, 2.42rem);
  }
}

/* Final mobile width guard */
@media (max-width: 760px) {
  .page-body .topbar,
  .page-body .dashboard-main,
  .page-body .page-main,
  .products-page .dashboard-main,
  .home-page .home-main {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero,
  .home-featured,
  .home-cta,
  .products-page .page-intro,
  .page-body:not(.products-page) .page-intro,
  .products-page .products-area,
  .products-page .filter-panel,
  .price-alerts-panel,
  .panel-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-hero-copy {
    min-width: 0;
    max-width: 100%;
  }

  .home-hero h1 {
    max-width: 318px;
    overflow-wrap: break-word;
  }

  .home-hero p {
    max-width: 320px;
  }

  .products-page .products-area .toolbar > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .products-page .view-toggle {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .empty-state,
  .warning-state,
  .error-state,
  .catalog-suggestion-empty {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .home-hero h1 {
    max-width: 292px;
  }

  .home-hero p {
    max-width: 292px;
  }
}

/* Temporary real-store demo cards */
.product-card.demo-product-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(13, 91, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2f5c4d;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(20, 72, 54, 0.08);
  content: "Sem afiliado";
  pointer-events: none;
}

.products-page .product-card.demo-product-card .product-actions,
.home-page .product-card.demo-product-card .product-actions {
  padding-bottom: 26px;
}

.products-page .product-card.demo-product-card .product-link,
.home-page .product-card.demo-product-card .product-link {
  background: linear-gradient(135deg, #109b6f, #087c54);
}

.products-page .product-info-banner {
  border-color: rgba(13, 91, 66, 0.14);
  background:
    linear-gradient(90deg, rgba(225, 249, 237, 0.98), rgba(255, 247, 226, 0.78)),
    url("./assets/garimpanda-background.png") right center / cover no-repeat;
}

.products-page .source-filter-section .compact-source-grid {
  gap: 10px;
}

.products-page .source-filter-section .compact-source-choice:has(input:checked) {
  border-color: rgba(0, 150, 96, 0.28);
  background: linear-gradient(180deg, #f1fcf7, #ffffff);
}

@media (max-width: 430px) {
  .product-card.demo-product-card::after {
    right: 10px;
    bottom: 10px;
    font-size: 0.62rem;
  }

  .products-page .product-card.demo-product-card .product-actions,
  .home-page .product-card.demo-product-card .product-actions {
    padding-bottom: 24px;
  }
}

/* Final alignment pass: clearer hero background, tighter mobile rhythm, balanced cards */
.home-hero,
.products-page .page-intro,
.page-body:not(.products-page) .page-intro {
  background:
    radial-gradient(circle at 86% 18%, rgba(20, 178, 122, 0.18), transparent 26%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 46%, rgba(220, 248, 235, 0.48) 100%),
    url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
}

.page-body .dashboard-main,
.home-page .home-main {
  gap: clamp(18px, 2vw, 28px);
}

.page-body .topbar {
  align-items: center;
}

.page-body .topbar-brand,
.page-body .topbar-actions {
  min-width: 0;
}

.page-body .topbar-brand > span:last-child {
  display: grid;
  min-width: 0;
}

.home-hero h1,
.products-page .page-intro h1,
.page-body:not(.products-page) .page-intro h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.feature-card,
.radar-guide article,
.kpi-card,
.flow-steps article,
.product-info-banner,
.filter-trust-card {
  align-content: start;
  border-color: rgba(13, 91, 66, 0.13);
}

.feature-card,
.radar-guide article {
  min-height: 100%;
}

.products-page .filter-panel {
  align-self: start;
}

.products-page .filter-section {
  gap: 12px;
}

.products-page .category-button,
.products-page .discount-filter,
.products-page .rating-filter {
  min-height: 40px;
  min-width: 46px;
  padding-inline: 10px;
}

.products-page .category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.products-page .category-label,
.products-page .source-choice span,
.products-page .filter-trust-card div {
  min-width: 0;
}

.products-page .source-choice {
  align-items: flex-start;
}

.products-page .source-choice strong,
.products-page .source-choice small {
  overflow-wrap: normal;
  word-break: normal;
}

.products-page .products-area .toolbar {
  align-items: center;
}

.products-page .product-grid.product-card-view {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 242px), 1fr));
  gap: 18px;
}

.products-page .product-card,
.products-page .product-grid.product-card-view .product-card {
  position: relative;
  border-color: rgba(13, 91, 66, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(20, 72, 54, 0.09);
}

.products-page .product-grid.product-card-view .product-image-link {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(236, 250, 243, 0.96), rgba(248, 253, 250, 0.92));
}

.products-page .product-grid.product-card-view .product-body {
  gap: 8px;
  padding: 15px;
}

.products-page .product-grid.product-card-view .product-meta {
  min-height: 25px;
}

.products-page .product-grid.product-card-view .product-title {
  display: -webkit-box;
  min-height: 57px;
  color: #101923;
  font-size: 0.95rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.products-page .product-grid.product-card-view .product-seller {
  min-height: 18px;
}

.products-page .product-grid.product-card-view .product-note {
  display: -webkit-box;
  min-height: 41px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-page .product-grid.product-card-view .price-row {
  align-items: flex-start;
  min-height: 44px;
}

.products-page .product-grid.product-card-view .product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  gap: 9px;
  margin-top: auto;
}

.products-page .product-grid.product-card-view .product-link,
.products-page .product-grid.product-card-view .product-alert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

@media (max-width: 760px) {
  .page-body .topbar,
  .home-page .topbar,
  .products-page .topbar {
    min-height: 68px;
    border-radius: 0 0 22px 22px;
    padding: 10px 12px;
  }

  .page-body .brand-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .page-body .topbar-brand {
    gap: 10px;
  }

  .page-body .topbar-brand strong {
    font-size: 1.12rem;
  }

  .home-hero,
  .products-page .page-intro,
  .page-body:not(.products-page) .page-intro {
    background:
      radial-gradient(circle at 92% 18%, rgba(20, 178, 122, 0.16), transparent 28%),
      linear-gradient(115deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.78) 56%, rgba(219, 248, 234, 0.46) 100%),
      url("./assets/garimpanda-background.png") center bottom / cover no-repeat;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 12px;
    border-radius: 26px;
    padding: 22px 18px 16px;
  }

  .home-hero h1 {
    max-width: 100%;
    margin-top: 16px;
    font-size: clamp(1.88rem, 8vw, 2.42rem);
    line-height: 1.03;
  }

  .home-hero p {
    max-width: 100%;
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .home-hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .home-hero-actions .primary-button,
  .home-hero-actions .secondary-button {
    min-height: 44px;
  }

  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .home-stats div {
    display: block;
    border-radius: 16px;
    padding: 10px 8px;
  }

  .home-stats dt {
    font-size: clamp(1.08rem, 4.8vw, 1.32rem);
  }

  .home-stats dd {
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .home-hero-visual {
    min-height: 150px;
    border-radius: 22px;
  }

  .home-hero-visual img {
    width: min(220px, 70vw);
    height: 150px;
  }

  .home-hero .hero-float-card {
    display: none;
  }

  .products-page .page-intro,
  .radar-page .page-intro,
  .page-body:not(.products-page) .split-intro {
    min-height: auto;
    border-radius: 24px;
    padding: 22px 18px;
  }

  .page-body:not(.products-page) .split-intro {
    padding-bottom: 34px;
  }

  .products-page .page-intro > div,
  .radar-page .page-intro > div,
  .page-body:not(.products-page) .split-intro > div,
  .alerts-page .compact-intro > div {
    max-width: 100%;
  }

  .products-page .page-intro img,
  .radar-page .page-intro img,
  .page-body:not(.products-page) .split-intro img {
    right: -26px;
    bottom: -26px;
    width: 164px;
    height: 164px;
    opacity: 0.18;
    pointer-events: none;
  }

  .products-page .page-intro img {
    right: -20px;
    bottom: 2px;
    width: 136px;
    height: 136px;
    opacity: 0.78;
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.45rem, 12vw, 3.3rem);
    line-height: 0.94;
  }

  .radar-page .page-intro h1,
  .page-body:not(.products-page) .page-intro h1 {
    max-width: 100%;
    font-size: clamp(2rem, 7.5vw, 2.48rem);
    line-height: 1.06;
  }

  .products-page .page-intro p,
  .radar-page .page-intro p,
  .page-body:not(.products-page) .page-intro p {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .alerts-page .page-intro {
    min-height: auto;
  }

  .alerts-page .compact-intro {
    gap: 14px;
  }

  .alerts-page .intro-status {
    margin-top: 2px;
  }

  .products-page .products-area .toolbar {
    gap: 10px;
  }

  .products-page .filter-panel,
  .products-page .products-area,
  .price-alerts-panel,
  .panel-card {
    border-radius: 22px;
  }
}

@media (max-width: 430px) {
  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-page .page-intro {
    padding: 18px;
  }

  .products-page .page-intro > div {
    max-width: calc(100% - 78px);
  }

  .products-page .page-intro h1 {
    margin-top: 12px;
    font-size: clamp(2.08rem, 10vw, 2.55rem);
    line-height: 0.98;
  }

  .products-page .page-intro p {
    max-width: 250px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.36;
  }

  .products-page .page-intro .hero-kicker {
    font-size: 0.72rem;
    padding: 7px 11px;
  }

  .products-page .page-intro img {
    width: 118px;
    height: 118px;
  }

  .page-body:not(.products-page) .split-intro {
    padding-bottom: 30px;
  }

  .radar-page .page-intro h1,
  .page-body:not(.products-page) .page-intro h1 {
    font-size: clamp(1.82rem, 7.2vw, 2.18rem);
  }

  .products-page .product-grid,
  .products-page .product-grid.product-card-view {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .products-page {
    --product-card-media-height: 178px;
  }

  .products-page .product-grid.product-card-view .product-card {
    grid-template-rows: var(--product-card-media-height) auto;
  }

  .products-page .product-grid.product-card-view .product-title {
    min-height: 48px;
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
  }

  .products-page .product-grid.product-card-view .product-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .home-stats {
    grid-template-columns: 1fr;
  }

  .page-body:not(.products-page) .split-intro {
    padding-bottom: 22px;
  }

  .radar-page .page-intro img,
  .page-body:not(.products-page) .split-intro img {
    display: none;
  }

  .products-page .page-intro > div {
    max-width: 100%;
  }

  .products-page .page-intro img {
    opacity: 0.2;
  }
}

/* Brand logo chips for product sources */
.source-badge.has-source-logo,
.products-page .source-badge.has-source-logo,
.home-page .source-badge.has-source-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 86px;
  max-width: 112px;
  height: 28px;
  padding: 4px 10px;
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: transparent;
  line-height: 0;
  box-shadow:
    0 10px 22px rgba(16, 47, 37, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.source-badge-logo {
  display: block;
  width: auto;
  max-width: 88px;
  height: auto;
  max-height: 17px;
  object-fit: contain;
  object-position: center;
}

.source-badge[data-source-logo="mercadolivre"] {
  min-width: 96px;
}

.source-badge[data-source-logo="mercadolivre"] .source-badge-logo {
  max-width: 90px;
  max-height: 18px;
}

.source-badge[data-source-logo="amazon"] {
  min-width: 78px;
}

.source-badge[data-source-logo="amazon"] .source-badge-logo {
  max-width: 72px;
  max-height: 19px;
}

.source-badge[data-source-logo="shopee"] {
  min-width: 76px;
}

.source-badge[data-source-logo="shopee"] .source-badge-logo {
  max-width: 72px;
  max-height: 18px;
}

.source-badge[data-source-logo="magalu"] {
  min-width: 82px;
}

.source-badge[data-source-logo="magalu"] .source-badge-logo {
  max-width: 76px;
  max-height: 18px;
}

.source-badge[data-source-logo="kabum"] {
  min-width: 98px;
  height: 34px;
  padding-inline: 11px;
}

.source-badge[data-source-logo="kabum"] .source-badge-logo {
  max-width: 86px;
  max-height: 30px;
}

.source-badge.source-badge-fallback {
  color: #53615b;
}

.source-badge-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-logo.has-source-logo {
  overflow: hidden;
  border-color: rgba(17, 24, 39, 0.08);
  background: #fff;
  color: transparent;
  padding: 5px;
}

.source-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 430px) {
  .source-badge.has-source-logo,
  .products-page .source-badge.has-source-logo,
  .home-page .source-badge.has-source-logo {
    min-width: 76px;
    max-width: 98px;
    height: 27px;
    padding-inline: 8px;
  }

  .source-badge-logo {
    max-width: 78px;
    max-height: 16px;
  }

  .source-badge[data-source-logo="mercadolivre"] {
    min-width: 90px;
  }

  .source-badge[data-source-logo="kabum"] {
    min-width: 94px;
    max-width: 110px;
    height: 33px;
  }

  .source-badge[data-source-logo="kabum"] .source-badge-logo {
    max-width: 84px;
    max-height: 29px;
  }
}

.products-page .source-badge.has-source-logo[data-source-logo="kabum"],
.home-page .source-badge.has-source-logo[data-source-logo="kabum"] {
  min-width: 108px;
  max-width: 124px;
  height: 40px;
  padding-inline: 11px;
}

.products-page .source-badge.has-source-logo[data-source-logo="kabum"] .source-badge-logo,
.home-page .source-badge.has-source-logo[data-source-logo="kabum"] .source-badge-logo {
  max-width: 92px;
  max-height: 32px;
}

@media (max-width: 430px) {
  .products-page .source-badge.has-source-logo[data-source-logo="kabum"],
  .home-page .source-badge.has-source-logo[data-source-logo="kabum"] {
    min-width: 104px;
    max-width: 120px;
    height: 40px;
  }

  .products-page .source-badge.has-source-logo[data-source-logo="kabum"] .source-badge-logo,
  .home-page .source-badge.has-source-logo[data-source-logo="kabum"] .source-badge-logo {
    max-width: 90px;
    max-height: 32px;
  }
}

/* Product card text containment: keeps fixed card/media sizing without overlap. */
.home-page .product-body,
.products-page .product-grid.product-card-view .product-body {
  min-width: 0;
  min-height: 0;
}

.home-page .product-title,
.home-page .product-note,
.products-page .product-grid.product-card-view .product-title,
.products-page .product-grid.product-card-view .product-note {
  display: -webkit-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.home-page .product-title {
  min-height: 0;
  max-height: calc(1.24em * 2);
  line-height: 1.24;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home-page .product-note {
  min-height: 0;
  max-height: calc(1.35em * 2);
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home-page .product-seller,
.products-page .product-grid.product-card-view .product-seller {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .price-row,
.home-page .product-rating,
.home-page .product-actions,
.products-page .product-grid.product-card-view .price-row,
.products-page .product-grid.product-card-view .product-rating,
.products-page .product-grid.product-card-view .product-actions {
  min-width: 0;
  flex-shrink: 0;
}

.products-page .product-grid.product-card-view .product-title {
  min-height: 0;
  max-height: calc(1.25em * 3);
  line-height: 1.25;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.products-page .product-grid.product-card-view .product-note {
  min-height: 0;
  max-height: calc(1.32em * 2);
  line-height: 1.32;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media (max-width: 560px) {
  .home-page .product-title,
  .products-page .product-grid.product-card-view .product-title {
    max-height: calc(1.22em * 2);
    line-height: 1.22;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .home-page .product-note,
  .products-page .product-grid.product-card-view .product-note {
    max-height: 1.35em;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

/* Legal, privacy and trust surface. */
.legal-main {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.legal-hero {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 28px 0 22px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(9, 119, 86, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(235, 255, 246, 0.94), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.22), transparent 30%);
  box-shadow: 0 22px 60px rgba(13, 68, 52, 0.1);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #13251f;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.98;
}

.legal-hero p {
  max-width: 780px;
  margin: 0;
  color: #42554d;
  font-size: 1.04rem;
  line-height: 1.7;
}

.legal-hero small {
  color: #66756f;
  font-weight: 700;
}

.legal-content,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  min-width: 0;
  border: 1px solid rgba(21, 128, 61, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.07);
  padding: 24px;
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #14231e;
  font-size: 1.04rem;
  line-height: 1.3;
}

.legal-card p,
.legal-card li {
  color: #485951;
  font-size: 0.96rem;
  line-height: 1.68;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.legal-card a {
  color: #048d65;
  font-weight: 800;
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.contact-hero {
  grid-template-columns: minmax(0, 1fr);
}

.contact-email-button {
  width: fit-content;
  min-height: 46px;
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #eafff5;
  color: #048d65;
  font-weight: 900;
}

.contact-support-note {
  margin-top: 16px;
}

.legal-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 24px;
  color: #3f5149;
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.06);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
}

.legal-footer-brand {
  min-width: 0;
}

.legal-footer-brand strong {
  display: block;
  color: #14231e;
  font-size: 0.98rem;
}

.legal-footer-brand p {
  max-width: 560px;
  margin: 4px 0 0;
  color: #5d6f67;
  font-size: 0.86rem;
  line-height: 1.45;
}

.legal-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-footer a,
.legal-footer button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #12694f;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 10px;
}

.legal-footer a:hover,
.legal-footer button:hover {
  background: rgba(16, 185, 129, 0.1);
}

.privacy-banner {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(760px, calc(100vw - 36px));
  border: 1px solid rgba(9, 119, 86, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.privacy-banner strong {
  display: block;
  color: #14231e;
  font-size: 1rem;
}

.privacy-banner p {
  margin: 6px 0 0;
  color: #50625a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.privacy-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-banner-actions a {
  color: #12694f;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.privacy-banner-actions a:hover {
  text-decoration: underline;
}

.privacy-banner-actions .primary-button,
.privacy-banner-actions .secondary-button {
  min-height: 42px;
  white-space: nowrap;
  padding: 0 16px;
}

.privacy-essential-button {
  border-color: rgba(4, 141, 101, 0.2);
  background: #f7fffb;
}

@media (max-width: 860px) {
  .legal-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-footer-inner,
  .privacy-banner {
    grid-template-columns: 1fr;
  }

  .legal-footer-inner {
    align-items: flex-start;
  }

  .legal-footer nav,
  .privacy-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .legal-main {
    width: min(100% - 20px, 1120px);
    padding-bottom: 34px;
  }

  .legal-hero {
    margin-top: 18px;
    padding: 24px;
    border-radius: 15px;
  }

  .legal-hero h1 {
    font-size: 2.35rem;
  }

  .legal-card {
    padding: 20px;
  }

  .contact-email-button {
    width: 100%;
  }

  .legal-footer {
    width: min(100% - 20px, 1180px);
    margin-bottom: 14px;
  }

  .legal-footer-inner {
    border-radius: 14px;
  }

  .legal-footer a,
  .legal-footer button {
    min-height: 42px;
  }

  .privacy-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 16px;
  }

  .privacy-banner-actions,
  .privacy-banner-actions .primary-button,
  .privacy-banner-actions .secondary-button {
    width: 100%;
  }

  .privacy-banner-actions a {
    width: 100%;
    text-align: center;
  }
}

/* Mobile viewport containment: keeps product and legal pages inside the visible screen. */
@media (max-width: 760px) {
  html,
  body,
  .page-body,
  .home-page,
  .products-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-body .dashboard-shell,
  .home-page .dashboard-shell,
  .products-page .dashboard-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-body .topbar,
  .home-page .topbar,
  .products-page .topbar {
    left: 0;
    right: auto;
    display: flex;
    width: 100%;
    max-width: 100% !important;
    min-height: 68px;
    margin: 0;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
  }

  .page-body .topbar-brand {
    flex: 1 1 auto;
    max-width: calc(100vw - 110px);
  }

  .page-body .topbar-actions {
    flex: 0 0 auto;
    width: auto;
    max-width: 96px;
    overflow: hidden;
  }

  .page-body .topbar-actions .user-chip {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .page-body .topbar-actions .user-chip > span:not(.avatar) {
    display: none;
  }

  .page-body .dashboard-main,
  .page-body .page-main,
  .home-page .home-main,
  .products-page .dashboard-main,
  .legal-main {
    width: min(100% - 20px, 1500px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-inline: auto;
    overflow-x: hidden;
  }

  .products-page .page-intro,
  .radar-page .page-intro,
  .page-body:not(.products-page) .page-intro,
  .legal-hero,
  .products-page .monitor-console,
  .products-page .filter-panel,
  .products-page .products-area,
  .legal-card,
  .legal-footer {
    width: 100%;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .products-page .page-intro > div,
  .radar-page .page-intro > div,
  .page-body:not(.products-page) .split-intro > div {
    max-width: 100% !important;
  }

  .products-page .page-intro h1,
  .products-page .page-intro p,
  .radar-page .page-intro h1,
  .radar-page .page-intro p,
  .page-body:not(.products-page) .page-intro h1,
  .page-body:not(.products-page) .page-intro p,
  .legal-hero h1,
  .legal-hero p {
    max-width: 100% !important;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .legal-hero p {
    max-width: min(100%, 320px) !important;
  }

  .legal-card p,
  .legal-card li {
    max-width: min(100%, 320px);
    overflow-wrap: break-word;
  }

  .legal-card a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .page-body .topbar,
  .home-page .topbar,
  .products-page .topbar {
    padding-inline: 8px;
  }

  .page-body .topbar-brand {
    max-width: calc(100vw - 62px);
  }

  .page-body .topbar-actions {
    max-width: 44px;
  }

  .page-body .topbar-actions::before,
  .page-body .topbar-actions .user-chip {
    display: none !important;
  }

  .products-page .page-intro {
    min-height: 232px;
    padding: 18px 16px;
  }

  .products-page .page-intro > div {
    width: calc(100% - 96px) !important;
    max-width: calc(100% - 96px) !important;
    padding-right: 0;
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.02rem, 9.7vw, 2.42rem);
  }

  .products-page .page-intro p {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .products-page .page-intro img {
    right: -26px;
    bottom: 16px;
    width: 120px;
    height: 120px;
    opacity: 0.5;
  }

  .products-page .products-area .toolbar {
    grid-template-areas:
      "search"
      "sort"
      "view"
      "count" !important;
    grid-template-columns: 1fr !important;
    grid-auto-columns: minmax(0, 1fr) !important;
  }

  .products-page .products-area .toolbar > *,
  .products-page .view-toggle {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch;
  }

  .privacy-banner {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }
}

/* Mobile layout refinement: alignment-only overrides, preserving existing behavior. */
@media (max-width: 760px) {
  .page-body .topbar,
  .home-page .topbar,
  .products-page .topbar {
    inset: auto !important;
    top: 8px !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    min-height: 64px;
    margin: 0 auto !important;
    padding: 9px 12px;
    overflow: visible;
  }

  .page-body .topbar-brand,
  .home-page .topbar-brand,
  .products-page .topbar-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 58px) !important;
    gap: 9px;
  }

  .page-body .brand-mark,
  .home-page .brand-mark,
  .products-page .brand-mark {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .page-body .topbar-brand strong,
  .home-page .topbar-brand strong,
  .products-page .topbar-brand strong {
    font-size: clamp(1.08rem, 5.6vw, 1.34rem);
    line-height: 1;
  }

  .page-body .topbar-actions,
  .home-page .topbar-actions,
  .products-page .topbar-actions {
    flex: 0 0 46px;
    width: 46px;
    max-width: 46px !important;
    justify-content: flex-end;
    overflow: visible;
  }

  .page-body .topbar-actions .icon-action,
  .home-page .topbar-actions .icon-action,
  .products-page .topbar-actions .icon-action {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .page-body .dashboard-main,
  .page-body .page-main,
  .home-page .home-main,
  .products-page .dashboard-main {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    gap: 12px;
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .products-page .top-nav {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto !important;
    max-width: none !important;
    height: 64px;
    padding: 6px;
    border-radius: 22px;
    overflow: hidden;
  }

  .products-page .top-nav a {
    min-height: 50px;
    padding: 0 3px;
    font-size: clamp(0.66rem, 2.9vw, 0.74rem);
    line-height: 1.08;
  }

  .products-page .page-main {
    padding-top: 12px;
  }

  .products-page .page-intro {
    min-height: 218px;
    border-radius: 23px;
    padding: 18px 16px;
  }

  .products-page .page-intro > div {
    width: min(100%, 285px) !important;
    max-width: calc(100% - 96px) !important;
  }

  .products-page .page-intro .hero-kicker {
    width: fit-content;
    max-width: 100%;
    padding: 8px 16px;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .products-page .page-intro h1 {
    margin-top: 14px;
    font-size: clamp(2.25rem, 10.8vw, 3rem);
    line-height: 0.98;
  }

  .products-page .page-intro p {
    max-width: 250px;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .products-page .page-intro img {
    position: absolute;
    right: 6px;
    bottom: 5px;
    width: 126px;
    height: 126px;
    opacity: 0.74;
  }

  .products-page .monitor-console {
    gap: 12px;
  }

  .products-page .products-area .toolbar {
    display: grid;
    grid-template-areas:
      "search search"
      "sort view"
      "count count" !important;
    grid-template-columns: minmax(0, 1fr) minmax(88px, 96px) !important;
    align-items: stretch;
    gap: 10px;
  }

  .products-page .products-area .toolbar > * {
    min-width: 0;
  }

  .products-page .products-area .search-box {
    grid-area: search;
  }

  .products-page .products-area .search-box input {
    min-height: 54px;
    border-radius: 17px;
    font-size: 0.92rem;
    padding-right: 14px;
  }

  .products-page .products-area .toolbar select {
    grid-area: sort;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px;
    border-radius: 16px;
    padding-inline: 14px 34px;
    font-size: 0.88rem;
  }

  .products-page .view-toggle {
    grid-area: view;
    align-self: stretch;
    justify-self: stretch;
    width: 100% !important;
    min-width: 0;
    max-width: 96px !important;
    min-height: 50px;
    padding: 5px;
    border-radius: 16px;
  }

  .products-page .view-toggle button {
    min-width: 0;
    min-height: 40px;
    padding: 0;
  }

  .products-page .products-count {
    grid-area: count;
    padding-inline: 2px;
  }

  .products-page .product-grid,
  .products-page .product-grid.product-card-view,
  .products-page .product-grid.product-list-view {
    gap: 12px;
    padding-bottom: 16px;
  }

  .products-page .pagination-bar {
    margin-bottom: 6px;
  }
}

@media (max-width: 560px) {
  .products-page .page-intro {
    min-height: 206px;
  }

  .products-page .page-intro > div {
    width: calc(100% - 86px) !important;
    max-width: calc(100% - 86px) !important;
  }

  .products-page .page-intro h1 {
    font-size: clamp(2.12rem, 10.2vw, 2.66rem);
  }

  .products-page .page-intro p {
    max-width: 225px;
    font-size: 0.86rem;
  }

  .products-page .page-intro img {
    position: absolute;
    right: 4px;
    bottom: 8px;
    width: 108px;
    height: 108px;
    opacity: 0.68;
  }
}

@media (max-width: 380px) {
  .products-page .top-nav {
    height: 62px;
    padding: 5px;
  }

  .products-page .top-nav a {
    min-height: 48px;
    font-size: 0.64rem;
  }

  .products-page .page-intro > div {
    width: calc(100% - 72px) !important;
    max-width: calc(100% - 72px) !important;
  }

  .products-page .page-intro img {
    right: 4px;
    width: 94px;
    height: 94px;
  }
}

@media (max-width: 760px) {
  .alerts-page .table-wrap {
    width: 100%;
    margin-inline: 0;
    overflow: hidden;
  }

  .alerts-page .alerts-card .panel-link,
  .alerts-page .upcoming-card .panel-link {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 640px) {
  .login-screen .login-showcase {
    min-height: 560px;
    padding: 26px 18px 168px;
  }

  .login-screen .login-showcase-copy {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin-top: 24px;
  }

  .login-screen .login-showcase-copy h2 {
    max-width: 100%;
    font-size: clamp(2.12rem, 10.8vw, 2.72rem);
    line-height: 1.02;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .login-screen .login-showcase-copy p {
    max-width: min(100%, 310px);
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .login-screen .login-panda {
    right: 0;
    bottom: 150px;
    width: 160px;
    height: 160px;
    opacity: 0.78;
  }

  .login-screen .login-showcase-grid {
    inset: auto 18px 24px;
  }
}

@media (max-width: 420px) {
  .login-screen .login-showcase {
    min-height: 538px;
    padding: 24px 16px 158px;
  }

  .login-screen .login-showcase-copy h2 {
    font-size: clamp(2rem, 10.2vw, 2.38rem);
  }

  .login-screen .login-showcase-copy p {
    max-width: min(100%, 286px);
    font-size: 0.9rem;
  }

  .login-screen .login-panda {
    right: 2px;
    bottom: 142px;
    width: 142px;
    height: 142px;
  }
}

/* Mobile legal footer: keep links aligned above the fixed bottom navigation. */
@media (max-width: 760px) {
  .legal-footer {
    width: calc(100% - 20px) !important;
    max-width: 420px !important;
    margin: 16px auto 24px !important;
    color: #3f5149;
    overflow: visible !important;
  }

  .products-page .legal-footer {
    margin-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .legal-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    border-color: rgba(13, 91, 66, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(20, 72, 54, 0.08);
    text-align: left;
  }

  .legal-footer-brand {
    width: 100%;
    max-width: none;
  }

  .legal-footer-brand strong {
    font-size: 1rem;
    line-height: 1.1;
  }

  .legal-footer-brand p {
    max-width: 100%;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .legal-footer nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    max-width: none;
  }

  .legal-footer a,
  .legal-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 13px;
    background: #f3fff9;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
    touch-action: manipulation;
  }

  .legal-footer button[data-privacy-preferences] {
    grid-column: 1 / -1;
  }

  .legal-footer a:active,
  .legal-footer button:active {
    transform: scale(0.98);
  }
}

@media (max-width: 380px) {
  .legal-footer nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile product view switch: make "Cards" and "Lista" visually distinct. */
@media (max-width: 760px) {
  .products-page .products-area .toolbar {
    grid-template-areas:
      "search search"
      "sort view"
      "count count" !important;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 148px) !important;
  }

  .products-page .view-toggle {
    max-width: 148px !important;
    min-height: 54px;
    gap: 6px;
    padding: 5px;
  }

  .products-page .view-toggle button {
    display: grid;
    flex: 1 1 0;
    align-content: center;
    justify-items: center;
    gap: 3px;
    width: auto;
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    touch-action: manipulation;
    transition: transform 150ms ease-out, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
  }

  .products-page .view-toggle button[data-view-mode="grid"] {
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px) auto;
    column-gap: 4px;
    row-gap: 3px;
  }

  .products-page .view-toggle button[data-view-mode="list"] {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 2px) auto;
    row-gap: 4px;
  }

  .products-page .view-toggle button::after {
    grid-column: 1 / -1;
    color: currentColor;
    content: "Cards";
    font-size: 0.68rem;
    font-style: normal;
    line-height: 1;
  }

  .products-page .view-toggle button[data-view-mode="list"]::after {
    content: "Lista";
  }

  .products-page .view-toggle i {
    margin: 0;
  }

  .products-page .view-toggle button:active {
    transform: scale(0.97);
  }

  .products-page .product-grid.product-card-view {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .products-page .product-grid.product-list-view {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .products-page .product-grid.product-list-view .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
    border-radius: 18px;
  }

  .products-page .product-grid.product-list-view .product-image-link {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
    border-radius: 18px 0 0 18px;
    padding: 10px 8px;
  }

  .products-page .product-grid.product-list-view .product-image {
    width: 100%;
    height: 100%;
    max-height: 126px;
    object-fit: contain;
  }

  .products-page .product-grid.product-list-view .product-body {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    min-height: 0;
    padding: 10px;
  }

  .products-page .product-grid.product-list-view .product-meta {
    position: static;
    display: flex;
    order: -1;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    pointer-events: auto;
  }

  .products-page .product-grid.product-list-view .source-badge {
    max-width: calc(100% - 74px);
  }

  .products-page .product-grid.product-list-view .change-badge {
    flex: 0 0 auto;
  }

  .products-page .product-grid.product-list-view .product-title {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .products-page .product-grid.product-list-view .product-seller {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    color: #64756e;
    font-size: 0.72rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .products-page .product-grid.product-list-view .product-note,
  .products-page .product-grid.product-list-view .history-strip {
    display: none;
  }

  .products-page .product-grid.product-list-view .price-row {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    margin-top: 0;
    text-align: left;
  }

  .products-page .product-grid.product-list-view .product-price {
    font-size: 1rem;
    line-height: 1.08;
  }

  .products-page .product-grid.product-list-view .price-change,
  .products-page .product-grid.product-list-view .product-rating {
    font-size: 0.7rem;
    line-height: 1.18;
  }

  .products-page .product-grid.product-list-view .product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(74px, auto);
    gap: 6px;
    min-width: 0;
    margin-top: 2px;
    padding-top: 0;
  }

  .products-page .product-grid.product-list-view .product-link,
  .products-page .product-grid.product-list-view .product-alert-button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.76rem;
    padding: 0 8px;
  }
}

@media (max-width: 380px) {
  .products-page .products-area .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(122px, 132px) !important;
  }

  .products-page .view-toggle {
    max-width: 132px !important;
  }

  .products-page .product-grid.product-list-view .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .products-page .product-grid.product-list-view .product-body {
    padding: 9px;
  }
}

/* Product hero compact alignment pass. */
.products-page .page-main {
  gap: clamp(16px, 1.8vw, 24px);
}

.products-page .page-intro {
  min-height: clamp(270px, 18vw, 340px);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  overflow: hidden;
  padding: clamp(24px, 2.8vw, 38px) clamp(30px, 4.2vw, 56px);
}

.products-page .page-intro::after {
  top: clamp(24px, 3vw, 42px);
  right: min(36%, 520px);
}

.products-page .page-intro > div {
  align-self: center;
  max-width: min(620px, 55vw) !important;
}

.products-page .page-intro .hero-kicker {
  margin-bottom: clamp(14px, 1.5vw, 18px);
}

.products-page .page-intro h1 {
  max-width: min(100%, 640px) !important;
  margin-top: 0;
  margin-bottom: clamp(10px, 1vw, 14px);
  font-size: clamp(2.95rem, 4.1vw, 4.25rem);
  line-height: 0.94;
}

.products-page .page-intro p {
  max-width: min(100%, 31rem) !important;
  margin-top: 0;
  font-size: clamp(0.98rem, 0.96vw, 1.08rem);
  line-height: 1.45;
}

.products-page .page-intro img {
  top: 52%;
  right: clamp(74px, 9vw, 148px);
  bottom: auto;
  width: clamp(218px, 17vw, 292px);
  height: clamp(218px, 17vw, 292px);
  transform: translateY(-50%);
}

@media (max-width: 1180px) {
  .products-page .page-intro {
    min-height: clamp(270px, 25vw, 330px);
    padding: 24px clamp(22px, 3vw, 34px);
  }

  .products-page .page-intro > div {
    max-width: min(440px, 48vw) !important;
  }

  .products-page .page-intro h1 {
    max-width: min(100%, 440px) !important;
    font-size: clamp(2.35rem, 5vw, 3.35rem);
  }

  .products-page .page-intro img {
    right: clamp(28px, 5vw, 60px);
    width: clamp(196px, 22vw, 250px);
    height: clamp(196px, 22vw, 250px);
  }
}

@media (max-width: 760px) {
  .products-page .page-main {
    gap: 12px;
  }

  .products-page .page-intro {
    min-height: 186px;
    padding: 16px;
    border-radius: 22px;
  }

  .products-page .page-intro > div {
    width: calc(100% - 96px) !important;
    max-width: calc(100% - 96px) !important;
  }

  .products-page .page-intro .hero-kicker {
    margin-bottom: 10px;
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .products-page .page-intro h1 {
    max-width: 9.8ch !important;
    margin-bottom: 8px;
    font-size: clamp(1.9rem, 8.8vw, 2.58rem);
    line-height: 0.94;
  }

  .products-page .page-intro p {
    max-width: 235px !important;
    font-size: 0.84rem;
    line-height: 1.34;
  }

  .products-page .page-intro img {
    top: auto;
    right: 4px;
    bottom: 8px;
    width: 108px;
    height: 108px;
    opacity: 0.72;
    transform: none;
  }
}

@media (max-width: 430px) {
  .products-page .page-intro {
    min-height: 174px;
    padding: 15px;
  }

  .products-page .page-intro > div {
    width: calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
  }

  .products-page .page-intro h1 {
    font-size: clamp(1.76rem, 9.8vw, 2.24rem);
  }

  .products-page .page-intro p {
    max-width: 210px !important;
    font-size: 0.8rem;
  }

  .products-page .page-intro img {
    right: -12px;
    bottom: 8px;
    width: 92px;
    height: 92px;
    opacity: 0.58;
  }
}

/* Mobile polish pass: tighter first viewport without changing site behavior. */
@media (max-width: 760px) {
  .home-hero {
    gap: 10px !important;
    padding: 20px 18px 16px !important;
  }

  .home-hero h1 {
    margin-top: 14px !important;
    font-size: clamp(1.74rem, 7.4vw, 2.18rem) !important;
    line-height: 1.04 !important;
  }

  .home-hero p {
    margin-top: 10px !important;
    font-size: 0.9rem !important;
    line-height: 1.36 !important;
  }

  .home-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px !important;
    margin-top: 14px !important;
  }

  .home-hero-actions .primary-button,
  .home-hero-actions .secondary-button {
    min-height: 44px !important;
    padding-inline: 10px !important;
    font-size: 0.82rem !important;
  }

  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 14px !important;
  }

  .home-stats div {
    padding: 9px 7px !important;
  }

  .home-stats dt {
    font-size: clamp(1rem, 4.4vw, 1.22rem) !important;
  }

  .home-stats dd {
    font-size: 0.68rem !important;
    line-height: 1.16 !important;
  }

  .home-hero-visual {
    min-height: 128px !important;
    border-radius: 20px !important;
  }

  .home-hero-visual img {
    width: min(190px, 58vw) !important;
    height: 128px !important;
  }

  .products-page .page-intro {
    min-height: 0 !important;
    padding: 16px !important;
  }

  .products-page .page-intro > div {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 82px;
  }

  .products-page .page-intro .hero-kicker {
    margin-bottom: 8px !important;
    padding: 7px 12px !important;
    font-size: 0.72rem !important;
  }

  .products-page .page-intro h1 {
    max-width: 13ch !important;
    margin: 0 0 8px !important;
    font-size: clamp(1.78rem, 8.6vw, 2.2rem) !important;
    line-height: 0.98 !important;
  }

  .products-page .page-intro p {
    max-width: min(100%, 258px) !important;
    font-size: 0.82rem !important;
    line-height: 1.32 !important;
  }

  .products-page .page-intro img {
    right: -6px !important;
    bottom: 10px !important;
    width: 96px !important;
    height: 96px !important;
    opacity: 0.55 !important;
  }

  .radar-page .page-intro,
  .alerts-page .page-intro,
  .page-body:not(.products-page) .page-intro {
    min-height: 0 !important;
    padding: 22px 18px 72px !important;
  }

  .radar-page .page-intro h1,
  .alerts-page .page-intro h1,
  .page-body:not(.products-page) .page-intro h1 {
    font-size: clamp(1.82rem, 7.4vw, 2.28rem) !important;
    line-height: 1.05 !important;
  }

  .radar-page .page-intro p,
  .alerts-page .page-intro p,
  .page-body:not(.products-page) .page-intro p {
    font-size: 0.9rem !important;
    line-height: 1.38 !important;
  }

  .radar-page .page-intro img,
  .alerts-page .page-intro img,
  .page-body:not(.products-page) .page-intro img {
    position: absolute !important;
    right: -2px !important;
    bottom: -16px !important;
    width: 118px !important;
    height: 118px !important;
    opacity: 0.18 !important;
  }

  .products-page .products-area .toolbar {
    gap: 9px !important;
    padding: 10px !important;
  }

  .products-page .products-area .search-box input {
    min-height: 50px !important;
  }

  .products-page .products-area .toolbar select,
  .products-page .view-toggle {
    min-height: 48px !important;
  }

  .privacy-banner {
    gap: 10px !important;
    padding: 12px !important;
  }

  .privacy-banner strong {
    font-size: 0.96rem !important;
  }

  .privacy-banner p {
    margin-top: 5px !important;
    font-size: 0.84rem !important;
    line-height: 1.34 !important;
  }

  .privacy-banner-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100% !important;
  }

  .privacy-banner-actions a {
    grid-column: 1 / -1;
    min-height: 30px;
    text-align: center;
  }

  .privacy-banner-actions .primary-button,
  .privacy-banner-actions .secondary-button {
    width: 100% !important;
    min-height: 42px !important;
    padding-inline: 8px !important;
    font-size: 0.8rem !important;
    white-space: normal !important;
  }
}

@media (max-width: 380px) {
  .home-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home-stats div {
    padding-inline: 5px !important;
  }

  .products-page .page-intro > div {
    padding-right: 66px;
  }

  .products-page .page-intro h1 {
    max-width: 12ch !important;
    font-size: clamp(1.66rem, 8.8vw, 2rem) !important;
  }

  .products-page .page-intro p {
    max-width: min(100%, 225px) !important;
  }

  .products-page .page-intro img {
    right: -10px !important;
    width: 82px !important;
    height: 82px !important;
  }

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

/* Responsive polish pass: desktop/tablet rhythm and compact small-phone footer. */
@media (min-width: 761px) and (max-width: 1024px) {
  .page-body .topbar,
  .home-page .topbar,
  .products-page .topbar {
    display: grid !important;
    grid-template-areas:
      "brand actions"
      "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    min-height: 0 !important;
    padding: 16px 18px !important;
    border-radius: 24px !important;
  }

  .page-body .topbar-brand,
  .home-page .topbar-brand,
  .products-page .topbar-brand {
    grid-area: brand;
    min-width: 0;
    max-width: none !important;
  }

  .page-body .brand-mark,
  .home-page .brand-mark,
  .products-page .brand-mark {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .page-body .topbar-brand small:not(.sr-only),
  .home-page .topbar-brand small:not(.sr-only),
  .products-page .topbar-brand small:not(.sr-only) {
    display: block !important;
    max-width: min(46vw, 440px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-body .top-nav,
  .home-page .top-nav,
  .products-page .top-nav {
    grid-area: nav;
    display: flex !important;
    justify-self: start;
    gap: 8px;
    width: auto;
    max-width: 100%;
  }

  .page-body .top-nav a,
  .home-page .top-nav a,
  .products-page .top-nav a {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    line-height: 1;
  }

  .page-body .topbar-actions,
  .home-page .topbar-actions,
  .products-page .topbar-actions {
    grid-area: actions;
    justify-self: end;
    min-width: 0;
  }

  .page-body .dashboard-main,
  .home-page .home-main,
  .products-page .dashboard-main {
    gap: 18px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr) !important;
    align-items: center;
    min-height: 0 !important;
    gap: 22px !important;
    padding: 30px !important;
  }

  .home-hero-copy {
    max-width: 100% !important;
  }

  .home-hero h1 {
    max-width: 15ch !important;
    font-size: clamp(2.35rem, 5.2vw, 3.2rem) !important;
    line-height: 1 !important;
  }

  .home-hero p {
    max-width: 44ch !important;
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }

  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .home-stats div {
    min-height: 78px;
    padding: 13px 12px !important;
  }

  .home-stats dt {
    font-size: clamp(1.35rem, 3vw, 1.7rem) !important;
  }

  .home-stats dd {
    font-size: 0.76rem !important;
  }

  .home-hero-visual {
    min-height: 300px !important;
    align-self: stretch;
  }

  .home-hero-visual img {
    width: min(282px, 32vw) !important;
    height: auto !important;
    max-height: 292px;
    object-fit: contain;
  }

  .home-hero .hero-float-card.top {
    top: 20px;
    left: 20px;
  }

  .home-hero .hero-float-card.bottom {
    right: 20px;
    bottom: 20px;
  }

  .products-page .page-intro {
    min-height: 300px !important;
    padding: 28px 30px !important;
  }

  .products-page .page-intro > div {
    width: min(100%, 450px) !important;
    max-width: min(100%, 450px) !important;
  }

  .products-page .page-intro h1 {
    max-width: 12ch !important;
    font-size: clamp(2.7rem, 6.2vw, 3.5rem) !important;
    line-height: 0.98 !important;
  }

  .products-page .page-intro p {
    max-width: 34rem !important;
  }

  .products-page .page-intro img {
    position: absolute !important;
    right: clamp(28px, 7vw, 72px) !important;
    bottom: 18px !important;
    width: clamp(178px, 23vw, 220px) !important;
    height: clamp(178px, 23vw, 220px) !important;
    opacity: 0.74 !important;
  }

  .radar-page .page-intro,
  .page-body:not(.products-page) .page-intro {
    min-height: 360px !important;
    padding: 34px 38px !important;
  }

  .radar-page .page-intro h1,
  .page-body:not(.products-page) .page-intro h1 {
    max-width: 16ch !important;
    font-size: clamp(2.45rem, 5.2vw, 3.25rem) !important;
  }

  .radar-page .page-intro p,
  .page-body:not(.products-page) .page-intro p {
    max-width: 46ch !important;
  }

  .radar-page .page-intro img,
  .page-body:not(.products-page) .page-intro img {
    position: absolute !important;
    right: 24px !important;
    bottom: -8px !important;
    width: 190px !important;
    height: 190px !important;
    opacity: 0.22 !important;
  }

  .products-page .monitor-console {
    display: grid !important;
    grid-template-columns: minmax(240px, 250px) minmax(0, 1fr) !important;
    align-items: start;
    gap: 18px !important;
  }

  .products-page .filter-panel {
    position: sticky !important;
    top: 116px;
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    padding: 18px !important;
  }

  .products-page .filter-heading,
  .products-page .filter-section,
  .products-page .filter-trust-card {
    grid-column: 1 / -1 !important;
  }

  .products-page .filter-panel::-webkit-scrollbar {
    width: 8px;
  }

  .products-page .filter-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(12, 129, 91, 0.24);
  }

  .products-page .filter-section {
    gap: 10px !important;
  }

  .products-page .category-button {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px !important;
    align-items: center;
  }

  .products-page .category-button .category-label {
    justify-self: start !important;
    overflow: hidden;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .products-page .category-button span:last-child {
    justify-self: end !important;
    padding-left: 8px;
    text-align: right !important;
  }

  .products-page .category-button,
  .products-page .source-choice,
  .products-page .rating-filter {
    min-height: 42px !important;
  }

  .products-page .price-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .products-page .range-separator {
    display: none;
  }

  .products-page .products-area {
    min-width: 0;
  }

  .products-page .products-area .toolbar {
    grid-template-areas:
      "search search search"
      "count sort view" !important;
    grid-template-columns: minmax(0, 1fr) 158px 96px !important;
    align-items: center;
    gap: 12px !important;
  }

  .products-page .products-area .search-box {
    grid-area: search;
  }

  .products-page .products-count {
    grid-area: count;
  }

  .products-page .products-area .toolbar select {
    grid-area: sort;
    justify-self: end;
    width: 158px !important;
    min-width: 0;
  }

  .products-page .view-toggle {
    grid-area: view;
    justify-self: end;
    width: 96px !important;
    max-width: 96px !important;
    margin-right: 0;
  }

  .products-page .product-grid.product-card-view {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important;
    gap: 12px !important;
  }
}

@media (min-width: 1181px) {
  .home-hero {
    min-height: clamp(520px, 42vw, 620px);
  }

  .products-page .page-intro {
    min-height: clamp(260px, 18vw, 318px);
  }

  .products-page .products-area .toolbar {
    padding: 18px !important;
  }
}

@media (max-width: 760px) {
  .product-card,
  .primary-button,
  .secondary-button,
  .text-button,
  .view-toggle button,
  .top-nav a,
  .legal-footer a,
  .legal-footer button {
    touch-action: manipulation;
  }

  .product-link:active,
  .product-alert-button:active,
  .primary-button:active,
  .secondary-button:active,
  .view-toggle button:active,
  .top-nav a:active {
    transform: scale(0.97);
  }
}

@media (max-width: 380px) {
  .legal-footer nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .legal-footer-inner {
    gap: 10px !important;
    padding: 12px !important;
  }

  .legal-footer-brand p {
    display: none;
  }

  .legal-footer a,
  .legal-footer button {
    min-height: 40px !important;
  }

  .legal-footer button[data-privacy-preferences] {
    grid-column: 1 / -1;
  }
}
