:root {
  --bg: #e7ecef;
  --surface: rgba(246, 249, 251, 0.94);
  --surface-strong: #ffffff;
  --text: #13212b;
  --muted: #5b6b77;
  --line: rgba(19, 33, 43, 0.12);
  --accent: #1d4ed8;
  --accent-strong: #1e3a8a;
  --secondary: #0f766e;
  --secondary-strong: #115e59;
  --judicial: #9d174d;
  --glow: rgba(29, 78, 216, 0.18);
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.05), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(34, 197, 94, 0.04), transparent 18%),
    linear-gradient(180deg, #010204 0%, #05070b 38%, #020406 100%);
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px;
  overflow: visible;
}

.authGate {
  min-height: calc(100vh - 56px);
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px 0 40px;
}

.authGate.hidden {
  display: none !important;
}

.authBackdrop {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(74, 222, 128, 0.12), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(160deg, rgba(2, 6, 12, 0.98), rgba(7, 10, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 34px 80px rgba(0, 0, 0, 0.38);
}

.authPanel {
  width: min(1120px, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(340px, 430px);
  gap: 28px;
  align-items: stretch;
}

.authBrandBlock,
.authCard {
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.authBrandBlock {
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 18px;
  color: #f8fbff;
  background:
    linear-gradient(140deg, rgba(5, 10, 17, 0.9), rgba(5, 10, 17, 0.68)),
    radial-gradient(circle at 70% 20%, rgba(74, 222, 128, 0.08), transparent 20%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.authEyebrow {
  margin: 0;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.authBrandTitle {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.authLead {
  margin: 0;
  max-width: 560px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.authHighlights span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
}

.authCard {
  padding: 24px;
  background: rgba(9, 14, 22, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 55px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
  align-content: start;
}

.authModeSwitch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.authModeBtn {
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  background: transparent;
  color: rgba(226, 232, 240, 0.74);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.authModeBtn.is-active {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(30, 64, 175, 0.92));
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.2);
}

.googleAuthBtn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 248, 0.95));
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.googleAuthBtn:hover,
.authSubmitBtn:hover,
.authModeBtn:hover {
  transform: translateY(-1px);
}

.googleAuthBtn.is-disabled,
.googleAuthBtn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.googleAuthIcon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  flex: 0 0 46px;
}

.googleAuthIcon svg {
  width: 24px;
  height: 24px;
}

.googleAuthCopy {
  display: grid;
  text-align: left;
}

.googleAuthCopy strong {
  color: #0f172a;
  font-size: 1rem;
}

.googleAuthCopy small {
  color: #475569;
  font-size: 0.82rem;
}

.authDivider {
  position: relative;
  text-align: center;
  color: rgba(148, 163, 184, 0.76);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authDivider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(148, 163, 184, 0.14);
}

.authDivider span {
  position: relative;
  padding: 0 12px;
  background: rgba(9, 14, 22, 0.92);
}

.authForm {
  display: grid;
  gap: 14px;
}

.authField {
  display: grid;
  gap: 8px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 700;
}

.authField input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fbff;
  font: inherit;
}

.authField input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.authField input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.08);
}

.authSubmitBtn {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  color: #03110a;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.22);
}

.authHelperText {
  margin: 0;
  color: rgba(148, 163, 184, 0.84);
  font-size: 0.84rem;
  line-height: 1.55;
}

.hero,
.toolbar,
.summary,
.listRow,
.iconCard {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero,
.toolbar,
.summary {
  position: relative;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-radius: 30px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 18, 32, 0.9) 0%, rgba(7, 18, 32, 0.58) 38%, rgba(7, 18, 32, 0.18) 66%, rgba(7, 18, 32, 0.06) 100%),
    url("/static/hero-reference.png") center/cover no-repeat;
  color: #f8fbff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 54%, rgba(96, 165, 250, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(45, 212, 191, 0.04), transparent 26%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.06), transparent 35%),
    linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.04));
  pointer-events: none;
}

.heroCopy {
  max-width: 620px;
  position: relative;
  z-index: 1;
  padding-top: 0;
  transform: translateY(10px);
}

.heroPulse {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.18) 0 12%, rgba(22, 101, 52, 0.08) 12% 26%, rgba(3, 32, 18, 0.94) 26% 100%);
  border: 2px solid rgba(74, 222, 128, 0.24);
  overflow: hidden;
  box-shadow:
    inset 0 0 40px rgba(34, 197, 94, 0.18),
    0 0 40px rgba(34, 197, 94, 0.1);
}

.heroPulse::before,
.heroPulse::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.heroPulse::after {
  inset: 44px;
}

.heroPulseGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 50%;
}

.heroPulseCross {
  position: absolute;
  inset: 0;
}

