:root {
  color-scheme: light;
  --blue: #1f73f1;
  --blue-dark: #1156cf;
  --blue-soft: #eaf3ff;
  --ink: #101936;
  --muted: #62708b;
  --line: #dde7f5;
  --panel: #ffffff;
  --surface: #f7faff;
  --green: #17a763;
  --green-soft: #e8f8f0;
  --orange: #f59d0c;
  --orange-soft: #fff4da;
  --violet: #7057d9;
  --violet-soft: #f0edff;
  --danger: #e65757;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(31, 55, 96, 0.1);
  --motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
}

html {
  scroll-behavior: smooth;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.24s var(--motion-smooth);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  transition: padding 0.24s var(--motion-smooth), gap 0.24s var(--motion-smooth);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sidebar-toggle,
.admin-sidebar-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sidebar > .sidebar-toggle,
.admin-sidebar > .admin-sidebar-toggle {
  align-self: center;
  width: 42px;
  height: 36px;
  min-height: 36px;
  margin-top: -12px;
  margin-bottom: 2px;
  border-radius: 10px;
}

.sidebar-toggle:hover,
.admin-sidebar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(31, 115, 241, 0.12);
}

.sidebar-toggle svg,
.admin-sidebar-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.24s ease;
}

.app-shell.sidebar-collapsed .sidebar {
  gap: 16px;
  padding: 22px 14px;
}

.app-shell.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .brand > span:not(.brand-mark),
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .balance-card,
.app-shell.sidebar-collapsed .trust-card {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-head,
.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
}

.app-shell.sidebar-collapsed .nav-item {
  width: 48px;
  min-height: 48px;
  justify-self: center;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong {
  color: var(--blue);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 22px rgba(31, 115, 241, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.balance-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2379ff 0%, #1164f4 56%, #0a8eff 100%);
  box-shadow: 0 16px 32px rgba(31, 115, 241, 0.24);
}

.balance-card .eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
}

.balance-card strong {
  display: block;
  padding-right: 0;
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.balance-meta {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.92;
}

.balance-meta:first-child {
  margin-top: 0;
}

.full {
  width: 100%;
}

.balance-card .icon-button.light {
  position: absolute;
  top: 24px;
  right: 22px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  transition: transform 0.22s var(--motion-smooth), box-shadow 0.22s var(--motion-smooth), background 0.22s var(--motion-smooth), border-color 0.22s var(--motion-smooth);
}

.button.is-loading,
button.is-loading {
  cursor: wait;
  pointer-events: none;
}

.button-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: maxSpin 0.72s linear infinite;
}

@keyframes maxSpin {
  to {
    transform: rotate(360deg);
  }
}

.button:hover,
.icon-button:hover,
.nav-item:hover,
.top-link:hover {
  transform: translateY(-1px);
}

.button:active,
.icon-button:active,
.nav-item:active {
  transform: translateY(0);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.button > span,
.admin-side-actions button > span,
.admin-panel-actions button > span {
  min-width: 0;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #2379ff, #0e63ec);
  box-shadow: 0 14px 28px rgba(31, 115, 241, 0.24);
}

.button.white {
  color: var(--blue);
}

.button.outline {
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
}

.button.small {
  min-height: 36px;
  padding-inline: 14px;
}

.button.link {
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.button.center {
  margin: 10px auto 0;
}

.icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-button svg {
  width: 23px;
  height: 23px;
}

.icon-button.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.icon-button.ghost {
  color: #53647f;
  background: transparent;
}

.badge {
  position: absolute;
  top: 7px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.badge[hidden] {
  display: none;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #394762;
  font-weight: 600;
  transition: transform 0.18s var(--motion-smooth), background 0.18s var(--motion-smooth), border-color 0.18s var(--motion-smooth), color 0.18s var(--motion-smooth), box-shadow 0.18s var(--motion-smooth);
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

.cabinet-nav-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  object-fit: contain;
  opacity: 0.86;
  transition: transform 0.18s var(--motion-smooth), opacity 0.18s var(--motion-smooth);
  will-change: transform;
}

.nav-item:hover .cabinet-nav-icon,
.nav-item.active .cabinet-nav-icon {
  opacity: 1;
}

.nav-item.active {
  color: var(--blue);
  border-color: #cfe0ff;
  background: linear-gradient(90deg, #edf5ff 0%, rgba(237, 245, 255, 0.72) 100%);
  box-shadow: 0 8px 18px rgba(31, 115, 241, 0.08);
}

.nav-item:hover {
  color: var(--blue);
  border-color: #d9e8ff;
  background: #f7fbff;
}

.trust-card {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2ebf8;
  background: linear-gradient(135deg, #f6faff, #ffffff);
  box-shadow: 0 10px 24px rgba(31, 55, 96, 0.06);
}

.trust-card strong {
  color: #174dba;
  font-size: 18px;
  line-height: 1.25;
}

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

.trust-card-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(31, 115, 241, 0.1));
}

.trust-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(31, 115, 241, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.trust-copy-row code {
  overflow: hidden;
  color: #1c4fae;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-site-button {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #edf5ff;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.copy-site-button img {
  width: 24px;
  height: 24px;
}

.copy-site-button:hover {
  background: #e1efff;
  box-shadow: 0 10px 22px rgba(31, 115, 241, 0.14);
  transform: translateY(-1px);
}

.shield-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 115, 241, 0.14);
}

.shield-icon svg {
  width: 34px;
  height: 34px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.top-nav {
  display: flex;
  gap: 22px;
  height: 100%;
}

.top-link {
  position: relative;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  color: #1b2540;
  font-weight: 700;
  transition: 0.18s ease;
}

.top-link.active {
  color: var(--blue);
}

.top-link.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-menu {
  position: relative;
}

.profile-chip {
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 204px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--ink);
}

.profile-chip .avatar-image {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(31, 115, 241, 0.14);
}

.profile-chip strong,
.profile-chip small {
  display: block;
}

.profile-chip small {
  margin-top: 3px;
  color: var(--muted);
}

.profile-chip svg {
  width: 18px;
  margin-left: auto;
}

.profile-chevron {
  transition: transform 0.18s ease;
}

.profile-menu.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 40;
  min-width: 196px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(22, 38, 71, 0.16);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #dbe5f2;
  border-top: 1px solid #dbe5f2;
  background: #fff;
  transform: rotate(45deg);
}

.profile-dropdown button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #2d3b58;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.profile-dropdown button:hover {
  color: var(--blue);
  background: #eef5ff;
}

.profile-dropdown svg {
  width: 20px;
  height: 20px;
}

.content {
  padding: 28px 32px 36px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.search-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(102deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 48%, rgba(231, 242, 255, 0.88) 100%),
    radial-gradient(circle at 84% 48%, rgba(31, 115, 241, 0.18), transparent 36%);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.hero-copy h2,
.page-head h1,
.page-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p,
.page-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-art {
  grid-row: span 2;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 142px;
}

.chat-bubble {
  position: relative;
  width: 150px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(145deg, #3b99ff, #1165e8);
  box-shadow: 0 22px 44px rgba(31, 115, 241, 0.26);
}

.chat-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -22px;
  width: 34px;
  height: 34px;
  border-radius: 0 0 0 8px;
  background: #1165e8;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.chat-bubble span {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.12);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border: 10px solid rgba(31, 115, 241, 0.14);
  border-radius: 50%;
}

.hero-art::before {
  width: 36px;
  height: 36px;
  right: 8px;
  top: 24px;
}

.hero-art::after {
  width: 28px;
  height: 28px;
  left: 10px;
  bottom: 18px;
}

.search-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1.1fr) minmax(160px, 0.8fr) minmax(180px, 0.9fr) 180px;
  gap: 16px;
  align-items: end;
}

.keyword-only-form {
  grid-template-columns: 1fr;
}

.keyword-query-field small {
  color: #667692;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.compact-actions {
  margin-top: 20px;
}

.current-plan-card {
  display: inline-grid;
  gap: 8px;
  min-width: min(320px, 100%);
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #d6e4f6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(38, 75, 130, 0.08);
}

.current-plan-card span {
  color: #667692;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-plan-card strong {
  color: #10224a;
  font-size: 26px;
  line-height: 1.1;
}

.current-plan-card small {
  color: #53647f;
  font-weight: 700;
}

.current-plan-card .button {
  margin-top: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: #13203c;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(16, 25, 54, 0.04);
}

textarea {
  min-height: 126px;
  padding-block: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 115, 241, 0.12);
}

.search-submit {
  min-height: 50px;
}

.parser-search-panel {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 30px;
}

.parser-search-panel::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 26px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 115, 241, 0.16), transparent 68%);
  pointer-events: none;
}

.parser-search-panel .hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.parser-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.parser-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d6e4f6;
  border-radius: 999px;
  color: #26517d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.parser-search-panel .keyword-only-form {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 22px;
  border: 1px solid #d6e4f6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(31, 74, 132, 0.1);
}

.parser-search-panel .search-submit {
  width: 100%;
  min-height: 54px;
}

.parser-progress-panel {
  margin-top: 24px;
  padding: 24px;
  overflow: hidden;
}

.parser-progress-head {
  align-items: center;
}

.parser-progress-head h2 {
  margin-bottom: 0;
}

.parser-progress-head .status {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
}

.parser-progress-percent {
  color: #0c55d8;
  font-size: 34px;
  line-height: 1;
}

.parser-progress-track {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1ff;
  box-shadow: inset 0 1px 2px rgba(38, 68, 118, 0.12);
}

.parser-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f73f1, #19b6ff);
  transition: width 0.5s ease;
}

.parser-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.parser-progress-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.parser-progress-grid span {
  display: block;
  color: #6a7891;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.parser-progress-grid strong {
  display: block;
  margin-top: 8px;
  color: #14213f;
  font-size: 18px;
  line-height: 1.2;
}

.parser-progress-hint {
  margin: 16px 0 0;
  color: #667692;
  line-height: 1.55;
}

.parser-results-panel {
  margin-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.metric-icon svg {
  width: 34px;
  height: 34px;
}

.metric-icon.has-art {
  width: 74px;
  height: 74px;
  border-radius: 0;
  background: transparent;
}

.cabinet-metric-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.metric-icon.blue {
  background: linear-gradient(135deg, #4da0ff, #115fe7);
}

.metric-icon.green {
  background: linear-gradient(135deg, #27c57d, #0a8f51);
}

.metric-icon.orange {
  background: linear-gradient(135deg, #ffba31, #f08a00);
}

.metric-icon.violet {
  background: linear-gradient(135deg, #937af2, #5a43c5);
}

.stat-card span {
  color: #263452;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.05;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(420px, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.orders-panel {
  grid-column: 1 / -1;
}

.home-cabinet-grid {
  grid-template-columns: minmax(320px, 0.9fr) repeat(2, minmax(280px, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.results-panel,
.orders-panel,
.support-panel,
.profile-panel,
.home-cabinet-grid .panel,
.cabinet-grid .panel,
.admin-grid .panel,
.support-grid .panel {
  padding: 24px;
}

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

.panel-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #52627d;
  background: #eef3fb;
  font-size: 13px;
  font-weight: 700;
}

.results-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-item {
  display: grid;
  grid-template-columns: 54px minmax(190px, 1.2fr) minmax(110px, 0.7fr) minmax(118px, 0.7fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.result-item:last-child {
  border-bottom: 0;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: #d9e8f9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.chat-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chat-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-location,
.members {
  color: #52627d;
  font-size: 14px;
}

.members {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.members svg {
  width: 17px;
  height: 17px;
}

.open-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.open-link svg {
  width: 16px;
  height: 16px;
}

.orders-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 100px 72px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #35435e;
  font-size: 14px;
}

.orders-table.full .table-row {
  grid-template-columns: 96px minmax(220px, 1fr) 150px 110px 100px 142px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  min-height: 50px;
  color: #24406e;
  background: #f8fbff;
  font-weight: 800;
}

.status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.done {
  color: #168654;
  background: var(--green-soft);
}

.status.progress {
  color: #1d63dc;
  background: var(--blue-soft);
}

.status.error {
  color: #b42318;
  background: #fff0ee;
}

.file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.file-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
}

.file-button.text {
  width: auto;
  min-width: 48px;
  padding: 0 10px;
  color: #24406e;
  font-size: 12px;
  font-weight: 800;
}

.file-button.excel {
  color: #128452;
  border-color: #bfefd5;
  background: #f4fff8;
}

.file-button svg {
  width: 18px;
  height: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  padding: 18px 4px 0;
}

.trust-strip > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: center;
}

.trust-strip strong,
.trust-strip small {
  display: block;
}

.trust-strip small {
  margin-top: 3px;
  color: var(--muted);
}

.mini-icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.mini-icon svg {
  width: 27px;
  height: 27px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
}

.tariff-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tariff-card.featured {
  border-color: rgba(31, 115, 241, 0.55);
  box-shadow: 0 18px 36px rgba(31, 115, 241, 0.16);
}

.tariff-card.paid {
  border-color: rgba(23, 167, 99, 0.5);
  background: linear-gradient(180deg, #ffffff, #f6fff9);
}

.tariff-card.pending {
  border-color: rgba(245, 178, 35, 0.55);
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.tariff-card h2 {
  margin: 0;
}

.price {
  font-size: 30px;
  font-weight: 800;
}

.tariff-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #465674;
}

.tariff-card li {
  display: flex;
  gap: 8px;
}

.tariff-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
}

.paid-until {
  display: grid;
  gap: 4px;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #bfefd5;
  border-radius: 8px;
  color: #126943;
  background: #ecfbf3;
}

.paid-until span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.paid-until strong {
  font-size: 15px;
}

.payment-status {
  display: grid;
  gap: 4px;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #815500;
  background: #fff4cf;
}

.payment-status span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-status strong {
  font-size: 15px;
}

.cabinet-grid,
.support-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.support-grid {
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
}

.support-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  background: #f2f7fd;
}

.support-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #53647f;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.support-tabs button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 55, 96, 0.09);
}

.support-unread-badge,
.ticket-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #ff3b55;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.support-unread-badge[hidden] {
  display: none;
}

.support-unread-badge.top,
.support-unread-badge.tab {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
}

.nav-item .support-unread-badge {
  margin-left: auto;
}

.ticket-unread-badge {
  margin-left: 8px;
  vertical-align: middle;
}

.ticket-list-more {
  justify-content: center;
  margin-top: 2px;
}

.support-tab-panels > [data-support-panel] {
  display: none;
}

.support-tab-panels > [data-support-panel].active {
  display: grid;
}

.cabinet-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.admin-grid {
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
}

.profile-row,
.payment-list > div,
.toggle-row,
.field-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-row span,
.payment-list span,
.toggle-row span,
.field-row span {
  color: var(--muted);
}

.profile-row:last-of-type,
.payment-list > div:last-child {
  border-bottom: 0;
}

.email-profile-row {
  align-items: flex-start;
  padding-block: 12px;
}

.profile-email-action {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

.profile-name-action {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  text-align: right;
}

.verify-email-button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: #6f4c00;
  background: #ffd866;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.verify-email-button:hover {
  transform: translateY(-1px);
  background: #ffc83d;
}

.verify-email-button.is-verified {
  color: #176b45;
  background: #dff8e9;
  cursor: default;
}

.verify-email-button.is-verified:hover {
  transform: none;
  background: #dff8e9;
}

.profile-panel .button {
  margin-top: 18px;
}

.payment-list small {
  color: var(--muted);
}

.payment-list {
  display: grid;
  margin-top: 18px;
}

.payment-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding-block: 10px;
}

.compact-ticket-list {
  margin-top: 14px;
}

.ticket-item.compact {
  padding: 14px;
  box-shadow: none;
}

.ticket-item.compact h3 {
  font-size: 15px;
}

.payment-list small {
  grid-column: 1 / -1;
}

.payment-summary {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid #d9e6f7;
  border-radius: 8px;
  background: #f8fbff;
}

.payment-summary span {
  color: #667692;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-summary strong {
  color: #10224a;
  font-size: 24px;
  line-height: 1.15;
}

.payment-summary small,
.payment-note {
  color: #52627d;
  line-height: 1.55;
}

.payment-note {
  margin: 0;
}

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

.help-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 188px;
  padding: 22px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff),
    radial-gradient(circle at 100% 0, rgba(31, 115, 241, 0.08), transparent 34%);
  box-shadow: 0 12px 28px rgba(31, 55, 96, 0.06);
}

.help-card h3,
.help-card p {
  margin: 0;
}

.help-card h3 {
  color: #112244;
  font-size: 18px;
}

.help-card p {
  color: #52627d;
  line-height: 1.58;
}

.help-cta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(31, 115, 241, 0.28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1f73f1, #0a55d9);
  box-shadow: 0 18px 36px rgba(31, 115, 241, 0.22);
}

.help-cta span,
.help-cta strong {
  display: block;
}

.help-cta span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.82;
}

.help-cta strong {
  margin-top: 5px;
  font-size: 22px;
}

.help-cta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.help-cta .button {
  color: #145be4;
  background: #fff;
  white-space: nowrap;
}

.toggle-row input {
  width: 44px;
  min-height: 24px;
  accent-color: var(--blue);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 180px;
}

.field-row input,
.field-row select {
  min-height: 42px;
}

.support-panel,
.admin-panel {
  display: grid;
  gap: 18px;
}

.support-create-card,
.ticket-panel {
  align-content: start;
}

.support-card-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 4px;
}

