@import url("../vendor/inter/inter.css");
@import url("../vendor/phosphor/phosphor.css");
@import url("../css/components/pagination.css");

/* global.css */

:root {
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-400: #38bdf8;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-900: #0c4a6e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --yellow-100: #fef9c3;
  --yellow-500: #eab308;
  --yellow-700: #a16207;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --bg-body: #fafafc;
  --font-regular: 300;
  --font-medium: 400;
  --font-normal:500;
  --font-semibold: 600;
  --font-bold: 600;
  --font-black: 700;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-body);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.nx-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.site-page-frame {
  width: 100%;
  padding-top: 64px;
  padding-bottom: 72px;
}

.stage-preview-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 42px -28px rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(16px);
}

.stage-preview-dock__label {
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-preview-dock__title {
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

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

.stage-preview-dock__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.stage-preview-dock__link:hover {
  transform: translateY(-1px);
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.stage-preview-dock__link.is-active {
  border-color: rgba(14, 165, 233, 0.26);
  background: var(--brand-50);
  color: var(--brand-600);
}

.stage-preview-dock__clear {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.stage-preview-dock__clear:hover {
  color: var(--gray-900);
}

@media (max-width: 900px) {
  .site-page-frame {
    padding-top: 84px;
  }

  .stage-preview-dock {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.nx-nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 50;
  display: flex;
  align-items: center;
}

.nx-nav-glass .nx-container {
  max-width: 1520px;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-900);
  color: white;
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  min-width: 0;
}

.nav-links > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-links > a.active {
  color: var(--brand-600);
}

.nav-links > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-600);
}

.nav-links > a:hover {
  color: var(--gray-900);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-search {
  width: min(38vw, 440px);
  min-width: 320px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 4px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #fff;
  color: #64748b;
  flex-shrink: 1;
  box-shadow: 0 12px 30px -24px rgba(37, 99, 235, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-search:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
  background: white;
  box-shadow: 0 18px 34px -24px rgba(37, 99, 235, 0.68), inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.nav-search__badge {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-search__badge i {
  font-size: 13px;
}

.nav-search__icon {
  font-size: 16px;
  color: #64748b;
  flex-shrink: 0;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 500;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search__shortcut {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe4ef;
  border-bottom-color: #cbd5e1;
  border-radius: 7px;
  background: white;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.nav-search__submit {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #111827;
  color: white;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-search__submit:hover {
  transform: translateY(-1px);
  background: #020617;
}

.nav-search__submit i {
  font-size: 14px;
}

.nav-actions__divider {
  width: 1px;
  height: 15px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.nav-merchant-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 12px;
  border-radius: 12px;
}

.nav-merchant-link i {
  font-size: 16px;
  color: var(--gray-400);
  transition: color 0.2s;
}

.nav-merchant-link:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.nav-merchant-link:hover i {
  color: var(--brand-500);
}

.nav-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #111827;
  color: white;
  font-size: 14px;
  font-weight: var(--font-bold);
  padding: 8px 24px 8px 20px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1);
}

.nav-login-link i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.nav-login-link:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.2);
}

.nav-login-link__label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-login-link.is-authenticated {
  justify-content: flex-start;
  min-width: 0;
  padding: 4px 10px 4px 6px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(248, 250, 252, 0.98);
  color: var(--gray-900);
  box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.28);
}

.nav-login-link.is-authenticated:hover {
  background: white;
  border-color: rgba(148, 163, 184, 0.75);
  transform: translateY(-1px);
}

.nav-login-link__avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-login-link__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-login-link__content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-login-link__name {
  min-width: 0;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.nav-login-link__caret {
  flex-shrink: 0;
  color: var(--gray-400);
  font-size: 12px;
}

.nx-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nx-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gray-200);
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.nx-btn-brand {
  background: var(--brand-500);
  color: white;
}

.nx-btn-brand:hover {
  background: var(--brand-600);
}

.nx-btn-dark {
  background: var(--gray-900);
  color: white;
}

.nx-btn-dark:hover {
  background: var(--gray-800);
}

.nx-btn-light {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nx-btn-light:hover {
  background: var(--gray-200);
}

.nx-btn-outline {
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.nx-btn-outline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  color: var(--gray-900);
}

.compare-toggle-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.compare-toggle-btn i {
  font-size: 16px;
}

.compare-toggle-btn.is-active {
  border-color: var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-600);
}

.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.nx-badge-brand {
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}

.nx-badge-green {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid var(--emerald-100);
}

.nx-badge-red {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-100);
}

.nx-badge-gray {
  background: var(--gray-50);
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
}

.nx-badge-dark {
  background: var(--gray-800);
  color: white;
  border: 1px solid var(--gray-900);
}

.nx-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-100);
}

.nx-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.nx-avatar-md {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.nx-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 24px;
  border-radius: 16px;
}

/* 5. 全局底部 (Footer) 规范 */
.nx-footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
  margin-top: 64px; /* 保证与上方内容有间距 */
}