.heroPulseCross::before,
.heroPulseCross::after {
  content: "";
  position: absolute;
  background: rgba(74, 222, 128, 0.16);
}

.heroPulseCross::before {
  top: 50%;
  left: 18px;
  right: 18px;
  height: 1px;
  transform: translateY(-50%);
}

.heroPulseCross::after {
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 1px;
  transform: translateX(-50%);
}

.radarSweep {
  position: absolute;
  inset: -12%;
  background: conic-gradient(from 160deg, transparent 0 74%, rgba(74, 222, 128, 0.5) 86%, rgba(34, 197, 94, 0.18) 92%, transparent 100%);
  animation: sweep 4.2s linear infinite;
  border-radius: 50%;
}

.radarDot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #86efac;
  box-shadow:
    0 0 10px rgba(134, 239, 172, 0.85),
    0 0 0 6px rgba(34, 197, 94, 0.08);
}

.dotOne { top: 46px; left: 146px; }
.dotTwo { top: 112px; left: 62px; }
.dotThree { top: 150px; left: 126px; }

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.heroAside {
  min-width: 240px;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.alertsHeroActions {
  position: relative;
  z-index: 1;
}

.heroCornerAction {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.heroActionGroup {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.heroHint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: rgba(143, 211, 255, 0.92);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  position: absolute;
  top: 18px;
  left: 28px;
  z-index: 2;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  color: #f8fbff;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 16px rgba(125, 211, 252, 0.12),
    0 0 1px rgba(255, 255, 255, 0.5);
}

.brandTitle {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  flex-wrap: wrap;
}

.brandWordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.brandLeilao {
  letter-spacing: 0.02em;
}

.brandX {
  margin-left: -0.03em;
  color: #4ade80;
  text-shadow:
    0 0 16px rgba(74, 222, 128, 0.42),
    0 0 1px rgba(255, 255, 255, 0.32);
}

.brandRadar {
  color: #f8fbff;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.84);
  text-shadow: 0 1px 10px rgba(7, 18, 32, 0.45);
}

.primary,
.viewBtn,
.chip,
.cityToggle {
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-strong));
  color: white;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px var(--glow);
  font-size: 0.86rem;
  position: absolute;
  top: 18px;
  right: 18px;
}

.primary:hover,
.viewBtn:hover,
.chip:hover,
.cityToggle:hover {
  transform: translateY(-1px);
}

.toolbar {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  gap: 18px;
  border-radius: 26px;
  overflow: visible;
  z-index: 6000;
}

.toolbarTop,
.toolbarBottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  position: relative;
}

.toolbarTop {
  z-index: 7000;
}

.toolbarBottom {
  z-index: 8000;
}

.toolbar.city-open .toolbarTop {
  z-index: 9000;
}

.toolbar.city-open .toolbarBottom {
  z-index: 8000;
}

.toolbar.bank-open .toolbarTop {
  z-index: 9050;
}

.toolbar.bank-open .toolbarBottom {
  z-index: 8000;
}