.support-card-head h2,
.support-card-head p {
  margin: 0;
}

.support-card-head p {
  margin-top: 5px;
  color: #667692;
  line-height: 1.45;
}

.support-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4da0ff, #115fe7);
  box-shadow: 0 14px 28px rgba(31, 115, 241, 0.2);
}

.support-icon svg {
  width: 29px;
  height: 29px;
}

.catalog-panel {
  grid-column: 1 / -1;
}

.ticket-list,
.admin-ticket-list {
  display: grid;
  gap: 12px;
}

.ticket-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 24px rgba(31, 55, 96, 0.06);
}

.ticket-item.is-clickable {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ticket-item.is-clickable:hover,
.ticket-item.is-clickable:focus-visible {
  border-color: rgba(28, 111, 238, 0.42);
  box-shadow: 0 16px 34px rgba(31, 94, 184, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.ticket-item h3,
.ticket-item p {
  margin: 0;
}

.ticket-item h3 {
  font-size: 16px;
}

.ticket-item p,
.ticket-item small,
.muted {
  color: var(--muted);
}

.ticket-head,
.admin-ticket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-number {
  display: grid;
  gap: 2px;
}

.ticket-number span {
  color: #7b8aa5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-number strong {
  color: #13203c;
}

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

.ticket-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #53647f;
  background: #eef3fb;
  font-size: 12px;
  font-weight: 800;
}

.ticket-open-button {
  justify-self: start;
}

.admin-id-link.as-button {
  border: 0;
  padding: 0;
  color: var(--admin-blue, #1c6fee);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.modal.ticket-modal {
  width: min(1320px, calc(100vw - 28px));
}

.ticket-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  width: 100%;
  max-height: min(94dvh, 960px);
  overflow: hidden;
}

.ticket-dialog-head {
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ticket-dialog-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ticket-dialog-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  color: #0b63f4;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

.ticket-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
}

.ticket-dialog-grid.single {
  grid-template-columns: minmax(0, 1fr) 230px;
}

.ticket-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: min(64dvh, 680px);
  overflow: auto;
  padding: 4px 10px 4px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.ticket-message {
  display: grid;
  gap: 8px;
  max-width: 82%;
  padding: 13px 14px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #f8fbff;
}

.ticket-message.admin {
  justify-self: end;
  border-color: rgba(28, 111, 238, 0.24);
  background: #edf5ff;
}

.ticket-message.system {
  max-width: 100%;
  background: #f4f6fa;
}

.ticket-message > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-message strong {
  color: #13203c;
}

.ticket-message time {
  color: #7b8aa5;
  font-size: 12px;
  font-weight: 700;
}

.ticket-message-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0b63f4;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 800;
}

.ticket-message-state::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: maxSpin 0.72s linear infinite;
}

.ticket-message p {
  margin: 0;
  color: #273755;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ticket-side {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: min(58dvh, 620px);
  overflow: auto;
  padding-right: 2px;
}

.ticket-side-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.ticket-side-card span,
.ticket-side-card small,
.ticket-meta-form span,
.ticket-reply-form span {
  color: #7b8aa5;
  font-size: 12px;
  font-weight: 800;
}

.ticket-meta-form,
.ticket-reply-form {
  display: grid;
  gap: 12px;
}

.ticket-meta-form label,
.ticket-reply-form label {
  display: grid;
  gap: 7px;
}

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

.ticket-file-control {
  display: grid;
  gap: 8px;
}

.ticket-file-control input[type="file"] {
  min-height: 46px;
  padding: 10px;
}

.ticket-file-list,
.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-file-list > span,
.ticket-file-list small,
.ticket-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  color: #315071;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
}

.ticket-file-item {
  position: relative;
  max-width: min(100%, 360px);
}

.ticket-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-file-item.loading {
  border-color: rgba(28, 111, 238, 0.28);
  background: #edf5ff;
}

.ticket-file-item.ready {
  border-color: rgba(23, 171, 103, 0.28);
  background: #eefbf4;
}

.ticket-file-item.error {
  border-color: rgba(255, 71, 87, 0.3);
  background: #fff2f2;
}

.ticket-file-remove {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #52627a;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ticket-file-remove:hover {
  color: #ff4757;
  background: #fff;
}

.ticket-file-list small {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #73839c;
  background: transparent;
}

.ticket-attachment {
  max-width: 260px;
  text-decoration: none;
}

.ticket-attachment.image {
  display: grid;
  align-items: stretch;
  padding: 6px;
}

.ticket-attachment img {
  width: min(220px, 100%);
  max-height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.notification-item.is-read {
  opacity: 0.68;
}

.notification-item.is-unread {
  box-shadow: inset 3px 0 0 var(--blue);
}

.button.success {
  color: #fff;
  background: #18a65c;
  box-shadow: 0 10px 22px rgba(24, 166, 92, 0.22);
}

.button.danger {
  color: #e0293f;
  background: #fff1f3;
  border: 1px solid #ffd2d8;
}

.admin-ticket textarea {
  margin-top: 6px;
}

.admin-ticket-actions select {
  min-height: 36px;
  max-width: 180px;
}

.file-import {
  display: grid;
  gap: 8px;
}

.modal {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(16, 25, 54, 0.28);
}

.modal::backdrop {
  background: rgba(16, 25, 54, 0.28);
  backdrop-filter: blur(3px);
}

.modal-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: #fff;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.amount-grid button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.amount-grid button.selected {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

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

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fbfdff;
}

.notification-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.notification-item.success .notification-dot {
  background: #16a06a;
}

.notification-item.error .notification-dot {
  background: #d92d20;
}

.notification-item strong {
  display: block;
  color: #14213f;
}

.notification-item p {
  margin: 4px 0 6px;
  color: #52627d;
  line-height: 1.45;
}

.notification-item small {
  color: #7b8aa5;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 2147483647;
  max-width: min(380px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: #13203c;
  box-shadow: 0 18px 38px rgba(16, 25, 54, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.analytics-consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(32, 113, 246, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 45, 90, 0.16);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.analytics-consent div:first-child {
  display: grid;
  gap: 3px;
}

.analytics-consent strong {
  font-size: 14px;
}

.analytics-consent span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.analytics-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.analytics-consent-actions a {
  color: var(--blue);
  font-weight: 700;
}

.analytics-consent-actions button {
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

@media (max-width: 640px) {
  .analytics-consent {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1360px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 22px;
  }

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

  .search-submit {
    grid-column: span 2;
  }

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

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

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

@media (max-width: 1020px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }

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

  .trust-card {
    display: none;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-link {
    min-height: 36px;
  }

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

  .profile-chip {
    min-width: auto;
  }

  .profile-chip .profile-text,
  .profile-chip .profile-chevron {
    display: none;
  }

  .content {
    padding: 20px 18px 30px;
  }

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

  .hero-art {
    grid-row: auto;
  }

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

  .search-submit {
    grid-column: auto;
  }

  .cabinet-grid,
  .home-cabinet-grid,
  .support-grid,
  .help-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .catalog-panel {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .brand {
    font-size: 23px;
  }

  .balance-card {
    grid-template-columns: 1fr;
  }

  .icon-button.light {
    display: none;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    gap: 12px;
  }

  .top-actions {
    gap: 8px;
  }

  .search-hero {
    padding: 24px 18px;
  }

  .hero-art {
    min-height: 116px;
  }

  .chat-bubble {
    width: 126px;
    height: 82px;
    border-radius: 28px;
  }

  .stats-grid,
  .tariff-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .result-item {
    grid-template-columns: 48px 1fr;
  }

  .modal.ticket-modal {
    width: calc(100vw - 18px);
  }

  .ticket-dialog {
    max-height: 92vh;
    padding: 18px;
  }

  .ticket-dialog-grid,
  .ticket-dialog-grid.single {
    grid-template-columns: 1fr;
  }

  .ticket-thread {
    max-height: 48vh;
  }

  .ticket-message {
    max-width: 100%;
  }

  .ticket-dialog-actions {
    display: grid;
  }

  .members,
  .open-link {
    grid-column: 2;
    justify-self: start;
  }

  .table-row,
  .orders-table.full .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: auto;
    padding: 14px;
  }

  .table-head {
    display: none;
  }

  .file-actions {
    justify-content: flex-start;
  }

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

  .help-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }
}

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

.admin-page {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-access {
  display: grid;
  gap: 14px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-access h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
}

.admin-access p {
  max-width: 680px;
  margin: 0;
  color: #667692;
  line-height: 1.6;
}

.admin-login-form {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  margin-top: 12px;
}

.landing-shell {
  min-height: 100vh;
  color: #101a35;
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 115, 241, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f4f8ff 100%);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(191, 205, 226, 0.7);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.landing-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-weight: 700;
}

.landing-links a,
.landing-links button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #334462;
  font: inherit;
  cursor: pointer;
}

.landing-links button:hover,
.landing-links a:hover {
  color: var(--blue);
}

.landing-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-copy .hero-actions {
  justify-content: center;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(440px, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 72px);
}

.landing-copy {
  display: grid;
  justify-items: center;
  max-width: 660px;
  text-align: center;
  animation: riseIn 0.7s ease both;
}

.landing-copy h1 {
  margin: 0 0 30px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-copy p {
  margin: 0 0 28px;
  max-width: 620px;
  color: #52627d;
  font-size: 20px;
  line-height: 1.65;
}

.landing-copy .landing-lead {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: clamp(17px, 2vw, 21px);
}

.button.large {
  min-width: 210px;
  min-height: 62px;
  padding-inline: 30px;
  font-size: 18px;
}

.button.ghost-dark {
  color: #14213f;
  background: #fff;
  border: 1px solid #cfdbea;
}

.landing-advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 38px;
}

.landing-advantages div {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 20px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.86)),
    radial-gradient(circle at 20% 18%, rgba(31, 115, 241, 0.12), transparent 36%);
  box-shadow: 0 14px 38px rgba(40, 74, 129, 0.08);
}

.landing-advantages strong {
  display: block;
  color: #115fe7;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
}

.landing-advantages span {
  display: block;
  margin-top: 8px;
  color: #5a6b86;
  font-weight: 700;
  line-height: 1.35;
}

.landing-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 211, 230, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(31, 76, 142, 0.18);
  animation: riseIn 0.82s ease 0.08s both;
}

.landing-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-note {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  max-width: 300px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #fff;
  background: rgba(11, 33, 72, 0.76);
  backdrop-filter: blur(12px);
}

.visual-note span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.landing-band,
.process-section,
.pricing-section {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 72px);
}

