:root {
  --bg: #10141a;
  --bg-soft: #171d26;
  --panel: #1c2430;
  --line: #2c3645;
  --text: #e8edf4;
  --muted: #93a0b4;
  --accent: #e2a14a;
  --accent-2: #3d8bfd;
  --ria: #2bb673;
  --olx: #1f8ceb;
  --rst: #e26b4a;
  --danger: #ff6b6b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(226, 161, 74, 0.14), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(61, 139, 253, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  background-image:
    linear-gradient(rgba(16, 20, 26, 0.88), rgba(16, 20, 26, 0.94)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header {
  margin-bottom: 1rem;
}

.tagline {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tagline:empty {
  display: none;
  margin: 0;
}

.site-header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover .brand-mark {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 18px rgba(226, 161, 74, 0.22);
}

.site-header-menus {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav,
.account-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
}

.account-nav[hidden] {
  display: none !important;
}

.site-nav a,
.account-nav .nav-action {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0.25rem 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active,
.account-nav .nav-action:hover {
  color: var(--accent);
}

.nav-action-accent {
  color: var(--accent) !important;
}

.site-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.auth-name {
  font-size: 0.88rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-login-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 28px;
  flex-wrap: wrap;
}

.tg-login-slot[hidden] {
  display: none !important;
}

.tg-bot-login-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #2aabee;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.tg-bot-login-btn:hover {
  filter: brightness(1.06);
}

.tg-bot-login-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tg-login-wait {
  font-size: 0.78rem;
}

.nav-burger {
  display: none;
  margin-left: auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.ria-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.ria-link:hover { border-color: var(--accent); }

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.regions-label {
  position: relative;
}

.ms {
  position: relative;
}

.ms-toggle {
  width: 100%;
  height: 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  padding: 0 2rem 0 0.75rem;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.ms-toggle:hover {
  filter: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.ms-value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ms-caret {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ms.open .ms-caret {
  transform: translateY(-20%) rotate(225deg);
}

.ms-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ms-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
}

.ms-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ms-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.ms-all {
  font-weight: 600;
}

.ms-divider {
  height: 1px;
  margin: 0.25rem 0.4rem;
  background: var(--line);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-self: end;
}

label {
  display: grid;
  gap: 0.35rem;
}

label span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

select, button {
  width: 100%;
  height: 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  padding: 0 0.75rem;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8edf4' d='M1.4 1.2 6 5.8l4.6-4.6 1.1 1.1L6 8 0.3 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem 0.5rem;
  cursor: pointer;
}

select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

select::-ms-expand {
  display: none;
}

button {
  background: linear-gradient(180deg, #f0b45d, var(--accent));
  color: #1a1208;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}

button:hover { filter: brightness(1.05); }
button:disabled {
  opacity: 0.6;
  cursor: wait;
}

button.ms-toggle {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 400;
}

button.ms-toggle:hover {
  filter: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.status {
  min-height: 1.5rem;
  margin: 1rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  position: relative;
}

.board-stale-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 10, 16, 0.62);
  backdrop-filter: blur(1.5px);
  border-radius: var(--radius);
  cursor: pointer;
  pointer-events: auto;
}

.board-stale-overlay[hidden] {
  display: none !important;
}

.board-stale-msg {
  margin: 0;
  max-width: 18rem;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--panel) 88%, black 12%);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.board-stale-msg strong {
  color: var(--accent);
  font-weight: 750;
}

body.filters-stale #search-btn {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: search-pulse 1.6s ease-in-out infinite;
}

@keyframes search-pulse {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
}

body.filters-stale #watch-btn,
body.filters-stale #mobile-watch-cta {
  opacity: 0.42;
  pointer-events: none;
  filter: grayscale(0.25);
}

.column {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 420px;
  overflow: hidden;
}

.column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.col-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.col-collapse {
  display: none;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.col-collapse::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-20%) rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

.column h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.column[data-source="ria"] h2 { color: var(--ria); }
.column[data-source="olx"] h2 { color: var(--olx); }
.column[data-source="rst"] h2 { color: var(--rst); }

.count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}

.sort-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sort-btn {
  width: auto;
  min-width: 2.35rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.sort-btn .sort-type {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.sort-btn .sort-arrow {
  width: 0.7rem;
  height: 0.7rem;
  fill: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.sort-btn.active .sort-arrow {
  opacity: 1;
}

.sort-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  filter: none;
}

.sort-btn.active {
  color: #1a1208;
  background: linear-gradient(180deg, #f0b45d, var(--accent));
  border-color: transparent;
}

.list {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  max-height: 72vh;
  overflow: auto;
}

.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-main {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-1px);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: center;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.icon-btn:hover,
.icon-btn.on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.thumb {
  width: 88px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
  background: #0c1016;
  border: 1px solid var(--line);
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: var(--mono);
}

.card-body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.price {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.empty, .error {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.error { color: var(--danger); }

.tiny {
  padding: 0.4rem 0.7rem !important;
  font-size: 0.82rem !important;
  border-radius: 10px;
}

button.tiny,
.actions button.tiny {
  cursor: pointer;
}

.quota-pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.quota-pill:empty {
  display: none;
}

.side-panel {
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.75rem;
}

.side-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn-close-x {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-close-x:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  filter: none;
}

.side-panel-body {
  display: grid;
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
}

#fav-list {
  max-height: min(70vh, 560px);
  gap: 0.55rem;
}

.fav-card .card-main {
  grid-template-columns: 96px 1fr;
}

.fav-card .thumb {
  width: 96px;
  height: 72px;
}

.hist-item {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.hist-item:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  background: #1a222e;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: min(360px, calc(100vw - 2rem));
  font-weight: 600;
  font-size: 0.92rem;
}

.toast.toast-ok {
  background: color-mix(in srgb, var(--ria) 22%, #142018);
  border-color: color-mix(in srgb, var(--ria) 55%, var(--line));
  color: #d8f5e5;
}

.toast.toast-info {
  background: color-mix(in srgb, var(--accent-2) 22%, #121820);
  border-color: color-mix(in srgb, var(--accent-2) 50%, var(--line));
  color: #d6e8ff;
}

.toast.toast-err {
  background: color-mix(in srgb, var(--danger) 22%, #201416);
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
  color: #ffd6d6;
}

.mobile-cta-bar {
  display: none;
}

/* Pro: never show bottom «Оформити підписку» (even if CSS display overrides [hidden]) */
body.is-pro #mobile-plan-cta,
#mobile-plan-cta[hidden] {
  display: none !important;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  border: 1px solid var(--line);
}

.plan-pill.plan-free {
  color: var(--muted);
}

.plan-pill.plan-pro {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: rgba(226, 161, 74, 0.1);
}

.admin-plan-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.admin-plan-form select {
  width: auto;
  min-width: 5.5rem;
  height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.85rem;
}

.admin-plan-form button {
  width: auto;
  height: 2rem;
  padding: 0 0.65rem;
}

.admin-watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.15rem 0 0.55rem;
}

.admin-watch-chip {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255,255,255,0.02);
}

.admin-watch-row td {
  border-bottom: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  z-index: 140;
  padding: 1rem;
}

.modal[hidden] { display: none !important; }

.modal-card {
  width: min(960px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.watch-modal-card {
  width: min(440px, 100%);
}

.watch-modal-label {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.watch-modal-text {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.watch-modal-actions {
  margin-top: 0.25rem;
}

.watch-modal-actions .btn-link,
.watch-modal-actions button.btn-link {
  width: auto;
  height: auto;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
}

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

.compare-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.prose {
  max-width: 720px;
  line-height: 1.55;
}

.prose h1 { margin-top: 0; letter-spacing: -0.02em; }
.prose h2 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose .muted { color: var(--muted); }

.inner-page {
  display: grid;
  gap: 1.35rem;
  margin-top: 0.25rem;
  animation: page-in 420ms ease-out;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(226, 161, 74, 0.16), transparent 55%),
    radial-gradient(520px 200px at 100% 10%, rgba(61, 139, 253, 0.12), transparent 50%),
    color-mix(in srgb, var(--panel) 94%, white 6%);
  box-shadow: var(--shadow);
}

.page-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.page-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-lead {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #1a1208;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.btn-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-link.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.03);
}

.source-ria { color: var(--ria); border-color: color-mix(in srgb, var(--ria) 45%, var(--line)); }
.source-olx { color: var(--olx); border-color: color-mix(in srgb, var(--olx) 45%, var(--line)); }
.source-rst { color: var(--rst); border-color: color-mix(in srgb, var(--rst) 45%, var(--line)); }

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

.feature-tile {
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.feature-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--panel) 96%, white 4%);
}

.feature-tile h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.landing-links {
  margin-top: 1.25rem;
}

.landing-links h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.landing-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.landing-all {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.landing-all a {
  color: var(--accent);
}

.page-note {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  background: rgba(226, 161, 74, 0.06);
}

.page-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.page-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-note a {
  color: var(--accent);
}

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

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.2rem 1.3rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    color-mix(in srgb, var(--panel) 92%, white 8%);
  box-shadow: var(--shadow);
}

.pricing-card-accent {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(226, 161, 74, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    color-mix(in srgb, var(--panel) 92%, white 8%);
}

.plan-badge {
  margin: 0;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--ria);
  border: 1px solid color-mix(in srgb, var(--ria) 40%, var(--line));
  background: rgba(43, 182, 115, 0.08);
}

.plan-badge-soon {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: rgba(226, 161, 74, 0.08);
}

.pricing-card h2 {
  margin: 0.55rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.15rem 0 0.55rem;
  letter-spacing: -0.03em;
}

.plan-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.95rem;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 161, 74, 0.15);
}

.plan-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  overflow: hidden;
  transition: border-color 160ms ease;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 2.6rem 1rem 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
  border-color: var(--accent);
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--accent);
}

.muted { color: var(--muted); }

.admin-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.admin-card {
  width: min(420px, 100%);
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 94%, white 6%);
  box-shadow: var(--shadow);
}

.admin-card h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.admin-card label {
  display: grid;
  gap: 0.35rem;
}

.admin-card input {
  height: 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  padding: 0 0.75rem;
}

.admin-card a { color: var(--accent); }

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

.admin-dash-head h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.admin-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-dash-actions .active-period {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.25rem;
}

.admin-stat strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.85rem;
}

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

.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  padding: 1rem;
}

.admin-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.admin-table .num { text-align: right; font-family: var(--mono); }

.admin-feed {
  display: grid;
  gap: 0.45rem;
  max-height: 520px;
  overflow: auto;
}

.admin-feed-row {
  display: grid;
  grid-template-columns: 9.5rem 7rem 5rem 1fr;
  gap: 0.45rem;
  align-items: start;
  font-size: 0.82rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.admin-feed-row-geo {
  grid-template-columns: 9rem 6.5rem 7rem 4.5rem 1fr;
}

.admin-feed-row .mono {
  font-family: var(--mono);
  color: var(--muted);
}

.admin-feed-row .payload {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .list { max-height: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .pricing-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid,
  .admin-grid-3 { grid-template-columns: 1fr; }
  .admin-feed-row,
  .admin-feed-row-geo { grid-template-columns: 1fr 1fr; }

  .column {
    min-height: 0;
  }
  .column > .col-head {
    cursor: pointer;
    user-select: none;
  }
  .col-collapse {
    display: block;
  }
  .column.is-collapsed > .col-head {
    border-bottom-color: transparent;
  }
  .column.is-collapsed .list,
  .column.is-collapsed .sort-bar {
    display: none;
  }
  .column.is-collapsed .col-collapse::before {
    transform: translateY(10%) rotate(-135deg);
    border-color: var(--accent);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    margin-bottom: 0.85rem;
  }
  .site-header-bar {
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--panel) 94%, white 6%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: padding 160ms ease, gap 160ms ease, box-shadow 160ms ease;
  }
  .site-header-bar .brand {
    font-size: 1.05rem;
    gap: 0.45rem;
  }
  .site-header-bar .brand-mark {
    width: 28px;
    height: 28px;
  }
  .nav-burger {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.45rem;
    border-radius: 8px;
  }
  body.is-scrolled .site-header-bar {
    padding: 0.35rem 0.55rem;
    gap: 0.35rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  }
  body.is-scrolled .site-header-bar .brand {
    font-size: 0.95rem;
  }
  body.is-scrolled .site-header-bar .brand-mark {
    width: 24px;
    height: 24px;
  }
  body.is-scrolled .nav-burger {
    width: 1.9rem;
    height: 1.9rem;
    padding: 0.38rem;
  }
  .site-header-menus {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.15rem;
    border-top: 1px solid var(--line);
    max-height: min(70dvh, 32rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header-menus.is-open {
    display: flex;
  }
  .site-nav,
  .account-nav:not([hidden]) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
  }
  .site-nav a,
  .account-nav .nav-action {
    text-align: left;
    padding: 0.55rem 0.25rem;
    width: 100%;
  }
  .site-auth {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }
  .tg-login-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .tg-bot-login-btn {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
  .auth-name {
    max-width: none;
  }
}

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

  .cta-short { display: none; }
  .cta-full { display: inline; }

  .mobile-cta-bar:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.45rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--panel) 94%, black 6%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    transition: padding 160ms ease, gap 160ms ease;
  }
  .mobile-cta-bar:not([hidden]):has(#mobile-plan-cta:not([hidden])) {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  body.has-mobile-cta {
    padding-bottom: 4.4rem;
  }
  body.has-mobile-cta.is-scrolled {
    padding-bottom: 3.6rem;
  }
  .mobile-cta-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 650;
    background: rgba(255,255,255,0.03);
    line-height: 1.15;
  }
  .mobile-cta-plan[hidden] {
    display: none !important;
  }
  body.is-pro #mobile-plan-cta {
    display: none !important;
  }
  body.is-pro .mobile-cta-bar:not([hidden]) {
    grid-template-columns: 1fr;
  }
  body.is-pro #plan-request-btn {
    display: none !important;
  }
  .mobile-cta-watch {
    width: 100%;
    height: auto;
    min-height: 2.25rem;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: #2aabee;
    color: #fff;
    line-height: 1.15;
  }
  .mobile-cta-watch .cta-full,
  .mobile-cta-watch .cta-short {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-cta-tg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
  }
  body.is-scrolled .mobile-cta-bar:not([hidden]) {
    gap: 0.28rem;
    padding: 0.32rem 0.45rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
  }
  body.is-scrolled .cta-full { display: none; }
  body.is-scrolled .cta-short { display: inline; }
  body.is-scrolled .mobile-cta-plan,
  body.is-scrolled .mobile-cta-watch {
    min-height: 2rem;
    padding: 0.38rem 0.35rem;
    font-size: 0.74rem;
    border-radius: 8px;
  }
  body.is-scrolled .mobile-cta-tg {
    width: 0.85rem;
    height: 0.85rem;
  }
  .toast {
    bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
  body.is-scrolled .toast {
    bottom: calc(3.3rem + env(safe-area-inset-bottom, 0px));
  }
}