.primaryFilters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.toolbarActions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subtleNavBtn {
  border: 1px solid rgba(29, 78, 216, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.subtleNavBtn:hover {
  color: var(--accent-strong);
  border-color: rgba(29, 78, 216, 0.2);
  background: rgba(234, 241, 255, 0.92);
}

.heroNavBtn {
  margin-top: 42px;
  margin-bottom: -4px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(10px);
}

.subtleNavBtn.is-current {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: white;
}

label,
.cityFilter,
.bankFilter {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.filterLabel {
  font-size: 0.95rem;
}

select,
input[type="search"],
.cityToggle {
  min-width: 230px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  font: inherit;
  color: var(--text);
}

.cityFilter {
  position: relative;
  min-width: 280px;
  z-index: 8500;
}

.bankFilter {
  position: relative;
  min-width: 230px;
  z-index: 8600;
}

.cityToggle {
  text-align: left;
  background: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cityCaret {
  color: var(--muted);
  font-size: 0.9rem;
}

.cityDropdown {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  right: 0;
  width: 320px;
  max-height: 420px;
  padding: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 9500;
}

.bankDropdown {
  width: 280px;
  max-height: 320px;
  overflow: auto;
  z-index: 9550;
}

.cityDropdown.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.cityOptions {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.bankOptions {
  display: grid;
  gap: 6px;
}

.cityOption,
.cityEmpty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(111, 57, 77, 0.08);
  font-weight: 600;
}

.bankOption {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(111, 57, 77, 0.08);
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.bankOption:hover {
  border-color: rgba(29, 78, 216, 0.18);
  background: rgba(237, 244, 255, 0.92);
}

.bankOption.is-active {
  border-color: rgba(29, 78, 216, 0.22);
  background: rgba(226, 236, 255, 0.92);
}

.bankOptionIcon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.bankOptionIcon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.bankOptionText {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.citySelectAll {
  margin-top: 10px;
}

.chips,
.viewSwitch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.chip,
.viewBtn {
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.chip.is-active,
.viewBtn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.chipHint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.8;
}

.chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: 250px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5f9ec;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 9800;
}

.chip[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.summary {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.alertsPanel {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.alertsHeader,
.alertCardTop,
.alertCardActions,
.alertsMetaTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alertsTitle {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.05;
  color: #0f172a;
}

.alertsTitleIcon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.16), rgba(34, 158, 217, 0.06));
  box-shadow: inset 0 0 0 1px rgba(34, 158, 217, 0.12);
}

.alertsTitleIcon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.alertsEyebrow {
  margin: 0 0 6px;
  color: var(--secondary-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.alertsHeader h3 {
  margin: 0;
}

.alertsMetaTop {
  color: var(--muted);
  font-size: 0.88rem;
  justify-content: flex-end;
}

.alertsGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.alertForm,
.alertsList {
  display: grid;
  gap: 12px;
}

.alertForm {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.alertForm label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.fieldLabelRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.requiredPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c2d12;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(249, 115, 22, 0.18));
  border: 1px solid rgba(234, 88, 12, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.requiredPill.is-inline {
  margin: 0 4px;
}

.alertForm input,
.alertForm select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  font: inherit;
  color: var(--text);
}

.alertActiveCheck {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.alertActiveCheck input {
  width: auto;
}

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

.alertHintRequired {
  margin-top: -4px;
}

.primaryInlineBtn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-strong));
}

.logoutBtn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #f8fbff;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(2, 6, 23, 0.2);
  transition: 0.2s ease;
}

.logoutBtn:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(74, 222, 128, 0.24);
}

.alertHint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.alertCard {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.alertCard.is-paused {
  opacity: 0.82;
}

.alertCardTop strong {
  display: block;
  margin-bottom: 4px;
}

.alertCardTop span,
.alertCardMeta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.alertCardMeta {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.alertStatus {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.alertStatus.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.alertStatus.is-paused {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

.favoritesPanel {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: 0.24s ease;
}

.favoritesDock {
  display: grid;
  gap: 0;
}

.favoritesDockBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
}

.favoritesDockLead {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.favoritesDockIcon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.3));
  color: #8a5b00;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 1rem;
}

.favoritesDockText {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.favoritesDockText strong {
  font-size: 0.98rem;
}

.favoritesDockText span {
  color: var(--muted);
  font-size: 0.84rem;
}

.favoritesDockControls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dockModeBtn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.dockModeBtn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: white;
}

.favoritesDockBody {
  display: grid;
  gap: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.favoritesPanel.is-expanded .favoritesDockBody,
.favoritesPanel[data-mode="open"] .favoritesDockBody {
  max-height: 1600px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 14px;
}

.favoritesPanel[data-mode="closed"] .favoritesDockBar {
  opacity: 0.96;
}

.favoritesPanel[data-mode="auto"]:not(.is-expanded) {
  background: linear-gradient(135deg, rgba(246, 249, 251, 0.92), rgba(255, 255, 255, 0.88));
}

.favoritesPanel[data-mode="auto"]:not(.is-expanded) .favoritesDockBar {
  cursor: default;
}

.favoritesHeader,
.favoritesMeta,
.favoriteRow,
.favoriteActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.favoritesEyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.favoritesHeader h3,
.compareHeader h4 {
  margin: 0;
}

.favoritesMeta {
  margin-top: 10px;
  color: var(--muted);
}

.favoritesActions {
  justify-content: flex-end;
}

.secondaryBtn,
.ghostBtn,
.favoriteBtn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondaryBtn {
  background: #e9f1ff;
  color: var(--accent-strong);
}

.iconOnlyBtn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.fileIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}

.excelIcon {
  background: #107c41;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pdfIcon {
  background: #dc2626;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.clearIcon {
  background: #475569;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.ghostBtn {
  background: white;
  color: var(--text);
}

.favoriteBtn {
  background: #fff4d8;
  color: #8a5b00;
}

.favoriteBtn.is-active {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #472b00;
}

.favoritesTable {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.favoriteRow {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.favoriteMain {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 240px;
}

.favoriteMain span,
.favoritePrice span,
.compareCheck span {
  color: var(--muted);
}

.favoritePrice {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.favoriteActions {
  justify-content: flex-end;
}

.compareCheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.comparePanel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compareHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.compareGrid {
  display: grid;
  grid-template-columns: 180px repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.compareLabels,
.compareColumn {
  display: grid;
  gap: 10px;
}

.compareCell {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.compareHead {
  font-weight: 800;
}

.sourceLine {
  margin-top: 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface-strong);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
}

.results {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.pagination {
  margin-top: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.paginationWrap,
.pagerNumbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.paginationWrap {
  justify-content: center;
}

.pagerBtn {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pagerBtn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.pagerBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagerDots,
.paginationMeta {
  color: var(--muted);
}

.paginationMeta {
  margin-top: 10px;
  text-align: center;
}

.results.icon-view {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.iconCard {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  overflow: hidden;
}

.thumbWrap {
  min-height: 220px;
  background:
    linear-gradient(140deg, rgba(29, 78, 216, 0.18), rgba(15, 118, 110, 0.16)),
    #dbe7f4;
}

.thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.cardBody {
  padding: 18px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 160, 0.12);
  color: var(--secondary-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge.judicial {
  background: rgba(180, 35, 90, 0.12);
  color: var(--judicial);
}

.badge.discount {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.bankMark {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(219, 234, 254, 0.55);
  border: 1px solid rgba(29, 78, 216, 0.12);
}

.bankIcon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bankMeta {
  display: grid;
  line-height: 1.15;
}

.bankMeta strong {
  font-size: 0.78rem;
}

.subtitle,
.meta,
.description,
.rowMeta,
.secondaryValue {
  color: var(--muted);
}

.description {
  line-height: 1.5;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.details div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.details dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.listRow {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(260px, 1fr) minmax(180px, 0.65fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
}

.listRow h2 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}

.listInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.listInfo span {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.listInfo strong,
.priceLabel {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.listPrice {
  display: grid;
  gap: 5px;
}

.listPrice strong {
  font-size: 1.15rem;
}

.listAction {
  display: flex;
  justify-content: flex-end;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actionLink {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
}

.empty {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.loadingState {
  min-height: 180px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.06), transparent 42%),
    linear-gradient(135deg, rgba(6, 17, 28, 0.94), rgba(10, 22, 34, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 50px rgba(0, 0, 0, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #e5f9ec;
}

.loadingRadar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 72px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.2) 0 16%, rgba(5, 20, 12, 0.96) 16% 100%);
  box-shadow:
    inset 0 0 22px rgba(34, 197, 94, 0.18),
    0 0 18px rgba(34, 197, 94, 0.1);
  overflow: hidden;
}

.loadingOrbit {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.loadingOrbit.orbitTwo {
  inset: 22px;
}

.loadingCore {
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.9);
  box-shadow: 0 0 12px rgba(134, 239, 172, 0.8);
}

.loadingSweep {
  position: absolute;
  inset: -10%;
  background: linear-gradient(90deg, transparent 0 46%, rgba(74, 222, 128, 0.72) 50%, transparent 54% 100%);
  transform-origin: 50% 50%;
  animation: loadingSweep 1.6s linear infinite;
  opacity: 0.9;
}

.loadingDot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbf7d0;
  box-shadow: 0 0 10px rgba(187, 247, 208, 0.8);
  animation: loadingBlink 1.4s ease-in-out infinite;
}

.loadingDot.dotA {
  top: 18px;
  right: 16px;
}

.loadingDot.dotB {
  left: 14px;
  bottom: 17px;
  animation-delay: 0.4s;
}

.loadingCopy {
  display: grid;
  gap: 6px;
}

.loadingCopy strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.loadingCopy span {
  color: rgba(229, 249, 236, 0.72);
  font-size: 0.92rem;
}

@keyframes loadingSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loadingBlink {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

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

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

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

  .listAction {
    justify-content: flex-start;
  }

  .compareGrid {
    grid-template-columns: 160px repeat(auto-fit, minmax(200px, 1fr));
  }
}

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

  .authGate {
    min-height: auto;
    padding: 12px 0 24px;
  }

  .authBrandBlock,
  .authCard {
    padding: 22px;
    border-radius: 24px;
  }

  .authBrandTitle {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero,
  .toolbar {
    padding: 18px;
  }

  .cityFilter,
  .cityDropdown {
    width: 100%;
    min-width: unset;
  }

  .cityDropdown {
    right: auto;
    left: 0;
  }

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

  .eyebrow {
    position: static;
    margin-bottom: 10px;
  }

  .heroCopy {
    padding-top: 0;
  }

  .heroAside {
    justify-items: start;
  }

  .primary {
    position: static;
  }

  .heroCornerAction,
  .heroActionGroup {
    position: static;
  }

  .heroActionGroup {
    flex-wrap: wrap;
  }

  .loadingState {
    flex-direction: column;
    text-align: center;
  }

  .favoritesDockBar,
  .alertsHeader,
  .alertCardTop,
  .alertCardActions {
    align-items: flex-start;
  }
}