.section-title {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

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

.feature-card,
.process-grid article,
.landing-pricing article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(40, 74, 129, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.landing-pricing article:hover,
.source-item:hover,
.landing-source-grid a:hover,
.faq-grid article:hover {
  transform: translateY(-3px);
  border-color: #bad1ef;
  box-shadow: 0 22px 48px rgba(36, 70, 122, 0.12);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon.blue {
  background: linear-gradient(135deg, #4da0ff, #115fe7);
}

.feature-icon.green {
  background: linear-gradient(135deg, #27c57d, #0a8f51);
}

.feature-icon.orange {
  background: linear-gradient(135deg, #ffba31, #f08a00);
}

.feature-icon.violet {
  background: linear-gradient(135deg, #937af2, #5a43c5);
}

.feature-card h3,
.process-grid h3,
.landing-pricing h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-card p,
.process-grid p,
.landing-pricing p {
  margin: 0;
  color: #60708c;
  line-height: 1.6;
}

.landing-pricing .button {
  margin-top: 4px;
}

.process-section {
  position: relative;
  overflow: hidden;
  background: #0f1d38;
  color: #fff;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 115, 241, 0.28), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(39, 197, 125, 0.16), transparent 26%);
  pointer-events: none;
}

.process-section > * {
  position: relative;
  z-index: 1;
}

.process-section p {
  color: rgba(255, 255, 255, 0.72);
}

.process-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.process-grid strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #0f1d38;
  background: #fff;
}

.parser-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.parser-flow,
.parser-counter {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.parser-flow {
  overflow: hidden;
  display: grid;
  gap: 0;
  padding: clamp(22px, 3vw, 32px);
}

.scan-window {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 306px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 19, 42, 0.82), rgba(13, 31, 62, 0.72)),
    repeating-linear-gradient(180deg, transparent 0 36px, rgba(255, 255, 255, 0.04) 37px 38px);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 76px;
  background: linear-gradient(180deg, transparent, rgba(47, 147, 255, 0.24), transparent);
  animation: parserScan 3.9s ease-in-out infinite;
  will-change: transform, opacity;
}

.scan-card {
  position: relative;
  transform: translate3d(0, 0, 0);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tag title"
    "tag meta";
  column-gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  animation: parserCard 6.2s ease-in-out infinite;
  will-change: transform;
}

.scan-card:nth-child(3) {
  animation-delay: 0.7s;
}

.scan-card:nth-child(4) {
  animation-delay: 1.4s;
}

.scan-card span {
  grid-area: tag;
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 32px;
  border-radius: 999px;
  color: #102042;
  background: #9ed0ff;
  font-size: 12px;
  font-weight: 900;
}

.scan-card.active span {
  background: #7cf0b2;
}

.scan-card strong {
  grid-area: title;
  color: #fff;
}

.scan-card small {
  grid-area: meta;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 700;
}

.parser-counter {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100%;
  padding: clamp(26px, 4vw, 44px);
}

.parser-counter span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.parser-counter strong {
  margin: 12px 0;
  color: #fff;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.parser-counter small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 700;
}

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

.landing-pricing article strong {
  display: block;
  margin: 16px 0;
  font-size: 34px;
}

.landing-pricing article {
  display: grid;
  align-content: start;
  gap: 8px;
}

.landing-pricing .featured {
  color: #fff;
  background: linear-gradient(135deg, #2578f4, #0d55d9);
}

.landing-pricing .featured p {
  color: rgba(255, 255, 255, 0.82);
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 72px);
  border-top: 1px solid #dce6f4;
  color: #60708c;
  font-weight: 700;
}

.landing-footer > div {
  display: grid;
  gap: 6px;
}

.landing-footer small {
  color: #7a88a2;
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 14px;
}

.footer-links a,
.auth-legal a,
.support-legal-note a,
.legal-document a,
.legal-note a {
  color: var(--blue);
  font-weight: 800;
}

.auth-legal {
  margin: -4px 0 4px;
  color: #62708b;
  font-size: 12px;
  line-height: 1.55;
}

.support-legal-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  box-shadow: 0 12px 28px rgba(42, 75, 130, 0.06);
}

.support-legal-note strong {
  min-width: 190px;
  color: #122049;
}

.support-legal-note span {
  color: #60708c;
  line-height: 1.6;
}

.legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 28px;
}

.legal-hero,
.legal-document,
.legal-note,
.legal-card-link {
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(42, 75, 130, 0.08);
}

.legal-hero {
  display: grid;
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, #ffffff, #edf5ff);
}

.legal-hero span,
.legal-version {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-hero h1,
.legal-document h1 {
  margin: 0;
  color: #101936;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.legal-hero p,
.legal-document p,
.legal-document li,
.legal-note p {
  color: #53627d;
  line-height: 1.72;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.legal-card-link {
  display: grid;
  gap: 10px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.legal-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 115, 241, 0.35);
  box-shadow: 0 20px 44px rgba(31, 115, 241, 0.12);
}

.legal-card-link strong {
  color: #101936;
  font-size: 18px;
}

.legal-card-link span {
  color: #60708c;
  line-height: 1.55;
}

.legal-document,
.legal-note {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
}

.legal-document h2,
.legal-note h2 {
  margin: 18px 0 0;
  color: #15233f;
  font-size: 22px;
}

.legal-document p,
.legal-document ul,
.legal-note p {
  margin: 0;
}

.legal-document ul {
  padding-left: 20px;
}

.legal-note {
  margin-top: 18px;
}

.section-title p {
  margin: 0;
  color: #60708c;
  line-height: 1.65;
}

.landing-source-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.landing-source-grid a,
.faq-grid article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  color: #15233f;
  background: #fff;
  box-shadow: 0 14px 34px rgba(42, 75, 130, 0.07);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.faq-grid article {
  min-height: 190px;
  align-content: start;
  font-weight: 400;
}

.faq-grid h3 {
  margin: 0;
  font-size: 19px;
}

.faq-grid h3 a {
  color: inherit;
}

.faq-grid p {
  margin: 0;
  color: #60708c;
  line-height: 1.6;
}

.seo-directions {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

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

.seo-link-grid a {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  color: #14213f;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 44, 77, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.seo-link-grid a:hover {
  border-color: rgba(31, 115, 241, 0.34);
  box-shadow: 0 18px 44px rgba(31, 115, 241, 0.14);
  transform: translateY(-2px);
}

.seo-link-grid strong {
  font-size: 19px;
}

.seo-link-grid span {
  color: #60708c;
  line-height: 1.5;
}

.seo-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.seo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 28px;
}

.seo-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background:
    linear-gradient(120deg, #ffffff 0%, #f5f9ff 58%, #e7f2ff 100%),
    radial-gradient(circle at 85% 20%, rgba(31, 115, 241, 0.18), transparent 32%);
  box-shadow: var(--shadow);
  animation: riseIn 0.65s ease both;
}

.seo-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #111b34;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.seo-hero p {
  max-width: 760px;
  margin: 0;
  color: #53647f;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

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

.seo-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.seo-content article {
  padding: 26px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(31, 44, 77, 0.08);
}

.seo-content h2 {
  margin: 0 0 12px;
  color: #14213f;
  font-size: 24px;
}

.seo-content p,
.seo-list {
  margin: 0;
  color: #5f708d;
  line-height: 1.65;
}

.seo-list {
  padding-left: 20px;
}

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7a94;
  font-size: 14px;
}

.seo-breadcrumbs a {
  color: var(--blue);
  font-weight: 700;
}

.seo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-pill-row a {
  padding: 9px 12px;
  border: 1px solid #dce8f7;
  border-radius: 999px;
  color: #174dba;
  background: #f6faff;
  font-size: 14px;
  font-weight: 700;
}

.seo-wide {
  grid-column: 1 / -1;
}

.seo-faq {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.seo-faq details {
  padding: 18px 22px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 44, 77, 0.07);
}

.seo-faq summary {
  color: #14213f;
  cursor: pointer;
  font-weight: 800;
}

.seo-faq p {
  margin: 12px 0 0;
  color: #5f708d;
  line-height: 1.65;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes parserScan {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 390px, 0);
    opacity: 0;
  }
}

@keyframes parserCard {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    border-color: rgba(255, 255, 255, 0.13);
  }
  45% {
    transform: translate3d(8px, 0, 0);
    border-color: rgba(124, 240, 178, 0.5);
  }
}

@supports (content-visibility: auto) {
  .landing-band,
  .landing-pricing,
  .landing-footer,
  .panel,
  .tariff-card,
  .orders-panel,
  .results-panel,
  .support-panel,
  .profile-panel {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-card .modal-head p,
.verify-card .modal-head p {
  margin: 6px 0 0;
  color: #667692;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid #d6e1ef;
  border-radius: 8px;
  background: #f3f7fc;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #4b5c76;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #0f5fe8;
  background: #fff;
  box-shadow: 0 6px 18px rgba(45, 74, 120, 0.12);
}

.auth-name-field {
  display: none;
}

.auth-card[data-mode="register"] .auth-name-field {
  display: grid;
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  min-height: 20px;
  color: #50617d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--blue);
  box-shadow: none;
}

.remember-row span {
  margin: 0;
}

.auth-card[data-mode="register"] #forgotPassword {
  display: none;
}

.nav-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  background: transparent;
}

.kind-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #234a79;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 800;
}

.kind-pill.channel {
  color: #176248;
  background: #e3f8ef;
}

.kind-pill.bot {
  color: #6e4b08;
  background: #fff1bf;
}

.result-item {
  grid-template-columns: 54px minmax(180px, 1.1fr) 86px minmax(110px, 0.7fr) auto;
}

.table-row {
  grid-template-columns: minmax(150px, 1fr) 112px 150px 90px 72px;
}

.orders-table.full .table-row {
  grid-template-columns: 96px minmax(220px, 1fr) 150px 110px 90px 80px;
}

.empty-state {
  padding: 28px;
  color: #667692;
  text-align: center;
}

.empty-state.compact {
  padding: 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: #53647f;
  font-weight: 800;
}

.button:disabled {
  cursor: default;
  opacity: 0.56;
  transform: none;
}

.source-list,
.log-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.source-item,
.log-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fbfdff;
}

.source-item strong,
.log-item strong {
  color: #14213f;
}

.source-item p,
.log-item span {
  margin: 0;
  color: #667692;
  line-height: 1.5;
}

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

.source-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #50617d;
  background: #eef3fb;
  font-size: 12px;
  font-weight: 800;
}

.source-url {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-item {
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 1100px) {
  .landing-hero,
  .feature-grid,
  .process-grid,
  .parser-showcase,
  .landing-source-grid,
  .faq-grid,
  .seo-link-grid,
  .seo-content {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: auto;
    padding: 14px 18px;
  }

  .landing-links {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
  }

  .landing-actions {
    justify-content: flex-end;
  }

  .landing-actions .button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .landing-hero,
  .feature-grid,
  .process-grid,
  .parser-showcase,
  .landing-pricing,
  .landing-source-grid,
  .faq-grid,
  .seo-link-grid,
  .seo-content {
    grid-template-columns: 1fr;
  }

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

  .seo-hero {
    padding: 30px 22px;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 40px;
  }

  .landing-copy h1 {
    font-size: 42px;
  }

  .landing-advantages {
    grid-template-columns: 1fr;
  }

  .landing-copy {
    max-width: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .visual-note {
    position: static;
    max-width: none;
    border-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: #14213f;
  }

  .landing-footer {
    display: grid;
  }

  .result-item {
    grid-template-columns: 48px 1fr;
  }

  .kind-pill,
  .members,
  .open-link {
    grid-column: 2;
    justify-self: start;
  }

  .table-row,
  .orders-table.full .table-row {
    grid-template-columns: 1fr;
  }

  .parser-progress-head {
    align-items: stretch;
  }

  .parser-progress-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .landing-links {
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .support-tabs {
    width: 100%;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .landing-actions .button {
    width: 100%;
  }

  .landing-hero,
  .landing-band,
  .process-section,
  .pricing-section {
    padding-inline: 16px;
  }

  .landing-copy h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .button.large {
    min-height: 54px;
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .feature-card,
  .landing-pricing article,
  .faq-grid article {
    min-height: auto;
    padding: 20px;
  }

  .parser-flow,
  .parser-counter {
    padding: 18px;
  }

  .scan-window {
    min-height: 280px;
    padding: 14px;
  }

  .scan-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "title"
      "meta";
    gap: 8px;
    padding: 14px;
  }

  .scan-card span {
    justify-self: start;
  }

  .parser-counter strong {
    font-size: 52px;
  }

  .landing-footer {
    padding-inline: 16px;
  }
}

body.admin-body {
  min-height: 100vh;
  background: #f5f8fd;
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 18%, rgba(31, 115, 241, 0.16), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
}

.admin-login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(206, 219, 238, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(34, 63, 108, 0.14);
  backdrop-filter: blur(18px);
}

.admin-login-brand {
  justify-self: start;
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0;
}

.admin-login-card p,
.admin-login-link {
  margin: 0;
  color: #64728c;
  line-height: 1.6;
}

.admin-login-link {
  color: var(--blue);
  font-weight: 800;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 20px;
  border-right: 1px solid #dce7f5;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 10px 0 28px rgba(24, 55, 100, 0.04);
  overflow-y: auto;
}

.admin-brand {
  min-height: 48px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #485a78;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-nav button:hover {
  color: var(--blue);
  background: #eef5ff;
  transform: translateX(2px);
}

.admin-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, #1f73f1, #1463df);
  box-shadow: 0 12px 24px rgba(31, 115, 241, 0.22);
}

.admin-nav small {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf3ff;
  font-size: 12px;
}

.admin-nav button.active small {
  color: var(--blue);
  background: #fff;
}

.admin-system-card {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef5ff 100%);
}

.admin-system-card span,
.admin-system-card small {
  color: #64728c;
}

.admin-system-card strong {
  color: #0d8f55;
}

.admin-workspace {
  min-width: 0;
  padding: 22px 28px 42px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin: -22px -28px 22px;
  padding: 14px 28px;
  border-bottom: 1px solid #dce7f5;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.admin-topbar h1,
.admin-topbar p {
  margin: 0;
}

.admin-topbar h1 {
  font-size: 24px;
}

.admin-topbar p {
  margin-top: 4px;
  color: #667692;
}

.admin-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #7390ba;
}

.admin-search svg {
  width: 20px;
  height: 20px;
}

.admin-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14213f;
  font-weight: 700;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-profile {
  display: grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 10px;
}

.admin-profile span,
.admin-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #297cf4, #6fa8ff);
  font-weight: 900;
}

.admin-profile strong,
.admin-profile small {
  display: block;
  white-space: nowrap;
}

.admin-profile small {
  color: #667692;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 22px;
  animation: adminRise 0.24s ease both;
}

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

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

.admin-metric,
.admin-card {
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 62, 108, 0.07);
}

.admin-metric {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
}

.admin-metric p,
.admin-metric small,
.admin-card p {
  margin: 0;
  color: #667692;
}

.admin-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  color: #101936;
}

.admin-metric small {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.admin-metric-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}

.admin-metric.blue .admin-metric-icon,
.admin-metric.cyan .admin-metric-icon {
  color: #1f73f1;
  background: #eaf3ff;
}

.admin-metric.green .admin-metric-icon {
  color: #13a560;
  background: #e8f8f0;
}

.admin-metric.violet .admin-metric-icon {
  color: #7057d9;
  background: #f0edff;
}

.admin-metric.orange .admin-metric-icon {
  color: #d97605;
  background: #fff4da;
}

.admin-metric.red .admin-metric-icon {
  color: #d92d45;
  background: #fff0f2;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card h2,
.admin-card-head h2 {
  margin: 0;
  font-size: 20px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(480px, 1.4fr);
  gap: 16px;
}

.admin-dashboard-grid.bottom {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.9fr) minmax(420px, 1fr);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-pill.primary {
  color: #1f63d6;
  background: #eaf3ff;
}

.admin-pill.success {
  color: #148651;
  background: #e8f8f0;
}

.admin-pill.warning {
  color: #a45f00;
  background: #fff4da;
}

.admin-pill.danger {
  color: #c3293f;
  background: #fff0f2;
}

.admin-system-panel {
  position: relative;
  overflow: hidden;
}

.admin-health-list {
  display: grid;
  gap: 15px;
  max-width: 420px;
}

.admin-health-list div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.admin-health-list small {
  color: #667692;
}

.admin-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.admin-check.ok {
  color: #17a763;
}

.admin-check.wait {
  color: #f59d0c;
}

.admin-shield {
  position: absolute;
  right: 34px;
  top: 72px;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(31, 115, 241, 0.08);
  background: repeating-radial-gradient(circle, rgba(31, 115, 241, 0.08) 0 1px, transparent 1px 25px);
}

.admin-shield span {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1f73f1, #62a5ff);
  box-shadow: 0 18px 36px rgba(31, 115, 241, 0.25);
}

.admin-range-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-range-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #526581;
  background: transparent;
  font-weight: 800;
}

.admin-range-tabs button.active {
  color: var(--blue);
  background: #eaf3ff;
}