.site-toast-root {
  position: fixed;
  top: 88px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 120;
  pointer-events: none;
}

.site-toast {
  min-width: 280px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.96);
  color: white;
  box-shadow: 0 18px 48px -24px rgba(15, 23, 42, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-toast--error {
  border-left: 4px solid var(--red-500);
}

.site-toast--success {
  border-left: 4px solid var(--emerald-500);
}

body.compare-modal-open {
  overflow: hidden;
}

.compare-modal[hidden],
.compare-float[hidden],
.compare-loading[hidden],
.compare-empty[hidden],
.compare-error[hidden],
.compare-setup[hidden],
.compare-matrix[hidden] {
  display: none !important;
}

.compare-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130;
}

.compare-float__trigger {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.98);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.4);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.compare-float__trigger:hover {
  border-color: rgba(148, 163, 184, 0.8);
  background: white;
  color: var(--gray-900);
  transform: translateY(-1px);
}

.compare-float.has-items .compare-float__trigger {
  border-color: var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-600);
}

.compare-float.is-open .compare-float__trigger {
  border-color: var(--brand-100);
  background: white;
  color: var(--brand-600);
}

.compare-float__trigger i {
  font-size: 16px;
}

.compare-float__count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gray-900);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.compare-float.has-items .compare-float__count {
  background: var(--brand-600);
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}

