/* CH-J VPS Compare – CH-J design tokens (shared with ch-j.* and tools.ch-j.*) */
:root {
  --bg: #0b0f14;
  --surface: #11151b;
  --surface-soft: rgba(17, 21, 27, .76);
  --line: #252d36;
  --line-strong: #315746;
  --text: #f4f7fb;
  --muted: #8f9aa9;
  --accent: #68f0bd;
  --accent-soft: rgba(104, 240, 189, .07);
  --accent-hover: #7df4c7;
  --warn: #f0c968;
  --info: #8fb8ff;
  --danger: #ff9a9a;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 0%, rgba(104, 240, 189, .055), transparent 30rem), var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  min-height: 84px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.mark { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; overflow: hidden; }
.mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-link:hover { color: var(--text); background: var(--surface-soft); }
.nav-link.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.domain {
  margin-left: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(17, 21, 27, .55); color: var(--muted); font-size: 12px; font-weight: 700;
}

main { min-height: calc(100vh - 170px); padding: 64px 0 90px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .72; }
h1 { margin: 0; max-width: 800px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.058em; font-weight: 790; }
.h1-small { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.025em; }
.lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.7; }
.muted { color: var(--muted); line-height: 1.7; }
.small { font-size: 13px; }
.mt { margin-top: 32px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 38px; max-width: 820px; }
.stats div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.stats strong { display: block; font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }

.notice {
  margin: 40px 0 0; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--accent-soft); color: var(--text); line-height: 1.65; font-size: 15px;
}
.notice a { color: var(--accent); }

.filters {
  display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end;
  margin-top: 32px; padding: 20px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-soft); box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; min-width: 0; }
.field span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.field input, .field select {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-actions { display: flex; gap: 8px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px; text-decoration: none; font: inherit; font-size: 14px;
  font-weight: 750; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #07110d; box-shadow: 0 8px 28px rgba(104, 240, 189, .10); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: var(--line); background: rgba(17, 21, 27, .62); color: var(--text); }
.button-secondary:hover { border-color: #3a4653; }

.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 44px 0 16px; }
.results-head h2 { margin: 0; font-size: 26px; }
.results-head span { color: var(--muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft);
}
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(to bottom, transparent 8%, var(--accent) 48%, transparent 92%); opacity: .55;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-meta { margin: 0; color: var(--muted); font-size: 14px; }
.card-meta a { text-decoration: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 15, 20, .5); }
.facts dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.unknown { color: var(--muted) !important; font-style: italic; font-weight: 500 !important; }
.card-links { display: flex; gap: 16px; margin-top: auto; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.badge {
  display: inline-block; flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  white-space: nowrap; border: 1px solid;
}
.badge-ok { color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); }
.badge-todo { color: var(--warn); border-color: rgba(240, 201, 104, .3); background: rgba(240, 201, 104, .06); }
.badge-new { color: var(--info); border-color: rgba(143, 184, 255, .3); background: rgba(143, 184, 255, .06); }
.badge-off { color: var(--muted); border-color: var(--line); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; color: var(--muted); font-size: 14px; }

.crumbs { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.detail-head { margin-bottom: 36px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); overflow-x: auto; }
.status-panel dl { margin: 0; display: grid; gap: 10px; }
.status-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.status-panel dt { color: var(--muted); font-size: 14px; }
.status-panel dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td a { text-decoration: none; }
.table td a:hover { color: var(--accent); }

.region { margin: 34px 0 14px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.country {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-soft); text-decoration: none; transition: border-color .16s ease;
}
.country:hover { border-color: var(--line-strong); }
.country-flag { font-size: 22px; }
.country-name { flex: 1; font-weight: 650; }
.country-count { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 38px; }
.prose p { color: var(--muted); line-height: 1.75; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: .92em; }
pre { overflow-x: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.55; }
pre code { padding: 0; background: none; font-size: 13px; }

.empty { padding: 60px 0; }
.empty-inline { color: var(--muted); }

footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
footer strong { color: var(--text); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .field-wide, .field-actions { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 40px 0 70px; }
  .filters { grid-template-columns: 1fr; padding: 16px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-link { padding: 8px 9px; }
}
.nowrap { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.promo-line { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.badge-promo { color: #ffb3d1; border-color: rgba(255, 179, 209, .3); background: rgba(255, 179, 209, .07); margin-right: 4px; }
.type-shared_vcpu { color: var(--muted); }
.type-dedicated_vcpu { color: var(--accent); }
.type-dedicated_server { color: var(--info); }
.badge-free { color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); }
.table.plans td { line-height: 1.55; }