.admin-chart {
  min-height: 280px;
}

.admin-chart svg {
  width: 100%;
  min-height: 250px;
  overflow: visible;
}

.admin-chart-grid line {
  stroke: #e4edf8;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.blue {
  stroke: #1f73f1;
}

.chart-line.green {
  stroke: #16b981;
}

.chart-line.violet {
  stroke: #8b5cf6;
}

.admin-chart text {
  fill: #63728d;
  font-size: 13px;
}

.admin-chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #667692;
  font-size: 13px;
  font-weight: 800;
}

.admin-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 7px;
  border-radius: 99px;
  vertical-align: middle;
  background: currentColor;
}

.admin-chart-legend .blue {
  color: #1f73f1;
}

.admin-chart-legend .green {
  color: #16b981;
}

.admin-chart-legend .violet {
  color: #8b5cf6;
}

.admin-activity-list,
.admin-ticket-preview,
.admin-log-list,
.admin-admin-list {
  display: grid;
  gap: 12px;
}

.admin-activity-list article,
.admin-ticket-preview article,
.admin-admin-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-activity-list p,
.admin-ticket-preview p,
.admin-ticket-preview small,
.admin-admin-list p,
.admin-admin-list small {
  margin: 2px 0 0;
  color: #667692;
}

.admin-activity-list time {
  color: #51617d;
  font-weight: 800;
}

.admin-activity-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf3ff;
  font-weight: 900;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-quick-grid button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon detail";
  align-items: center;
  gap: 2px 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #f8fbff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.admin-quick-grid button:hover {
  transform: translateY(-2px);
  border-color: #a9c8f4;
}

.admin-quick-grid span {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf3ff;
  font-weight: 900;
}

.admin-quick-grid strong {
  grid-area: title;
}

.admin-quick-grid small {
  grid-area: detail;
  color: #667692;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
}

.admin-form label,
.catalog-panel label {
  display: grid;
  gap: 8px;
  color: #40506d;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.catalog-panel textarea,
.catalog-panel input {
  width: 100%;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-choice-field {
  display: grid;
  gap: 8px;
  color: #40506d;
  font-weight: 800;
}

.admin-choice-pill {
  display: inline-flex !important;
}

.admin-choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  color: #1f4d93;
  background: #f8fbff;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.admin-choice-pill input:checked + span {
  border-color: #1f72ff;
  color: #fff;
  background: linear-gradient(135deg, #2b86ff, #1268f3);
  box-shadow: 0 8px 18px rgba(31, 114, 255, 0.22);
}

.admin-source-grid,
.admin-tariff-grid,
.admin-analytics-grid,
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-source-card,
.admin-tariff-card,
.admin-analytics-grid article,
.admin-settings-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-source-card > div:first-child,
.admin-tariff-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.admin-source-card p,
.admin-source-card a,
.admin-tariff-card p {
  color: #667692;
  word-break: break-word;
}

.admin-source-card a {
  color: var(--blue);
  font-weight: 800;
}

.admin-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-source-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #50617e;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 800;
}

.admin-source-list {
  margin-top: 16px;
}

.admin-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #edf3fb;
}

.admin-source-row:first-of-type {
  border-top: 0;
}

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

.admin-source-row small {
  margin-top: 4px;
  color: #657691;
  overflow-wrap: anywhere;
}

.admin-source-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-source-actions .button {
  min-height: 34px;
}

.admin-crawler-card {
  margin-bottom: 16px;
}

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

.admin-mini-grid span {
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
}

.admin-mini-grid b,
.admin-mini-grid small {
  display: block;
}

.admin-mini-grid small {
  color: #657691;
  margin-top: 2px;
}

.crawler-actions {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.admin-crawler-jobs {
  display: grid;
  gap: 8px;
}

.admin-crawler-jobs div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(180px, 1.4fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
}

.admin-crawler-jobs span {
  color: #1268f3;
  font-weight: 700;
}

.admin-crawler-jobs small {
  color: #657691;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

  .admin-crawler-jobs div {
    grid-template-columns: 1fr;
  }
}

.admin-catalog-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-catalog-summary strong {
  font-size: 28px;
}

.admin-catalog-summary span {
  color: #667692;
}

.admin-tariff-card b,
.admin-analytics-grid strong,
.admin-settings-grid strong {
  font-size: 24px;
  color: #101936;
}

.admin-tariff-card ul {
  margin: 0;
  padding-left: 18px;
  color: #526581;
}

.admin-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.admin-table-head,
.admin-table-row {
  min-width: 920px;
  display: grid;
  align-items: center;
  gap: 12px;
}

.admin-table-head {
  padding: 0 14px 8px;
  color: #50617e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table-row {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-table-row strong,
.admin-table-row small {
  display: block;
}

.admin-table-row small {
  margin-top: 3px;
  color: #667692;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button.tiny {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-ticket-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-ticket {
  border: 1px solid #dbe7f6;
  background: #f8fbff;
  box-shadow: none;
}

.admin-ticket textarea,
.admin-ticket select {
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #fff;
}

.admin-log-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-log-item span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1f63d6;
  background: #eaf3ff;
  font-weight: 900;
}

.admin-log-item.error span {
  color: #c3293f;
  background: #fff0f2;
}

.admin-log-item small {
  color: #667692;
}

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

  .admin-dashboard-grid,
  .admin-dashboard-grid.bottom,
  .admin-two-column {
    grid-template-columns: 1fr;
  }

  .admin-source-grid,
  .admin-tariff-grid,
  .admin-analytics-grid,
  .admin-settings-grid,
  .admin-ticket-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-topbar {
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 360px);
  }
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #dce7f5;
  }

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

  .admin-system-card {
    margin-top: 0;
  }

  .admin-topbar {
    position: static;
    grid-template-columns: 1fr;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .admin-workspace {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .admin-login-screen {
    padding: 16px;
  }

  .admin-sidebar {
    padding: 18px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .admin-source-grid,
  .admin-tariff-grid,
  .admin-analytics-grid,
  .admin-settings-grid,
  .admin-ticket-list,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-card,
  .admin-metric {
    padding: 16px;
  }

  .admin-health-list div {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .admin-health-list small {
    grid-column: 2;
  }

  .admin-shield {
    display: none;
  }

  .admin-log-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .brand {
    gap: 8px;
    font-size: 22px;
    line-height: 1;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .sidebar {
    display: grid;
    gap: 14px;
    padding: 14px;
  }

  .sidebar > .brand {
    justify-content: center;
  }

  .balance-card {
    min-height: auto;
    padding: 18px;
  }

  .side-nav {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    margin-inline: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .side-nav .nav-item {
    flex: 0 0 auto;
    min-width: 152px;
    min-height: 44px;
    justify-content: center;
    scroll-snap-align: start;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 58px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
  }

  .top-nav {
    display: none;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .profile-menu {
    min-width: 0;
  }

  .profile-dropdown {
    right: 0;
    width: min(260px, calc(100vw - 28px));
  }

  .content {
    padding: 14px;
  }

  .page-head {
    gap: 10px;
  }

  .page-head h2,
  .search-hero h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .search-hero,
  .panel,
  .support-panel,
  .profile-panel,
  .home-cabinet-grid .panel,
  .cabinet-grid .panel,
  .help-card,
  .help-cta {
    padding: 18px;
  }

  .search-form,
  .home-cabinet-grid,
  .support-grid,
  .help-grid,
  .stats-grid,
  .tariff-grid,
  .parser-progress-grid {
    grid-template-columns: 1fr;
  }

  .parser-progress-head {
    align-items: stretch;
    flex-direction: column;
  }

  .parser-progress-percent {
    font-size: 30px;
  }

  .result-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .kind-pill,
  .members,
  .open-link {
    grid-column: 2;
    justify-self: start;
  }

  .orders-table,
  .admin-table {
    overflow-x: visible;
  }

  .orders-table.full .table-row,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 14px;
  }

  .table-head {
    display: none;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    width: min(100%, 520px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 20px;
  }

  .auth-tabs,
  .support-tabs {
    grid-template-columns: 1fr;
  }

  .remember-row {
    align-items: center;
  }

  .landing-nav {
    position: static;
  }

  .landing-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-actions {
    grid-column: 1 / -1;
    max-width: 300px;
    margin-inline: auto;
  }

  .landing-copy {
    width: 100%;
  }

  .landing-copy .hero-actions {
    width: min(300px, calc(100vw - 36px));
    max-width: 100%;
    margin-inline: auto;
  }

  .landing-copy .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .landing-copy h1 {
    max-width: 330px;
    margin-inline: auto;
    font-size: 31px;
    line-height: 1.14;
    text-wrap: balance;
  }

  .landing-visual {
    margin-inline: -8px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .side-nav .nav-item {
    min-width: 136px;
    font-size: 13px;
  }

  .profile-chip {
    padding: 4px;
  }

  .chat-avatar,
  .result-item .chat-avatar {
    width: 44px;
    height: 44px;
  }

  .landing-copy h1 {
    max-width: 300px;
    font-size: 29px;
  }

  .parser-counter strong {
    font-size: 42px;
  }

  .admin-workspace,
  .admin-sidebar {
    padding: 14px;
  }
}

/* Admin panel 2026 */
body.admin-body {
  --admin-bg: #f7faff;
  --admin-card: #ffffff;
  --admin-line: #dce8f7;
  --admin-muted: #64728c;
  --admin-ink: #101936;
  --admin-blue: #1f73f1;
  --admin-blue-dark: #0d63e9;
  background: var(--admin-bg);
}

.admin-pro.admin-shell {
  min-height: 100vh;
  grid-template-columns: 274px minmax(0, 1fr);
  color: var(--admin-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 274px, transparent 274px),
    radial-gradient(circle at 64% 0%, rgba(31, 115, 241, 0.07), transparent 28%),
    #f7faff;
  transition: grid-template-columns 0.24s ease;
}

.admin-pro.admin-shell.sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 92px, transparent 92px),
    radial-gradient(circle at 64% 0%, rgba(31, 115, 241, 0.07), transparent 28%),
    #f7faff;
}

.admin-pro .admin-sidebar {
  width: 274px;
  gap: 24px;
  padding: 22px 18px;
  border-right: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  transition: width 0.24s ease, padding 0.24s ease, gap 0.24s ease;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-pro.sidebar-collapsed .admin-sidebar {
  width: 92px;
  gap: 18px;
  padding: 22px 16px;
}

.admin-pro.sidebar-collapsed .admin-sidebar-toggle svg {
  transform: rotate(180deg);
}

.admin-pro.sidebar-collapsed .admin-brand > span:not(.brand-mark),
.admin-pro.sidebar-collapsed .admin-nav button span,
.admin-pro.sidebar-collapsed .admin-nav button small,
.admin-pro.sidebar-collapsed .admin-system-card {
  display: none;
}

.admin-pro.sidebar-collapsed .admin-sidebar-head,
.admin-pro.sidebar-collapsed .admin-nav button {
  justify-content: center;
}

.admin-pro.sidebar-collapsed .admin-nav button {
  grid-template-columns: 24px;
  padding: 0;
}

.admin-pro .admin-brand {
  gap: 10px;
  min-height: 52px;
  font-size: 27px;
}

.admin-pro .admin-nav {
  gap: 7px;
}

.admin-pro .admin-nav button {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  color: #30425f;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

.admin-pro .admin-nav button:hover {
  color: var(--admin-blue);
  background: #eef5ff;
  transform: translateX(1px);
}

.admin-pro .admin-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, #247dff, #0864ea);
  box-shadow: 0 14px 28px rgba(31, 115, 241, 0.24);
}

.admin-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav small,
.admin-notice-badge {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--admin-blue);
  background: #e8f2ff;
  font-size: 12px;
  font-weight: 900;
}

.admin-nav button.active small {
  color: var(--admin-blue);
  background: #fff;
}

.admin-pro .admin-system-card {
  gap: 10px;
  margin-top: auto;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef5ff 100%);
}

.admin-pro .admin-system-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0fa85e;
  font-size: 14px;
}

.admin-pro .admin-system-card strong::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16bb67;
}

.admin-pro .admin-workspace {
  min-width: 0;
  padding: 0 0 34px;
}

.admin-pro .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 420px) auto auto;
  gap: 16px;
  min-height: 86px;
  margin: 0;
  padding: 18px 24px 18px 28px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 24px rgba(42, 72, 120, 0.04);
}

.admin-title-block h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
}

.admin-title-block p {
  margin: 7px 0 0;
  color: #667692;
  font-size: 15px;
}

.admin-pro .admin-search {
  min-height: 42px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  border-color: #d7e5f7;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-search kbd {
  min-width: 34px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #6d7d98;
  background: #edf4ff;
  font: 800 12px/1 var(--font);
}

.admin-top-actions {
  position: relative;
  gap: 10px;
}

.admin-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #193251;
  background: transparent;
  cursor: pointer;
}

.admin-bell span {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ff3d4f;
  font-size: 10px;
  font-weight: 900;
}

.admin-notify-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(380px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(28, 58, 104, 0.18);
}

.admin-notify-menu[hidden] {
  display: none;
}

.admin-notify-head,
.admin-notify-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-notify-head {
  padding: 4px 4px 10px;
}

.admin-notify-head button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #51627f;
  background: #f2f7ff;
  cursor: pointer;
}

.admin-notify-list {
  display: grid;
  gap: 8px;
}

.admin-notify-list button {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.admin-notify-list button:hover {
  border-color: rgba(31, 115, 241, 0.38);
  background: #f1f7ff;
}

.admin-notify-list button strong,
.admin-notify-list button span,
.admin-notify-list button small {
  min-width: 0;
  display: block;
}

.admin-notify-list button span {
  flex: 1;
  overflow: hidden;
  color: #5c6d88;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-quick-button {
  min-height: 42px;
  gap: 8px;
  color: var(--admin-blue);
  font-weight: 900;
}

.admin-quick-button .admin-icon:first-child {
  color: var(--admin-blue);
}

.admin-quick-button .admin-icon:last-child {
  width: 16px;
  height: 16px;
}

.admin-quick-menu,
.admin-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  display: none;
  padding: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 58, 104, 0.16);
}

.admin-quick-menu.show,
.admin-profile-menu.show {
  display: grid;
}

.admin-quick-menu button,
.admin-profile-menu button,
.admin-profile-menu a {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #243653;
  background: transparent;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-quick-menu button:hover,
.admin-profile-menu button:hover,
.admin-profile-menu a:hover {
  color: var(--admin-blue);
  background: #f1f6ff;
}

.admin-profile {
  position: relative;
  display: grid;
  grid-template-columns: 48px auto 18px;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-profile > span,
.admin-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1670f8, #0c5ee8);
  box-shadow: 0 8px 18px rgba(31, 115, 241, 0.2);
  font-weight: 900;
}

.admin-profile > span {
  width: 48px;
  height: 48px;
}

.admin-profile strong,
.admin-profile small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile strong {
  color: #101936;
  font-weight: 900;
}

.admin-profile small {
  color: #667692;
  font-size: 12px;
}

.admin-profile-menu {
  right: 24px;
  top: 68px;
}

.admin-content {
  display: grid;
  gap: 18px;
  padding: 20px 24px 0 28px;
}

.admin-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-filter-group,
.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d7e5f7;
  border-radius: 8px;
  color: #334462;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.admin-filter .admin-icon {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  color: #577190;
}