.compare-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.compare-modal__dialog {
  position: relative;
  width: min(1100px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 22px;
  background: white;
  box-shadow: 0 40px 120px -48px rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.compare-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #eef2f7;
  background: white;
}

.compare-modal__headline {
  min-width: 0;
}

.compare-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.compare-modal__title {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.compare-modal__summary {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.compare-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.compare-modal__clear {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.compare-modal__clear:hover {
  background: #f8fafc;
  color: #ef4444;
}

.compare-modal__clear:disabled {
  color: #cbd5e1;
  cursor: default;
}

.compare-modal__clear:disabled:hover {
  background: transparent;
  color: #cbd5e1;
}

.compare-modal__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.compare-modal__close:hover {
  background: #eef2f7;
  color: var(--gray-600);
}

.compare-modal__close i {
  font-size: 16px;
}

.compare-modal__body {
  min-height: 0;
  padding: 0 16px 16px;
  overflow: auto;
  background: white;
}

.compare-loading,
.compare-empty,
.compare-error,
.compare-setup {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 280px;
  padding: 56px 24px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: white;
  text-align: center;
}

.compare-state__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 26px;
}

.compare-loading .compare-state__icon i {
  animation: compare-spin 1.2s linear infinite;
}

@keyframes compare-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.compare-loading h3,
.compare-empty h3,
.compare-error h3,
.compare-setup h3 {
  margin: 0;
  font-size: 24px;
}

.compare-loading p,
.compare-empty p,
.compare-error p,
.compare-setup p {
  max-width: 560px;
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.compare-table-wrap {
  overflow: auto;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 42px -40px rgba(15, 23, 42, 0.3);
}

.compare-table {
  --compare-columns: 2;
  min-width: calc(168px + (var(--compare-columns) * 236px));
}

.compare-table__row {
  display: grid;
  grid-template-columns: 168px repeat(var(--compare-columns), minmax(236px, 1fr));
  align-items: stretch;
}

.compare-table__row + .compare-table__row {
  border-top: 1px solid #e8edf5;
}

.compare-table__label,
.compare-table__cell {
  min-width: 0;
  padding: 14px;
}

.compare-table__label {
  border-right: 1px solid #e8edf5;
  background: rgba(248, 250, 252, 0.65);
}

.compare-table__row--head .compare-table__label {
  display: flex;
  align-items: flex-end;
  background: rgba(248, 250, 252, 0.65);
}

.compare-table__row--head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.compare-table__row--head .compare-table__cell {
  background: white;
}

.compare-table__cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  background: white;
}

.compare-table__cell + .compare-table__cell {
  border-left: 1px solid #e8edf5;
}

.compare-table__lead {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.compare-dimension {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-900);
}

.compare-dimension i {
  font-size: 15px;
}

.compare-dimension strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.compare-dimension span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
}

.compare-dimension--brand i {
  color: #1990d8;
}

.compare-dimension--danger i {
  color: #ef4444;
}

.compare-table__cell--head {
  position: relative;
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-height: 164px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.compare-table__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: #cbd5e1;
  box-shadow: 0 12px 20px -18px rgba(15, 23, 42, 0.5);
}

.compare-table__remove:hover {
  background: #f8fafc;
  color: #94a3b8;
}

.compare-table__club-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
}

.compare-table__club-logo--placeholder {
  border: 1px dashed #dbe3ef;
  background: #fbfcff;
  color: #cbd5e1;
}

.compare-table__club-logo__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.compare-table__club-name {
  display: block;
  max-width: 100%;
  color: #07162f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.compare-table__club-subtitle {
  color: #8a94a6;
  font-size: 10px;
  line-height: 1.4;
}

.compare-table__contact {
  width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #131d2f;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.compare-table__contact--disabled {
  background: #e2e8f0;
  color: white;
}

.compare-table__empty-note {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.compare-score {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.compare-score__badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff2b3;
  color: #b7791f;
  font-size: 12px;
  font-weight: 800;
}

.compare-score__badge--ghost {
  background: transparent;
}

.compare-score__value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.compare-score__value--highlight {
  color: #1990d8;
}

.compare-score__value--danger {
  color: #ef4444;
}

.compare-score__value--default {
  color: #07162f;
}

.compare-samples {
  width: 100%;
  display: grid;
  gap: 10px;
}

.compare-samples__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: white;
  box-shadow: 0 14px 28px -26px rgba(15, 23, 42, 0.5);
}

.compare-samples__item span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.compare-samples__item:first-child span i {
  color: #1990d8;
}

.compare-samples__item:last-child span i {
  color: #10b981;
}

.compare-samples__item strong {
  color: #07162f;
  font-size: 15px;
  font-weight: 900;
}

.compare-risk {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.compare-risk--empty {
  color: #cbd5e1;
  font-size: 22px;
  font-weight: 800;
}

.compare-risk--clear {
  color: #10b981;
}

.compare-risk--clear i {
  font-size: 18px;
}

.compare-risk--clear span {
  font-size: 15px;
  font-weight: 800;
}

.compare-risk--alert {
  width: calc(100% + 28px);
  min-height: calc(100% + 28px);
  margin: -14px;
  align-content: center;
  border: 1px solid #fee2e2;
  background: #fff8f8;
}

.compare-risk--medium {
  border-color: #fde68a;
  background: #fffbeb;
}

.compare-risk__status {
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.compare-risk--medium .compare-risk__status {
  color: #92400e;
}

.compare-risk--alert strong {
  color: #dc2626;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.compare-risk--medium strong {
  color: #d97706;
}

.compare-risk--alert strong span {
  font-size: 16px;
}

.compare-risk__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
}

.compare-price {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.compare-price--empty {
  color: #cbd5e1;
}

.compare-price--empty .compare-price__service,
.compare-price--empty .compare-price__value,
.compare-price--empty .compare-price__response,
.compare-price--empty .compare-price__response i {
  color: #cbd5e1;
}

.compare-price--empty .compare-price__service i {
  color: #cbd5e1;
}

.compare-price__service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.compare-price__service i {
  color: #1990d8;
  font-size: 12px;
}

.compare-price__value {
  color: #07162f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.compare-price__value span {
  font-size: 12px;
}

.compare-price__response {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
}

.compare-price__response i {
  color: #facc15;
}

.compare-table__row--score .compare-table__label,
.compare-table__row--score .compare-table__cell {
  min-height: 110px;
}

.compare-table__row--samples .compare-table__label,
.compare-table__row--samples .compare-table__cell {
  min-height: 126px;
}

.compare-table__row--risk .compare-table__label,
.compare-table__row--risk .compare-table__cell {
  min-height: 116px;
}

.compare-table__row--price .compare-table__label,
.compare-table__row--price .compare-table__cell {
  min-height: 118px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 5fr;
  gap: 64px;
  border-bottom: 1px solid var(--gray-800);
  padding-bottom: 48px;
  margin-bottom: 32px;
}
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: var(--brand-500);
  transform: translateY(-2px);
  color: white;
}
.footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--brand-400);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a:hover {
  color: white;
}

@media (max-width: 900px) {
  .site-page-frame {
    padding-top: 148px;
  }

  .nx-nav-glass {
    height: auto;
    min-height: 64px;
  }

  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-brand-wrap {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    gap: 10px 14px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-search {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  .compare-table__label,
  .compare-table__cell {
    padding: 24px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .nav-search {
    width: min(36vw, 360px);
    min-width: 260px;
  }

  .nav-search__badge {
    display: none;
  }

  .nav-actions__divider {
    display: none;
  }
}

@media (max-width: 720px) {
  .compare-modal {
    padding: 10px;
  }

  .compare-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .compare-modal__header {
    flex-wrap: wrap;
    padding: 14px 14px 10px;
  }

  .compare-modal__title {
    font-size: 20px;
  }

  .compare-modal__summary {
    font-size: 12px;
  }

  .compare-modal__actions {
    width: 100%;
    justify-content: space-between;
  }

  .compare-modal__body {
    padding: 0 14px 14px;
  }

  .compare-table {
    min-width: calc(148px + (var(--compare-columns) * 196px));
  }

  .compare-table__row {
    grid-template-columns: 148px repeat(var(--compare-columns), minmax(196px, 1fr));
  }

  .compare-table__label,
  .compare-table__cell {
    padding: 12px 10px;
  }

  .compare-table__cell--head {
    min-height: 150px;
  }

  .compare-table__club-name {
    font-size: 14px;
  }

  .compare-table__club-subtitle,
  .compare-table__lead,
  .compare-price__service {
    font-size: 11px;
  }

  .compare-score__value {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .nav-brand {
    font-size: 18px;
  }

  .nav-login-link.is-authenticated {
    padding-right: 8px;
  }

  .nav-login-link__name {
    max-width: 88px;
  }

  .nav-search {
    height: 42px;
    padding-left: 12px;
    border-radius: 13px;
  }

  .nav-search input {
    font-size: 12px;
  }

  .nav-search__shortcut {
    display: none;
  }

  .site-toast-root {
    left: 16px;
    right: 16px;
    top: 80px;
  }

  .site-toast {
    min-width: 0;
    max-width: 100%;
  }

  .compare-float {
    right: 16px;
    bottom: 16px;
  }

  .compare-float__trigger {
    height: 42px;
    padding: 0 12px 0 14px;
  }

  .compare-float__count {
    min-width: 20px;
    height: 20px;
  }

  .nx-footer {
    padding: 44px 0 28px;
  }

  .footer-grid {
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-links-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .footer-bottom,
  .footer-bottom-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