.admin-page-actions .button {
  min-height: 40px;
  gap: 8px;
}

.admin-page-actions .button.primary {
  min-width: 174px;
}

.admin-metrics {
  display: grid;
  gap: 16px;
}

.admin-metrics.dashboard-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.admin-card,
.admin-metric {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(34, 63, 108, 0.06);
}

.admin-metric {
  min-height: 120px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.admin-metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.admin-metric-icon .admin-icon {
  width: 26px;
  height: 26px;
}

.admin-metric p {
  color: #51617d;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.admin-metric strong {
  font-size: 25px;
  line-height: 1.18;
}

.admin-metric small {
  color: #0fa85e;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.admin-metric.red small {
  color: #ed4254;
}

.admin-metric.blue .admin-metric-icon,
.admin-metric.cyan .admin-metric-icon {
  color: #1f73f1;
  background: #eaf3ff;
}

.admin-metric.green .admin-metric-icon {
  color: #13a560;
  background: #e7f8f0;
}

.admin-metric.violet .admin-metric-icon {
  color: #7c5ce8;
  background: #f0edff;
}

.admin-metric.orange .admin-metric-icon {
  color: #ee8b14;
  background: #fff3df;
}

.admin-metric.red .admin-metric-icon {
  color: #f04455;
  background: #fff0f2;
}

.admin-card {
  gap: 18px;
  padding: 22px;
}

.admin-card-head {
  align-items: center;
}

.admin-card-head h2 {
  font-size: 20px;
}

.admin-card-head p {
  margin: 4px 0 0;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(520px, 1fr) minmax(560px, 1.08fr);
}

.admin-dashboard-grid.bottom {
  grid-template-columns: repeat(2, minmax(360px, 1fr));
}

.admin-system-panel {
  min-height: 306px;
}

.admin-health-list {
  max-width: 330px;
}

.admin-health-list div {
  grid-template-columns: 18px 170px auto;
}

.admin-health-list strong {
  font-weight: 800;
}

.admin-shield {
  right: 270px;
  top: 80px;
  width: 206px;
  height: 206px;
  background: repeating-radial-gradient(circle, rgba(31, 115, 241, 0.08) 0 1px, transparent 1px 24px);
}

.admin-shield span {
  display: grid;
  place-items: center;
  color: #fff;
}

.admin-shield span .admin-icon {
  width: 34px;
  height: 34px;
}

.admin-panel-actions {
  position: absolute;
  right: 24px;
  top: 76px;
  width: 205px;
  display: grid;
  gap: 9px;
}

.admin-panel-actions button,
.admin-side-actions button,
.admin-side-actions a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d7e5f7;
  border-radius: 7px;
  color: var(--admin-blue);
  background: #f8fbff;
  font-weight: 900;
  cursor: pointer;
}

.admin-panel-actions button:hover,
.admin-side-actions button:hover,
.admin-side-actions a:hover {
  border-color: #a9c8f4;
  background: #eef5ff;
}

.admin-chart.modern {
  min-height: auto;
}

.admin-chart.modern svg {
  min-height: 0;
}

.admin-chart-grid line {
  stroke: #e6eef8;
}

.chart-line {
  stroke-width: 4;
}

.chart-line.red {
  stroke: #ff4a57;
}

.chart-line.cyan {
  stroke: #28c4df;
}

.admin-chart-legend {
  justify-content: center;
}

.admin-feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 63, 108, 0.06);
}

.admin-feature-strip article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid #dce8f7;
}

.admin-feature-strip article:last-child {
  border-right: 0;
}

.admin-feature-strip span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--admin-blue);
  background: #eaf3ff;
}

.admin-feature-strip p {
  margin: 4px 0 0;
  color: #667692;
  line-height: 1.45;
}

.admin-layout.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.admin-right-rail {
  display: grid;
  gap: 18px;
}

.admin-side-card h2 {
  margin: 0;
  font-size: 18px;
}

.admin-bulkbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: -22px -22px 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-bulkbar > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334462;
  font-weight: 800;
}

.admin-checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-blue);
}

.admin-close-line {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: #6b7b95;
  background: transparent;
  cursor: pointer;
}

.admin-modern-table {
  overflow-x: auto;
}

.admin-modern-head,
.admin-modern-row {
  min-width: 1100px;
  display: grid;
  align-items: center;
  gap: 10px;
}

.admin-modern-head {
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--admin-line);
  color: #50617e;
  font-size: 12px;
  font-weight: 900;
}

.admin-modern-row {
  min-height: 64px;
  padding: 0 14px;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
}

.admin-modern-row.is-selected {
  background: linear-gradient(90deg, rgba(31, 115, 241, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: inset 3px 0 0 var(--admin-blue);
}

.admin-modern-row strong,
.admin-modern-row small,
.admin-modern-row span {
  min-width: 0;
}

.admin-modern-row small {
  display: block;
  margin-top: 3px;
  color: #667692;
}

.admin-user-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-user-cell.compact {
  grid-template-columns: 30px minmax(0, 1fr);
}

.admin-user-cell.compact .admin-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.avatar-0 { background: linear-gradient(135deg, #1f73f1, #62a5ff); }
.avatar-1 { background: linear-gradient(135deg, #f97316, #ffd0a3); }
.avatar-2 { background: linear-gradient(135deg, #7c3aed, #c4b5fd); }
.avatar-3 { background: linear-gradient(135deg, #0ea5e9, #67e8f9); }
.avatar-4 { background: linear-gradient(135deg, #10b981, #9ff0c7); }
.avatar-5 { background: linear-gradient(135deg, #ef4444, #fecaca); }

.admin-pill {
  min-height: 26px;
  gap: 6px;
  border-radius: 6px;
  font-size: 12px;
}

.admin-pill.violet {
  color: #7048d7;
  background: #f0edff;
}

.admin-pill.neutral {
  color: #5f6d80;
  background: #eef3f8;
}

.admin-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}

.admin-dot.green { color: #13a560; }
.admin-dot.orange { color: #f59d0c; }
.admin-dot.red { color: #ef4444; }
.admin-dot.blue { color: #1f73f1; }
.admin-dot.gray { color: #9aa9bc; }

.admin-id-link,
.admin-url {
  color: var(--admin-blue);
  font-weight: 900;
}

.admin-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #52647f;
  line-height: 1.45;
}

.admin-row-actions.icon-only {
  gap: 4px;
}

.admin-row-actions.icon-only button,
.admin-row-actions.icon-only a {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7e5f7;
  border-radius: 7px;
  color: #27476f;
  background: #fff;
}

.admin-row-actions.icon-only .admin-icon {
  width: 15px;
  height: 15px;
}

.admin-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  color: #536683;
  font-weight: 800;
}

.admin-pagination > div {
  display: flex;
  gap: 8px;
}

.admin-pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid #d7e5f7;
  border-radius: 7px;
  color: #28415f;
  background: #fff;
  font-weight: 900;
}

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

.admin-progress-line {
  display: grid;
  gap: 7px;
}

.admin-progress-line div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #425575;
  font-size: 13px;
  font-weight: 800;
}

.admin-progress-line b {
  color: #2f4160;
}

.admin-progress-line i,
.admin-progress-mini i {
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 99px;
  background: #e3ecf7;
}

.admin-progress-line em,
.admin-progress-mini em {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--admin-blue);
}

.admin-progress-line em.green,
.admin-progress-mini em.green { background: #16b981; }
.admin-progress-line em.orange,
.admin-progress-mini em.orange { background: #f59e0b; }
.admin-progress-line em.violet,
.admin-progress-mini em.violet { background: #8b5cf6; }
.admin-progress-line em.red,
.admin-progress-mini em.red { background: #ef4444; }
.admin-progress-line em.gray,
.admin-progress-mini em.gray { background: #94a3b8; }
.admin-progress-line em.cyan,
.admin-progress-mini em.cyan { background: #28c4df; }

.admin-status-list {
  display: grid;
  gap: 14px;
}

.admin-status-list p,
.admin-side-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #425575;
  font-weight: 800;
}

.admin-side-actions {
  display: grid;
  gap: 9px;
}

.admin-side-actions a {
  text-decoration: none;
}

.admin-progress-mini {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 42px;
  align-items: center;
  gap: 8px;
  color: #425575;
  font-size: 12px;
  font-weight: 900;
}

.admin-quick-parser {
  display: grid;
  gap: 10px;
}

.admin-quick-parser label,
.admin-action-form label {
  display: grid;
  gap: 6px;
  color: #425575;
  font-size: 13px;
  font-weight: 900;
}

.admin-quick-parser input,
.admin-action-form input,
.admin-action-form textarea,
.admin-import-card textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e5f7;
  border-radius: 7px;
  background: #f8fbff;
}

.admin-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-toggle input {
  width: 34px;
  height: 18px;
  accent-color: var(--admin-blue);
}

.admin-wide-chart {
  margin-top: 18px;
}

.admin-import-card {
  margin-top: 18px;
}

.admin-import-card .file-import {
  display: grid;
  gap: 8px;
}

.admin-analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr) 320px;
  gap: 18px;
  align-items: start;
}

.admin-analytics-main {
  min-height: 330px;
}

.admin-side-metrics {
  display: grid;
  gap: 18px;
}

.admin-side-metrics .admin-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  padding: 18px;
}

.admin-side-metrics p {
  margin: 0;
  color: #667692;
}

.admin-side-metrics strong {
  font-size: 26px;
}

.admin-spark {
  width: 88px;
  height: 30px;
  grid-row: span 2;
  fill: none;
  stroke: var(--admin-blue);
  stroke-width: 3;
}

.admin-spark.green { stroke: #16b981; }
.admin-spark.cyan { stroke: #28c4df; }

.admin-analytics-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-big-kpi {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.admin-big-kpi .admin-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  color: var(--admin-blue);
  background: #eaf3ff;
}

.admin-big-kpi strong {
  display: block;
  font-size: 26px;
}

.admin-big-kpi small {
  color: #13a560;
  font-weight: 800;
}

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

.admin-mini-metric-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-mini-metric-grid b {
  font-size: 24px;
}

.admin-mini-metric-grid span {
  color: #667692;
}

.admin-admin-list article {
  background: #f8fbff;
}

.admin-log-item {
  background: #f8fbff;
}

.admin-action-form {
  gap: 16px;
}

@media (max-width: 1600px) {
  .admin-metrics.dashboard-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .admin-dashboard-grid,
  .admin-dashboard-grid.bottom,
  .admin-analytics-layout,
  .admin-analytics-grid-pro {
    grid-template-columns: 1fr;
  }

  .admin-shield,
  .admin-panel-actions {
    display: none;
  }

  .admin-health-list {
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .admin-pro.admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-pro .admin-sidebar {
    position: static;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-pro .admin-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-pro .admin-nav button {
    flex: 0 0 auto;
    min-width: 172px;
  }

  .admin-pro .admin-topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .admin-profile-menu {
    right: auto;
    left: 24px;
    top: auto;
  }

  .admin-layout.with-aside {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .admin-content,
  .admin-pro .admin-topbar {
    padding-inline: 14px;
  }

  .admin-filter-row,
  .admin-bulkbar,
  .admin-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-filter-row {
    display: grid;
  }

  .admin-filter-group,
  .admin-page-actions,
  .admin-bulkbar > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-metrics.dashboard-row,
  .admin-metrics.five,
  .admin-metrics.three,
  .admin-metrics.six,
  .admin-right-rail,
  .admin-feature-strip,
  .admin-mini-metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-feature-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    padding: 14px 0;
  }

  .admin-feature-strip article:last-child {
    border-bottom: 0;
  }

  .ticket-dialog-grid,
  .ticket-dialog-grid.single {
    grid-template-columns: 1fr;
  }

  .ticket-thread {
    max-height: 48vh;
  }

  .admin-card,
  .admin-metric {
    padding: 16px;
  }

  .admin-bulkbar {
    margin: -16px -16px 0;
    padding: 12px 16px;
  }

  .admin-modern-head {
    display: none;
  }

  .admin-modern-row {
    min-width: 720px;
  }
}

.admin-pro .admin-nav button,
.admin-filter,
.admin-page-actions .button,
.admin-panel-actions button,
.admin-side-actions button,
.admin-side-actions a,
.admin-pagination,
.admin-checkline,
.admin-pill {
  font-weight: 700;
}

.admin-title-block h1,
.admin-card-head h2,
.admin-side-card h2 {
  font-weight: 800;
}

.admin-modern-head {
  font-weight: 700;
}

.admin-modern-row strong,
.admin-id-link,
.admin-url {
  font-weight: 700;
}

.admin-metric p,
.admin-metric small,
.admin-progress-line div {
  font-weight: 700;
}

.admin-metric strong {
  font-weight: 800;
}

.admin-card,
.admin-metric,
.admin-filter,
.admin-page-actions .button,
.admin-panel-actions button,
.admin-side-actions button,
.admin-side-actions a,
.admin-row-actions.icon-only button,
.admin-pagination button,
.admin-modern-row {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.admin-modern-row:hover {
  background: #f8fbff;
}

.admin-modern-row.is-selected {
  background: linear-gradient(90deg, rgba(31, 115, 241, 0.09), rgba(255, 255, 255, 0.98));
  animation: adminRowSelect 0.22s ease both;
}

.admin-bulkbar .button:disabled,
.admin-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.admin-pagination button.admin-page-gap {
  color: #8a9ab2;
  background: transparent;
  border-color: transparent;
}

.admin-row-actions.icon-only button {
  cursor: pointer;
}

.admin-row-actions.icon-only button:hover,
.admin-pagination button:not(:disabled):hover,
.admin-filter:hover,
.admin-page-actions .button:hover,
.admin-panel-actions button:hover,
.admin-side-actions button:hover,
.admin-side-actions a:hover {
  transform: translateY(-1px);
}

@media (hover: hover) {
  .admin-card:hover,
  .admin-metric:hover {
    box-shadow: 0 16px 34px rgba(34, 63, 108, 0.09);
  }
}

.chart-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}

.admin-modal[open] .modal-card {
  animation: adminModalIn 0.18s ease both;
}

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

@keyframes adminRowSelect {
  from {
    box-shadow: inset 0 0 0 var(--admin-blue);
  }
  to {
    box-shadow: inset 3px 0 0 var(--admin-blue);
  }
}

@keyframes adminChartDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes adminModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile comfort pass */
@media (max-width: 760px) {
  .legal-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .legal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-card-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero,
  .legal-document,
  .legal-note {
    padding: 22px;
  }

  .legal-hero h1,
  .legal-document h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .support-legal-note {
    display: grid;
  }

  .support-legal-note strong {
    min-width: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }

  html {
    scroll-padding-top: 70px;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  input,
  select,
  textarea,
  button,
  .button,
  .icon-button,
  .nav-item,
  .admin-filter,
  .admin-page-actions .button,
  .admin-side-actions button,
  .admin-side-actions a {
    touch-action: manipulation;
  }

  .button,
  .icon-button,
  .admin-filter,
  .admin-page-actions .button,
  .admin-side-actions button,
  .admin-side-actions a {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .landing-shell,
  .app-shell,
  .admin-pro.admin-shell {
    overflow-x: hidden;
  }

  .admin-login-screen {
    min-height: 100svh;
    padding: 12px;
    overflow-x: hidden;
  }

  .admin-login-card {
    width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-width: 0;
    gap: 16px;
    padding: 24px 18px;
  }

  .admin-login-card h1 {
    max-width: 100%;
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .admin-login-card p,
  .admin-login-link {
    font-size: 14px;
    line-height: 1.55;
  }

  .admin-login-form {
    width: 100%;
    gap: 12px;
    margin-top: 0;
  }

  .admin-login-form .button {
    width: 100%;
  }

  .landing-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(33, 64, 110, 0.08);
  }

  .landing-nav .brand {
    justify-content: center;
  }

  .landing-links {
    justify-content: flex-start;
    gap: 8px;
    order: 3;
    margin-inline: -14px;
    padding: 0 14px 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .landing-links::-webkit-scrollbar,
  .side-nav::-webkit-scrollbar,
  .admin-pro .admin-nav::-webkit-scrollbar,
  .admin-modern-table::-webkit-scrollbar {
    display: none;
  }

  .landing-links a,
  .landing-links button {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #dce8f7;
    border-radius: 8px;
    background: #f6f9ff;
    font-size: 13px;
    white-space: nowrap;
  }

  .landing-actions {
    order: 2;
    grid-template-columns: 1fr;
    width: min(280px, 100%);
    max-width: 100%;
    gap: 8px;
    margin-inline: auto;
  }

  .landing-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding-inline: 10px;
  }

  .landing-hero {
    gap: 22px;
    padding: 30px 14px 42px;
  }

  .landing-copy {
    text-align: center;
  }

  .landing-copy h1 {
    max-width: 340px;
    font-size: clamp(29px, 9vw, 36px);
  }

  .landing-copy .hero-actions {
    width: min(280px, 100%);
  }

  .landing-advantages {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .landing-advantages div {
    min-height: auto;
    padding: 14px;
  }

  .landing-visual {
    margin-inline: 0;
    border-radius: 8px;
  }

  .landing-band,
  .process-section,
  .pricing-section {
    padding: 38px 14px;
  }

  .feature-grid,
  .parser-showcase,
  .landing-pricing,
  .faq-grid,
  .seo-content {
    gap: 12px;
  }

  .feature-card,
  .landing-pricing article,
  .faq-grid article,
  .seo-content article {
    padding: 16px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .section-title h2 {
    font-size: clamp(25px, 7vw, 31px);
  }

  .parser-flow,
  .parser-counter {
    padding: 16px;
  }

  .scan-window {
    min-height: 230px;
    gap: 10px;
  }

  .scan-card {
    padding: 12px;
  }

  .parser-counter strong {
    font-size: clamp(40px, 14vw, 56px);
  }

  .landing-footer {
    gap: 8px;
    padding: 20px 14px;
    text-align: center;
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    display: block;
    grid-template-columns: none;
  }

  .app-shell.sidebar-collapsed .brand > span:not(.brand-mark),
  .app-shell.sidebar-collapsed .nav-label {
    display: inline;
  }

  .app-shell.sidebar-collapsed .balance-card {
    display: grid;
  }

  .app-shell.sidebar-collapsed .sidebar {
    padding: 12px;
  }

  .sidebar {
    position: relative;
    gap: 12px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-head {
    justify-content: center;
  }

  .sidebar-toggle {
    display: none;
  }

  .balance-card {
    padding: 14px 16px;
  }

  .balance-card .eyebrow {
    margin-bottom: 6px;
  }

  .balance-card strong {
    font-size: 27px;
  }

  .balance-meta {
    margin-top: 6px;
    font-size: 12px;
  }

  .side-nav {
    display: flex;
    gap: 8px;
    margin-inline: -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .side-nav .nav-item {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 42px;
    gap: 8px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .topbar {
    min-height: 56px;
    padding: 8px 12px;
  }

  .top-actions {
    gap: 8px;
  }

  .profile-chip {
    min-height: 44px;
    padding: 4px;
  }

  .profile-dropdown {
    width: min(280px, calc(100vw - 24px));
  }

  .content {
    padding: 12px;
  }

  .search-hero,
  .parser-search-panel,
  .panel,
  .results-panel,
  .orders-panel,
  .support-panel,
  .profile-panel,
  .home-cabinet-grid .panel,
  .cabinet-grid .panel,
  .help-card,
  .help-cta,
  .tariff-card {
    padding: 16px;
  }

  .search-hero h1,
  .page-head h2,
  .parser-search-panel h2 {
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.14;
  }

  .dashboard-home-hero .hero-copy {
    gap: 12px;
  }

  .current-plan-card {
    align-items: flex-start;
    padding: 14px;
  }

  .stats-grid,
  .dashboard-grid,
  .home-cabinet-grid,
  .support-grid,
  .help-grid,
  .trust-strip,
  .tariff-grid,
  .parser-progress-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    min-height: auto;
    padding: 14px;
  }

  .metric-icon {
    width: 52px;
    height: 52px;
  }

  .metric-icon svg {
    width: 27px;
    height: 27px;
  }

  .parser-search-panel::before {
    width: 74px;
    height: 74px;
    right: 10px;
    top: 10px;
  }

  .parser-search-panel .keyword-only-form {
    padding: 14px;
  }

  #keywordsInput {
    min-height: 150px;
  }

  .panel-head {
    gap: 12px;
  }

  .panel-head .button,
  .page-head .button,
  .support-panel .button,
  .tariff-card .button {
    width: 100%;
  }

  .parser-progress-head {
    gap: 10px;
  }

  .parser-progress-percent {
    font-size: 32px;
  }

  .parser-progress-grid div {
    min-height: auto;
    padding: 12px;
  }

  .results-list,
  .orders-table {
    border-radius: 8px;
  }

  .result-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .chat-avatar {
    width: 44px;
    height: 44px;
  }

  .chat-name strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .chat-location,
  .members,
  .open-link {
    font-size: 13px;
  }

  .kind-pill,
  .members,
  .open-link {
    grid-column: 2;
    justify-self: start;
  }

  .open-link {
    min-height: 34px;
  }

  .orders-table.full .table-row,
  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 12px;
  }

  .table-row > span,
  .table-row .status,
  .table-row .file-actions {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .file-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .file-button {
    min-width: 44px;
    height: 38px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-row,
  .payment-list > div,
  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-name-action,
  .profile-email-action {
    align-items: stretch;
    flex-direction: column;
  }

  .verify-email-button {
    min-height: 40px;
    justify-content: flex-start;
  }

  .support-tabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .support-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .support-icon {
    width: 42px;
    height: 42px;
  }

  .ticket-item,
  .help-card {
    overflow-wrap: anywhere;
  }

  .modal {
    padding: 8px;
  }

  .modal-card,
  .ticket-dialog,
  .admin-modal[open] .modal-card {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 16px);
    padding: 16px;
    overflow-y: auto;
  }

  .modal-head {
    gap: 12px;
  }

  .auth-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .remember-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .admin-pro.admin-shell,
  .admin-pro.admin-shell.sidebar-collapsed {
    display: block;
    grid-template-columns: none;
    background: #f7faff;
  }

  .admin-pro .admin-sidebar,
  .admin-pro.sidebar-collapsed .admin-sidebar {
    position: relative;
    width: auto;
    height: auto;
    gap: 12px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-pro.sidebar-collapsed .admin-brand > span:not(.brand-mark),
  .admin-pro.sidebar-collapsed .admin-nav button span,
  .admin-pro.sidebar-collapsed .admin-nav button small {
    display: inline-grid;
  }

  .admin-pro.sidebar-collapsed .admin-system-card {
    display: grid;
  }

  .admin-sidebar-head {
    justify-content: center;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-pro .admin-nav,
  .admin-pro.sidebar-collapsed .admin-nav {
    display: flex;
    gap: 8px;
    margin-inline: -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
  }

  .admin-pro .admin-nav button,
  .admin-pro.sidebar-collapsed .admin-nav button {
    flex: 0 0 auto;
    grid-template-columns: 20px minmax(0, auto) auto;
    min-width: auto;
    min-height: 42px;
    padding: 0 12px;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .admin-pro .admin-system-card {
    margin-top: 0;
    padding: 12px;
  }

  .admin-pro .admin-workspace {
    padding-bottom: 18px;
  }

  .admin-pro .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 42;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .admin-title-block {
    grid-column: 1 / -1;
  }

  .admin-title-block h1 {
    font-size: 24px;
  }

  .admin-title-block p {
    font-size: 13px;
  }

  .admin-pro .admin-search {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 42px;
  }

  .admin-search kbd {
    display: none;
  }

  .admin-top-actions {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    min-width: 0;
  }

  .admin-quick-button {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
  }

  .admin-profile {
    grid-column: 2;
    grid-row: 3;
    min-width: 44px;
    padding: 4px;
  }

  .admin-profile div,
  .admin-profile > svg {
    display: none;
  }

  .admin-quick-menu,
  .admin-profile-menu {
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 24px));
  }

  .admin-content {
    padding: 12px;
  }

  .admin-filter-row,
  .admin-filter-group,
  .admin-page-actions,
  .admin-bulkbar,
  .admin-bulkbar > div,
  .admin-pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-filter,
  .admin-page-actions .button,
  .admin-bulkbar .button {
    width: 100%;
  }

  .admin-metrics.dashboard-row,
  .admin-metrics.five,
  .admin-metrics.three,
  .admin-metrics.six,
  .admin-dashboard-grid,
  .admin-dashboard-grid.bottom,
  .admin-layout.with-aside,
  .admin-right-rail,
  .admin-analytics-layout,
  .admin-analytics-grid-pro,
  .admin-mini-metric-grid,
  .admin-settings-grid,
  .admin-source-grid,
  .admin-tariff-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-card,
  .admin-metric {
    padding: 14px;
  }

  .admin-metric {
    min-height: auto;
  }

  .admin-card-head {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-modern-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-modern-head,
  .admin-modern-row {
    min-width: 760px;
  }

  .admin-source-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-source-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-import-card textarea,
  .admin-action-form textarea {
    min-height: 140px;
  }
}

@media (max-width: 420px) {
  .admin-login-card {
    width: min(300px, calc(100vw - 24px));
  }

  .landing-actions {
    grid-template-columns: 1fr;
  }

  .landing-copy .hero-actions {
    width: 100%;
  }

  .side-nav .nav-item,
  .admin-pro .admin-nav button,
  .admin-pro.sidebar-collapsed .admin-nav button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .balance-card strong {
    font-size: 25px;
  }

  .search-hero,
  .parser-search-panel,
  .panel,
  .results-panel,
  .orders-panel,
  .support-panel,
  .profile-panel,
  .home-cabinet-grid .panel,
  .cabinet-grid .panel,
  .help-card,
  .help-cta,
  .tariff-card,
  .admin-card,
  .admin-metric {
    padding: 14px;
  }

  .admin-modern-head,
  .admin-modern-row {
    min-width: 700px;
  }
}

@media (max-width: 760px) {
  .modal.ticket-modal {
    width: calc(100vw - 14px);
  }

  .ticket-dialog,
  .admin-modal[open] .ticket-dialog {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    max-height: calc(100dvh - 14px);
    overflow: hidden;
  }

  .ticket-dialog-grid,
  .ticket-dialog-grid.single {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: hidden;
  }

  .ticket-thread {
    max-height: 45dvh;
    padding-right: 6px;
  }

  .ticket-side {
    max-height: 18dvh;
    overflow: auto;
  }

  .ticket-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticket-dialog-actions .button,
  .ticket-file-control input[type="file"] {
    width: 100%;
  }

  .ticket-attachment {
    max-width: 100%;
  }

  .ticket-attachment img {
    width: 100%;
    max-height: 180px;
  }
}

.admin-dashboard-grid:not(.bottom) > .admin-card:nth-child(2) {
  display: none;
}

.admin-dashboard-grid:not(.bottom) {
  grid-template-columns: 1fr;
}

.admin-system-panel-modern {
  min-height: auto;
  padding: 24px;
  overflow: hidden;
}

.admin-system-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-system-head p {
  max-width: 620px;
  margin: 6px 0 0;
  color: #667692;
  font-size: 14px;
  font-weight: 650;
}

.admin-system-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 250px 230px;
  align-items: stretch;
  gap: 22px;
}

.admin-system-panel-modern .admin-health-list {
  max-width: none;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 12px;
}

.admin-system-panel-modern .admin-health-list div {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px 12px;
  align-items: start;
  min-height: 70px;
  padding: 14px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.admin-system-panel-modern .admin-health-list small {
  grid-column: 2;
  line-height: 1.35;
}

.admin-system-panel-modern .admin-health-list strong {
  font-weight: 800;
}

.admin-check.error {
  color: #ef334b;
}

.admin-system-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 220px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 34%, #f7fbff 0, #fff 58%);
}

.admin-system-visual .admin-shield {
  position: static;
  width: 154px;
  height: 154px;
  background: repeating-radial-gradient(circle, rgba(31, 115, 241, 0.1) 0 1px, transparent 1px 20px);
}

.admin-system-visual .admin-shield span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.admin-system-visual strong {
  color: #13203c;
  font-size: 18px;
  font-weight: 900;
}

.admin-system-visual small {
  color: #667692;
  font-weight: 700;
}

.admin-system-panel-modern .admin-panel-actions {
  position: static;
  width: auto;
  display: grid;
  align-content: center;
  gap: 10px;
}

.admin-system-panel-modern .admin-panel-actions button {
  justify-content: flex-start;
  min-height: 44px;
}

.admin-dashboard-grid-single {
  grid-template-columns: 1fr;
}

.admin-system-panel-modern.compact {
  min-height: 0;
  padding: 20px 22px;
}

.admin-system-panel-modern.compact .admin-system-head {
  margin-bottom: 14px;
}

.admin-system-panel-modern.compact .admin-system-head p {
  font-size: 13px;
}

.admin-system-panel-modern.compact .admin-system-layout {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.admin-health-chip {
  min-height: 72px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.admin-health-chip strong {
  display: block;
  color: #14213f;
  font-size: 14px;
  font-weight: 900;
}

.admin-health-chip small {
  display: block;
  margin-top: 2px;
  color: #667692;
  font-size: 12px;
  font-weight: 750;
}

.admin-health-chip.summary {
  grid-template-columns: 38px minmax(0, 1fr);
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.admin-health-chip.summary > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1f73f1, #62a5ff);
  box-shadow: 0 10px 20px rgba(31, 115, 241, 0.18);
}

.admin-health-chip.summary .admin-icon {
  width: 20px;
  height: 20px;
}

.catalog-body {
  min-height: 100vh;
  color: #102043;
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 115, 241, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.public-catalog-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.public-catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
}

.public-catalog-topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-catalog-topbar nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dbe8f8;
  border-radius: 8px;
  color: #234062;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  text-decoration: none;
}

.public-catalog-card {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid #d6e6f8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(31, 79, 140, 0.12);
}

.public-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.public-catalog-head h1 {
  margin: 0;
  color: #0d1836;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.public-catalog-head p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #5d6f8a;
  font-size: 17px;
  line-height: 1.55;
}

.public-catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  margin-bottom: 14px;
}

.public-catalog-search label,
.public-catalog-add label {
  display: grid;
  gap: 8px;
}

.public-catalog-search span,
.public-catalog-add span {
  color: #657794;
  font-size: 13px;
  font-weight: 850;
}

.public-catalog-search input,
.public-catalog-add input,
.public-catalog-add select,
.public-catalog-add textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5e3f4;
  border-radius: 8px;
  padding: 0 14px;
  color: #14213d;
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.public-catalog-add textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.public-catalog-search input:focus,
.public-catalog-add input:focus,
.public-catalog-add select:focus,
.public-catalog-add textarea:focus {
  border-color: #1f73f1;
  box-shadow: 0 0 0 4px rgba(31, 115, 241, 0.1);
}

.public-catalog-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid #d9e7f7;
  border-radius: 10px;
  background: #f2f7ff;
}

.public-catalog-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #425574;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.public-catalog-tabs button span {
  margin-left: 6px;
  color: #7d8ca6;
  font-size: 12px;
}

.public-catalog-tabs button.active {
  color: #0b63f4;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 115, 241, 0.13);
}

.public-catalog-add {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(260px, 1.2fr);
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #d8e7f8;
  border-radius: 10px;
  background: #f9fcff;
}

.public-catalog-add[hidden] {
  display: none;
}

.public-catalog-add .wide {
  grid-column: 1 / 3;
}

.public-catalog-add-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.public-catalog-state {
  margin: 18px 0;
  padding: 14px;
  border: 1px dashed #bed4ef;
  border-radius: 8px;
  color: #446080;
  background: #f6faff;
  font-weight: 800;
}

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

.public-resource-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(40, 83, 140, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.public-resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 115, 241, 0.42);
  box-shadow: 0 22px 46px rgba(31, 115, 241, 0.12);
}

.public-resource-head,
.public-resource-meta,
.public-catalog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-resource-kind,
.public-resource-members {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  color: #0b63f4;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

.public-resource-members {
  color: #148651;
  background: #e8f8f0;
}

.public-resource-card h2 {
  margin: 0;
  color: #102043;
  font-size: 20px;
  line-height: 1.25;
}

.public-resource-card p {
  margin: 0;
  color: #5c6d88;
  line-height: 1.55;
}

.public-resource-meta {
  margin-top: auto;
  color: #7d8ca6;
  font-size: 13px;
  font-weight: 800;
}

.public-catalog-bottom {
  margin-top: 20px;
  color: #536783;
  font-weight: 850;
}

.public-catalog-empty {
  grid-column: 1 / -1;
}

body.catalog-loading .public-catalog-grid {
  opacity: 0.58;
  pointer-events: none;
}

.public-catalog-add-button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(31, 115, 241, 0.22);
  white-space: nowrap;
}

.public-catalog-dialog {
  width: min(680px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #d7e7f9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(22, 45, 84, 0.24);
}

.public-catalog-dialog::backdrop {
  background: rgba(15, 31, 58, 0.34);
  backdrop-filter: blur(4px);
}

.public-catalog-dialog .public-catalog-add {
  margin: 0;
  border: 0;
  border-radius: 12px;
  grid-template-columns: 150px minmax(0, 1fr);
  background: #fff;
}

.public-catalog-dialog-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 4px;
}

.public-catalog-dialog-head h2 {
  margin: 0;
  color: #0d1836;
  font-size: 26px;
  line-height: 1.1;
}

.public-catalog-dialog-head p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #657794;
  line-height: 1.5;
}

.public-catalog-dialog-close {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe8f8;
  border-radius: 8px;
  color: #5e718f;
  background: #f6faff;
  font-size: 24px;
  cursor: pointer;
}

.public-catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.public-resource-card {
  min-width: 0;
  min-height: 238px;
  overflow: hidden;
  border-radius: 12px;
}

.public-resource-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.public-resource-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(31, 115, 241, 0.16);
}

.public-resource-titlebox,
.public-resource-card h2,
.public-resource-card p,
.public-resource-meta {
  min-width: 0;
}

.public-resource-head {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.public-resource-members {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-resource-card h2 {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.public-resource-card .button.full {
  align-self: end;
  margin-top: auto;
}

.public-resource-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .admin-system-layout {
    grid-template-columns: 1fr;
  }

  .admin-system-panel-modern.compact .admin-system-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-system-panel-modern .admin-panel-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-system-panel-modern {
    padding: 18px;
  }

  .admin-system-panel-modern .admin-health-list,
  .admin-system-panel-modern .admin-panel-actions,
  .admin-system-panel-modern.compact .admin-system-layout {
    grid-template-columns: 1fr;
  }

  .public-catalog-shell {
    width: min(100% - 18px, 1240px);
    padding: 12px 0 32px;
  }

  .public-catalog-topbar,
  .public-catalog-head,
  .public-catalog-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .public-catalog-topbar nav,
  .public-catalog-search,
  .public-catalog-tabs,
  .public-catalog-add,
  .public-catalog-grid {
    grid-template-columns: 1fr;
  }

  .public-catalog-topbar nav {
    display: grid;
  }

  .public-catalog-card {
    padding: 16px;
    border-radius: 10px;
  }

  .public-catalog-head h1 {
    font-size: 32px;
  }

  .public-catalog-add .wide {
    grid-column: auto;
  }

  .public-catalog-add-actions {
    display: grid;
    align-items: stretch;
  }

  .public-catalog-dialog .public-catalog-add {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .public-catalog-dialog-head {
    align-items: stretch;
  }

  .public-resource-card {
    min-height: 0;
  }
}
/* Partner program */
.partner-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f8ff;
  color: #071436;
}

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

.partner-topbar,
.partner-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #d9e6f7;
  backdrop-filter: blur(18px);
}

.partner-topbar nav,
.partner-app-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.partner-topbar nav a,
.partner-app-header a {
  color: #18305c;
  font-weight: 700;
  text-decoration: none;
}

.partner-public main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 58px 24px 42px;
}

.partner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  align-items: center;
  gap: 48px;
  min-height: 520px;
}

.partner-hero-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.partner-hero-copy h1 span {
  color: #1f73ff;
  display: block;
}

.partner-hero-copy p {
  max-width: 560px;
  margin: 28px 0;
  color: #607092;
  font-size: 22px;
  line-height: 1.55;
}

.partner-hero-actions,
.partner-benefits-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.partner-benefits-inline {
  margin-top: 34px;
}

.partner-benefits-inline span {
  position: relative;
  padding-left: 34px;
  color: #35486e;
  font-weight: 700;
}

.partner-benefits-inline span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f73ff, #6ea7ff);
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(31, 115, 255, 0.2);
}

.partner-stat-card,
.partner-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d8e5f7;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(19, 74, 149, 0.1);
}

.partner-stat-card {
  padding: 22px;
}

.partner-card-head,
.partner-stat-card .partner-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.partner-card-head h2,
.partner-stat-card h2,
.partner-section h2,
.partner-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.partner-stat-card .partner-card-head span {
  padding: 10px 14px;
  border: 1px solid #d5e3f8;
  border-radius: 12px;
  color: #647392;
  font-weight: 700;
}

.partner-stat-grid,
.partner-feature-grid,
.partner-steps,
.partner-metrics-row {
  display: grid;
  gap: 16px;
}

.partner-stat-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}

.partner-stat-grid article,
.partner-feature-grid article,
.partner-steps article,
.partner-metric {
  padding: 24px;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

[data-partner-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #1f73ff;
  background: #eaf3ff;
}

[data-partner-icon] svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-stat-grid p,
.partner-metric p {
  margin: 14px 0 4px;
  color: #667895;
  font-weight: 700;
}

.partner-stat-grid strong,
.partner-metric strong {
  display: block;
  font-size: 30px;
}

.partner-stat-grid small,
.partner-metric small {
  color: #00a85a;
  font-weight: 700;
}

.partner-info-line {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eaf3ff;
  color: #1264e8;
  font-weight: 800;
}

.partner-info-line a {
  color: inherit;
  text-decoration: none;
}

.partner-section {
  margin-top: 66px;
}

.partner-section h2 {
  margin-bottom: 22px;
}

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

.partner-steps article {
  position: relative;
  min-height: 230px;
  text-align: center;
}

.partner-steps b {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #1264e8;
}

.partner-steps [data-partner-icon] {
  margin-top: 28px;
}

.partner-steps h3,
.partner-feature-grid h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.partner-steps p,
.partner-feature-grid p,
.partner-card p {
  color: #627391;
  line-height: 1.55;
}

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

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

.partner-audience span {
  padding: 20px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.partner-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf3ff, #ffffff 55%, #dfeeff);
  border: 1px solid #d7e6fb;
}

.partner-cta h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.partner-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f9ff;
}

.partner-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid #d9e6f7;
}

.partner-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 42px;
}

.partner-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 12px;
  color: #23385f;
  background: transparent;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.partner-sidebar nav button.active,
.partner-sidebar nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, #1f73ff, #005ce8);
  box-shadow: 0 12px 26px rgba(31, 115, 255, 0.22);
}

.partner-sidebar nav button [data-partner-icon] {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
}

.partner-sidebar-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border: 1px solid #d8e6f7;
}

.partner-sidebar-card strong,
.partner-sidebar-card a {
  display: block;
  color: #1264e8;
  font-weight: 900;
  text-decoration: none;
}

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

.partner-app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  justify-content: flex-end;
}

.partner-mobile-menu {
  display: none;
}

.partner-bell,
.partner-profile {
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  background: #fff;
  font-weight: 900;
}

.partner-bell {
  position: relative;
  width: 42px;
  height: 42px;
  color: #1264e8;
}

.partner-bell span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 11px;
  line-height: 1;
}

.partner-profile-wrap {
  position: relative;
}

.partner-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  cursor: pointer;
}

.partner-profile span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1f73ff, #005ce8);
}

.partner-profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 12;
  width: 260px;
  padding: 14px;
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(22, 54, 101, 0.16);
}

.partner-profile-menu strong,
.partner-profile-menu small {
  display: block;
}

.partner-profile-menu strong {
  color: #101936;
  font-weight: 720;
}

.partner-profile-menu small {
  margin: 3px 0 12px;
  color: #687896;
  overflow-wrap: anywhere;
}

.partner-profile-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: #21365d;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.partner-profile-menu button:hover {
  color: #1264e8;
  background: #eef6ff;
}

#partnerContent {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 28px;
}

.partner-dashboard-hero {
  padding: 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 30%, rgba(31, 115, 255, 0.13), transparent 24%),
    linear-gradient(135deg, #ffffff, #eaf3ff);
  border: 1px solid #d8e6f7;
}

.partner-dashboard-hero.compact {
  padding: 34px;
}

.partner-dashboard-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.partner-dashboard-hero p {
  max-width: 680px;
  color: #607092;
  font-size: 19px;
  line-height: 1.55;
}

.partner-dashboard-grid,
.partner-tables {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  margin-top: 28px;
}

.partner-card {
  padding: 26px;
}

.partner-copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  margin: 18px 0 24px;
}

.partner-copy-line input,
.partner-withdraw-form input,
.partner-withdraw-form select,
.partner-withdraw-form textarea,
.partner-auth-card input {
  width: 100%;
  border: 1px solid #d5e3f8;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: #071436;
  font: inherit;
}

.partner-percent-card {
  position: relative;
  overflow: hidden;
}

.partner-percent-card strong {
  color: #1f73ff;
  font-size: 58px;
}

.partner-percent-card [data-partner-icon] {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
}

.partner-metrics-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.partner-table {
  display: grid;
}

.partner-table > div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 120px 110px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e0eaf8;
}

.partner-table.withdrawals > div {
  grid-template-columns: 1fr 120px 140px;
}

.partner-table strong,
.partner-table small {
  display: block;
}

.partner-table small {
  color: #607092;
}

.partner-recommendations {
  margin-top: 28px;
}

.partner-recommendations > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.partner-withdraw-form {
  display: grid;
  gap: 16px;
}

.partner-form-note {
  padding: 13px 14px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  color: #50627f;
  background: #f4f8ff;
  font-size: 14px;
  line-height: 1.45;
}

.partner-withdraw-form label,
.partner-auth-card label {
  display: grid;
  gap: 8px;
  color: #344767;
  font-weight: 800;
}

.partner-withdraw-form input:disabled,
.partner-withdraw-form textarea:disabled,
.partner-withdraw-form button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.partner-auth-card #partnerNameLabel[hidden] {
  display: none;
}

.partner-auth-card small {
  color: #6a7895;
}

.partner-affiliate-grid,
.admin-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.affiliate-settings-row {
  align-items: stretch;
  margin-bottom: 18px;
}

.affiliate-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.affiliate-settings-form label {
  display: grid;
  gap: 8px;
  color: #4b5f82;
  font-weight: 800;
}

.affiliate-settings-form input {
  border: 1px solid #d7e5f8;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.affiliate-settings-form .wide,
.affiliate-settings-form button {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  .partner-hero,
  .partner-dashboard-grid,
  .partner-tables {
    grid-template-columns: 1fr;
  }

  .partner-steps,
  .partner-feature-grid,
  .partner-audience,
  .partner-metrics-row,
  .admin-affiliate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .partner-topbar nav a {
    display: none;
  }

  .partner-public main {
    padding: 34px 14px;
  }

  .partner-hero {
    min-height: auto;
    gap: 26px;
  }

  .partner-hero-copy h1 {
    font-size: 44px;
  }

  .partner-hero-copy p {
    font-size: 17px;
  }

  .partner-stat-grid,
  .partner-steps,
  .partner-feature-grid,
  .partner-audience,
  .partner-metrics-row,
  .admin-affiliate-grid,
  .affiliate-settings-form {
    grid-template-columns: 1fr;
  }

  .partner-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .partner-app {
    grid-template-columns: 1fr;
  }

  .partner-sidebar {
    position: fixed;
    z-index: 20;
    width: 280px;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }

  .partner-app.sidebar-open .partner-sidebar {
    transform: translateX(0);
  }

  .partner-mobile-menu {
    display: inline-flex;
    margin-right: auto;
    border: 1px solid #d8e6f7;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #1264e8;
    font-weight: 900;
  }

  .partner-app-header {
    padding: 12px;
    gap: 10px;
  }

  .partner-app-header a,
  .partner-profile strong {
    display: none;
  }

  #partnerContent {
    padding: 24px 14px;
  }

  .partner-dashboard-hero {
    padding: 26px;
  }

  .partner-copy-line,
  .partner-table > div,
  .partner-table.withdrawals > div,
  .partner-recommendations > div:last-child {
    grid-template-columns: 1fr;
  }
}

/* Partner program polish */
.partner-body {
  background:
    radial-gradient(circle at 12% 6%, rgba(31, 115, 255, 0.1), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(112, 87, 217, 0.08), transparent 28%),
    #f6f9ff;
  color: #0d1834;
}

.partner-topbar {
  min-height: 92px;
  padding: 22px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
}

.partner-topbar .brand,
.partner-sidebar .brand {
  font-size: 30px;
  font-weight: 650;
}

.partner-public main {
  max-width: 1280px;
  padding: 72px 28px 54px;
}

.partner-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(430px, 0.82fr);
  gap: clamp(44px, 7vw, 92px);
  min-height: 560px;
}

.partner-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid #d9e7fb;
  border-radius: 999px;
  color: #1f73f1;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.partner-hero-copy h1 {
  max-width: 700px;
  font-size: clamp(44px, 5.8vw, 70px);
  font-weight: 720;
  line-height: 1.04;
}

.partner-hero-copy p {
  max-width: 650px;
  margin: 26px 0 30px;
  color: #53627f;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.65;
}

.partner-benefits-inline {
  gap: 14px 22px;
  margin-top: 36px;
}

.partner-benefits-inline span {
  padding-left: 30px;
  color: #435574;
  font-size: 15px;
  font-weight: 600;
}

.partner-benefits-inline span::before {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #1f73ff, #62a2ff);
}

.partner-stat-card,
.partner-card {
  border-color: #dbe7f8;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(33, 73, 128, 0.09);
}

.partner-stat-card {
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.94)),
    radial-gradient(circle at 100% 0, rgba(31, 115, 255, 0.1), transparent 34%);
}

.partner-card-head h2,
.partner-stat-card h2,
.partner-section h2,
.partner-card h2 {
  color: #101936;
  font-size: 22px;
  font-weight: 680;
}

.partner-stat-card .partner-card-head span,
.partner-card-head span {
  padding: 9px 13px;
  border: 1px solid #d7e5f8;
  border-radius: 12px;
  color: #526486;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.partner-stat-grid {
  gap: 14px;
  margin-top: 24px;
}

.partner-stat-grid article,
.partner-feature-grid article,
.partner-steps article,
.partner-metric {
  padding: 22px;
  border-color: #dfe9f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.partner-stat-grid article {
  min-height: 176px;
}

.partner-stat-grid p,
.partner-metric p {
  color: #586983;
  font-size: 14px;
  font-weight: 600;
}

.partner-stat-grid strong,
.partner-metric strong {
  margin-top: 3px;
  color: #101936;
  font-size: clamp(25px, 2.8vw, 32px);
  font-weight: 720;
  letter-spacing: 0;
}

.partner-stat-grid small,
.partner-metric small {
  color: #12a667;
  font-size: 13px;
  font-weight: 650;
}

[data-partner-icon] {
  color: #1f73ff;
  background: linear-gradient(145deg, #eef6ff, #ffffff);
  box-shadow: inset 0 0 0 1px #dfe9f7;
}

.partner-info-line {
  align-items: center;
  margin-top: 20px;
  padding: 15px 16px;
  color: #1264e8;
  background: linear-gradient(135deg, #eaf3ff, #f7fbff);
  font-size: 14px;
  font-weight: 650;
}

.partner-info-line strong {
  font-weight: 720;
}

.partner-section {
  margin-top: 78px;
}

.partner-section h2 {
  margin-bottom: 26px;
}

.partner-steps article,
.partner-feature-grid article {
  min-height: 236px;
  box-shadow: 0 14px 34px rgba(25, 62, 110, 0.05);
}

.partner-steps h3,
.partner-feature-grid h3 {
  font-size: 17px;
  font-weight: 680;
  line-height: 1.35;
}

.partner-steps p,
.partner-feature-grid p,
.partner-card p {
  color: #5c6d8b;
  font-size: 15px;
  line-height: 1.65;
}

.partner-audience span {
  padding: 18px;
  border-radius: 18px;
  color: #22365d;
  box-shadow: 0 12px 28px rgba(25, 62, 110, 0.04);
  font-weight: 650;
}

.partner-cta {
  margin-top: 70px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 45%, rgba(31, 115, 255, 0.16), transparent 20%),
    linear-gradient(135deg, #edf5ff, #ffffff 58%, #e1efff);
}

.partner-cta h2 {
  max-width: 720px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.partner-cta p {
  color: #5d6d89;
}

.partner-app {
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    radial-gradient(circle at 87% 5%, rgba(31, 115, 255, 0.08), transparent 24%),
    #f6f9ff;
}

.partner-sidebar {
  padding: 30px 22px;
}

.partner-sidebar nav button {
  min-height: 54px;
  border-radius: 14px;
  color: #263b61;
  font-size: 15px;
  font-weight: 650;
  transition: transform 0.22s var(--motion-smooth), background 0.22s var(--motion-smooth), box-shadow 0.22s var(--motion-smooth), color 0.22s var(--motion-smooth);
}

.partner-sidebar nav button:hover {
  transform: translateX(2px);
}

.partner-sidebar-card {
  padding: 24px;
  border-radius: 18px;
}

.partner-sidebar-card strong,
.partner-sidebar-card a {
  font-weight: 700;
}

.partner-app-header {
  min-height: 78px;
  background: rgba(255, 255, 255, 0.92);
}

#partnerContent {
  max-width: 1260px;
  padding: 52px 32px 64px;
}

.partner-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 30px;
  padding: clamp(34px, 4.8vw, 56px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 18%, rgba(31, 115, 255, 0.14), transparent 26%),
    radial-gradient(circle at 72% 76%, rgba(112, 87, 217, 0.08), transparent 24%),
    linear-gradient(135deg, #ffffff, #eef6ff);
}

.partner-dashboard-hero.compact {
  grid-template-columns: 1fr;
}

.partner-dashboard-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 720;
  line-height: 1.08;
}

.partner-dashboard-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #586983;
  font-size: 18px;
  line-height: 1.65;
}

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

.partner-hero-summary article {
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.partner-hero-summary span {
  display: block;
  color: #1264e8;
  font-size: 22px;
  font-weight: 720;
}

.partner-hero-summary small {
  display: block;
  margin-top: 6px;
  color: #5e6f8c;
  line-height: 1.35;
}

.partner-dashboard-grid,
.partner-tables,
.partner-funnel-grid {
  gap: 24px;
  margin-top: 28px;
}

.partner-card {
  padding: 28px;
}

.partner-link-card,
.partner-percent-card {
  min-height: 210px;
}

.partner-copy-line {
  grid-template-columns: minmax(0, 1fr) 178px;
}

.partner-copy-line input,
.partner-withdraw-form input,
.partner-withdraw-form select,
.partner-withdraw-form textarea,
.partner-auth-card input {
  min-height: 50px;
  border-radius: 12px;
  color: #101936;
}

.partner-percent-card p {
  margin: 0 0 8px;
  color: #4d5e7b;
  font-weight: 650;
}

.partner-percent-card strong {
  font-size: clamp(52px, 6vw, 70px);
  font-weight: 720;
}

.partner-percent-card small {
  display: block;
  max-width: 310px;
  margin-top: 14px;
  color: #5d6d89;
  line-height: 1.55;
}

.partner-metrics-row {
  gap: 18px;
}

.partner-metric {
  position: relative;
  overflow: hidden;
  min-height: 170px;
}

.partner-metric::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(31, 115, 255, 0.06);
}

.partner-metric.tone-green [data-partner-icon] {
  color: #11a765;
  background: #eaf9f2;
}

.partner-metric.tone-orange [data-partner-icon] {
  color: #f08d14;
  background: #fff4de;
}

.partner-metric.tone-violet [data-partner-icon] {
  color: #7057d9;
  background: #f1edff;
}

.partner-funnel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.partner-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.partner-progress-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e0eaf8;
  border-radius: 16px;
  background: #fbfdff;
}

.partner-progress-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-progress-card [data-partner-icon] {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.partner-progress-card p {
  margin: 2px 0 0;
  color: #1264e8;
  font-size: 30px;
  font-weight: 720;
  line-height: 1;
}

.partner-progress-card small {
  color: #5e6f8c;
  line-height: 1.35;
}

.partner-progress-card i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f73ff var(--value), #e5eef9 var(--value));
}

.partner-income-card {
  display: grid;
  gap: 16px;
}

.partner-income-card > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e0eaf8;
  border-radius: 16px;
  background: #fbfdff;
}

.partner-income-card p,
.partner-income-card small {
  grid-column: 2;
  margin: 0;
}

.partner-income-card [data-partner-icon] {
  grid-row: span 3;
}

.partner-income-card strong {
  color: #101936;
  font-size: 25px;
  font-weight: 720;
}

.partner-table {
  margin-top: 10px;
}

.partner-table > div {
  min-height: 68px;
  padding: 14px 0;
}

.partner-table strong {
  font-weight: 680;
}

.partner-table small {
  margin-top: 3px;
}

.partner-recommendations > div:last-child article {
  padding: 20px;
  border: 1px solid #e0eaf8;
  border-radius: 16px;
  background: #fbfdff;
}

.partner-recommendations strong {
  display: block;
  margin-top: 14px;
  color: #101936;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
}

.partner-accrual-card {
  margin-top: 28px;
}

.partner-accrual-table > div {
  grid-template-columns: 130px minmax(180px, 1fr) 130px 130px;
}

@media (max-width: 1180px) {
  .partner-dashboard-hero,
  .partner-funnel-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1080px) {
  .partner-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .partner-public main {
    padding: 42px 16px;
  }

  .partner-topbar .brand,
  .partner-sidebar .brand {
    font-size: 24px;
  }

  .partner-hero-copy h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .partner-hero-summary,
  .partner-progress-grid,
  .partner-income-card > div,
  .partner-accrual-table > div {
    grid-template-columns: 1fr;
  }

  .partner-card,
  .partner-stat-card,
  .partner-dashboard-hero {
    padding: 22px;
  }

  .partner-copy-line {
    grid-template-columns: 1fr;
  }

  .partner-info-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #partnerContent {
    padding: 24px 14px 44px;
  }

  .partner-bell {
    display: none;
  }
}

/* Partner sync and visual refinement */
.partner-sync-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  padding: 0 14px;
  border: 1px solid #d9e7fb;
  border-radius: 999px;
  color: #53647f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.partner-sync-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a765;
  box-shadow: 0 0 0 5px rgba(22, 167, 101, 0.1);
}

.partner-sync-status.is-syncing span {
  background: #1f73ff;
  animation: partnerPulse 1s ease-in-out infinite;
}

.partner-sync-status.is-error span {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.1);
}

.partner-sync-button {
  min-height: 42px;
  border: 1px solid #d7e6fb;
  border-radius: 999px;
  padding: 0 16px;
  color: #1264e8;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.22s var(--motion-smooth), box-shadow 0.22s var(--motion-smooth), opacity 0.22s var(--motion-smooth);
}

.partner-sync-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31, 115, 255, 0.12);
}

.partner-sync-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.partner-bell.is-empty span {
  color: #1264e8;
  background: #eaf3ff;
}

.partner-table-head {
  min-height: 42px !important;
  padding: 8px 0 10px !important;
  color: #6a7895;
  border-bottom-color: #d9e6f7 !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-table > div:not(.partner-table-head) {
  transition: background 0.18s ease, transform 0.18s ease;
}

.partner-table > div:not(.partner-table-head):hover {
  border-radius: 12px;
  background: #f7fbff;
  transform: translateX(2px);
}

.partner-card,
.partner-stat-grid article,
.partner-feature-grid article,
.partner-steps article,
.partner-metric,
.partner-progress-card,
.partner-income-card > div {
  transition: transform 0.22s var(--motion-smooth), box-shadow 0.22s var(--motion-smooth), border-color 0.22s var(--motion-smooth);
}

.partner-card:hover,
.partner-stat-grid article:hover,
.partner-feature-grid article:hover,
.partner-steps article:hover,
.partner-metric:hover,
.partner-progress-card:hover,
.partner-income-card > div:hover {
  border-color: #c8dbf5;
  box-shadow: 0 24px 54px rgba(31, 73, 130, 0.1);
  transform: translateY(-2px);
}

.partner-recommendations {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at 100% 0, rgba(31, 115, 255, 0.12), transparent 30%);
}

.partner-recommendations > div:last-child article {
  min-height: 178px;
}

@keyframes partnerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(31, 115, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(31, 115, 255, 0.16);
  }
}

@media (max-width: 980px) {
  .partner-sync-status {
    order: 4;
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
}

@media (max-width: 760px) {
  .partner-sync-button {
    display: none;
  }

  .partner-sync-status {
    min-height: 34px;
    font-size: 12px;
  }

  .partner-table-head {
    display: none !important;
  }
}

/* Global visual polish: calmer cards, clearer heading hierarchy, lighter body text */
body,
button,
input,
select,
textarea,
p,
small,
td,
th,
label,
.muted,
.nav-label,
.admin-card p,
.admin-metric p,
.admin-metric small,
.feature-card p,
.process-grid p,
.landing-pricing p,
.seo-content p,
.partner-card p,
.partner-metric small,
.partner-table small {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
.section-title h2,
.landing-copy h1,
.seo-hero h1,
.panel-title h2,
.admin-topbar h1,
.admin-card h2,
.admin-card-head h2,
.admin-section-title h3,
.partner-hero-copy h1,
.partner-page-title h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.brand,
.button,
.admin-pill,
.admin-table strong,
.result-row strong,
.feature-card h3,
.landing-pricing h3,
.partner-card h2,
.partner-card h3 {
  font-weight: 700;
}

.admin-metric strong,
.stat-card strong,
.metric-value,
.parser-counter strong {
  font-weight: 800;
}

.admin-metric,
.admin-card,
.feature-card,
.process-grid article,
.landing-pricing article,
.panel,
.dashboard-card,
.trust-card,
.partner-card,
.partner-metric,
.partner-stat-grid article,
.public-catalog-card,
.public-resource-card {
  border-color: #dfe9f7;
  box-shadow: 0 10px 26px rgba(31, 58, 102, 0.06);
}

.admin-metric:hover,
.admin-card:hover,
.feature-card:hover,
.landing-pricing article:hover,
.partner-card:hover,
.partner-metric:hover {
  box-shadow: 0 16px 36px rgba(31, 58, 102, 0.09);
}

.landing-band,
.process-section,
.pricing-section {
  padding-top: clamp(52px, 6vw, 84px);
  padding-bottom: clamp(52px, 6vw, 84px);
}

.section-title {
  gap: 8px;
}

.section-title p,
.landing-lead,
.seo-hero p {
  color: #596982;
  line-height: 1.68;
}

.admin-section.active {
  gap: 18px;
}
