/* Header v2: shared for default/dark themes */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo-img { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; box-shadow: 0 6px 18px rgba(79, 110, 247, .22); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text); display: block; }
.brand-name:hover { color: var(--accent); }
.brand-slogan { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; margin-left: auto; min-width: 0; }
.stats-box { height: 44px; display: grid; grid-template-columns: repeat(4, auto); align-items: stretch; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs); overflow: hidden; }
.stat-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 68px; padding: 0 12px; border-right: 1px solid var(--border); color: var(--muted); }
.stat-row:last-child { border-right: 0; }
.stat-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 12.5px; font-weight: 800; color: var(--text); font-family: var(--font-mono); }

.theme-toggle { width: 44px; height: 44px; min-width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text-2); box-shadow: var(--shadow-xs); text-decoration: none; transition: all var(--transition); flex-shrink: 0; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
.theme-toggle .fa { font-size: 15px; }

.auth-actions { display: flex; align-items: center; gap: 8px; }
.auth-actions .btn { height: 44px; padding: 0 16px; border-radius: 12px; }

.user-menu { position: relative; flex-shrink: 0; }
.user-chip { height: 44px; display: flex; align-items: center; gap: 9px; padding: 4px 11px 4px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow-xs); transition: all var(--transition); appearance: none; }
.user-chip:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.user-chip .avatar-sm { width: 34px; height: 34px; border: 0; }
.user-chip-name { font-size: 13px; font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-balance { font-size: 11.5px; font-weight: 800; color: var(--success); background: var(--success-soft); border: 1px solid var(--success-border); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.user-chip-caret { font-size: 10px; color: var(--muted); line-height: 1; transition: transform .2s; }
.user-menu.open .user-chip-caret { transform: rotate(180deg); }

.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; max-width: calc(100vw - 32px); padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 200; }
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-dropdown-head b { font-size: 13px; color: var(--text); }
.user-dropdown-head span { font-size: 11.5px; color: var(--muted); }
.user-dropdown a, .user-dropdown button { display: flex; align-items: center; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); color: var(--text); }
.user-dropdown form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--border); }
.user-dropdown .danger { color: var(--danger); }
.user-dropdown .danger:hover { background: var(--danger-soft); }

.main-nav { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 2px; padding: 6px 24px; overflow-x: auto; white-space: nowrap; justify-content: center; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: all var(--transition); }
.nav-inner a:hover { color: var(--text); background: var(--surface); }
.nav-inner a.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }

@media (max-width: 1180px) {
  .stats-box { display: none; }
}
@media (max-width: 1024px) {
  .header-inner { display: flex; grid-template-columns: none; min-height: 64px; padding: 10px 24px; gap: 10px; }
  .header-right { justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
  .theme-toggle { width: 42px; height: 42px; min-width: 42px; }
  .user-chip { height: 42px; }
  .user-chip-balance { display: none; }
  .auth-actions .btn { height: 42px; }
  .nav-inner { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .header-inner { padding: 10px 16px; }
  .brand-logo-img { width: 40px; height: 40px; }
  .brand-name { font-size: 16px; }
  .brand-slogan { display: none; }
  .user-chip-name { display: none; }
  .user-chip { padding: 4px 8px 4px 5px; gap: 7px; }
  .auth-actions .btn { padding: 0 12px; font-size: 12px; }
  .nav-inner { padding: 6px 16px; }
  .nav-inner a { padding: 8px 11px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .theme-toggle { width: 38px; height: 38px; min-width: 38px; }
  .user-chip { height: 38px; }
  .user-chip .avatar-sm { width: 30px; height: 30px; }
  .auth-actions { gap: 6px; }
  .auth-actions .btn { padding: 0 10px; font-size: 11.5px; }
  .auth-actions .btn:not(.primary) { display: none; }
}

/* ====== Стилизованный select ====== */
.pretty-select-native { display: none; }
.pretty-select { position: relative; display: inline-block; vertical-align: middle; margin-right: 8px; }
.service-tile-form .pretty-select { display: block; margin: 0 0 8px; }
.pretty-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 140px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.pretty-select-btn:hover { border-color: var(--border-2); background: var(--surface-3); }
.pretty-select-wide .pretty-select-btn { min-width: 190px; }
.pretty-select.is-open .pretty-select-btn {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pretty-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pretty-select-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  flex-shrink: 0;
  transition: transform .15s;
}
.pretty-select.is-open .pretty-select-caret { transform: rotate(180deg); }
.pretty-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1300;
  min-width: 100%;
  max-height: 220px;
  overflow: auto;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
}
.pretty-select.is-open .pretty-select-menu { display: block; }
.pretty-select-option {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s, color .12s;
}
.pretty-select-option:hover,
.pretty-select-option:focus,
.pretty-select-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

/* Модалка услуг: убираем дорогой hover-свечение кнопок */
#buyServiceModal .players-table .btn {
  box-shadow: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
#buyServiceModal .players-table .btn:hover {
  transform: none;
  box-shadow: none;
}
#buyServiceModal .players-table th,
#buyServiceModal .players-table td {
  white-space: nowrap;
  vertical-align: middle;
}
#buyServiceModal .players-table td:last-child { width: 1%; }
#buyServiceModal .players-table td form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0;
}
#buyServiceModal .players-table .pretty-select { margin-right: 0; }
#buyServiceModal .players-table .pretty-select-btn { min-width: 120px; height: 30px; }
@media (max-width: 600px) {
  #buyServiceModal #bs_list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Компактная карточка информации сервера */
.server-info { padding: 20px; }
.server-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}
.info-item { gap: 2px; }
.info-label { font-size: 10.5px; }
.info-value { font-size: 13.5px; overflow-wrap: anywhere; }
.info-value .ip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .server-info-grid { grid-template-columns: 1fr; }
}

/* Правая колонка страницы сервера */
.server-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.server-side .online-history-card { margin: 0; }
.server-side .server-map.small { aspect-ratio: 16 / 9; }
.server-side .chart-box { height: 360px; }
@media (max-width: 768px) {
  .server-side .chart-box { height: 220px; }
}

.site-topbar {
  width: calc(100% - 32px);
  max-width: 1280px;
  margin: 16px auto 18px;
  position: relative;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.site-topbar .site-header {
  position: relative;
  top: auto;
  z-index: auto;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-topbar .header-inner {
  min-height: 66px;
  padding: 12px 20px;
}
.site-topbar .brand {
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 6px 18px rgba(79, 110, 247, .24);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-topbar .brand-name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: var(--text);
  white-space: nowrap;
}
.brand-tld { color: var(--accent); }
.site-topbar .brand-slogan {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-topbar .main-nav {
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.site-topbar .nav-inner {
  justify-content: flex-start;
  padding: 4px 20px 10px;
  gap: 2px;
}
.site-topbar .theme-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
}
.site-topbar .auth-actions .btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
}
@media (max-width: 1024px) {
  .site-topbar .header-inner { padding: 10px 16px; }
  .site-topbar .nav-inner { padding: 4px 16px 8px; }
}
@media (max-width: 768px) {
  .site-topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 16px;
  }
  .site-topbar .header-inner { min-height: 60px; padding: 10px 14px; }
  .site-topbar .brand-name { font-size: 16px; }
  .site-topbar .brand-slogan { display: block; font-size: 8.5px; letter-spacing: .09em; }
  .site-topbar .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  .site-topbar .nav-inner { padding: 4px 14px 8px; }
}
@media (max-width: 420px) {
  .site-topbar .brand-name { font-size: 15px; }
  .site-topbar .brand-slogan { display: block; font-size: 7.5px; letter-spacing: .06em; }
  .site-topbar .theme-toggle { width: 38px; height: 38px; min-width: 38px; }
  .site-topbar .auth-actions .btn { padding: 0 10px; font-size: 11.5px; }
  .site-topbar .nav-inner { padding: 4px 8px 8px; gap: 0; }
  .site-topbar .nav-inner a { padding: 7px 8px; font-size: 12px; }
}

/* Информация о сервере: название слева, значение справа, две колонки */
.server-info-grid{grid-template-columns:1fr 1fr;gap:0 28px}
.info-item{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);min-width:0}
.info-label{display:flex;align-items:baseline;flex:1 1 auto;min-width:0;white-space:nowrap;font-size:11px}
.info-value{font-size:13.5px;flex:0 0 auto;margin-left:auto;text-align:right;overflow-wrap:anywhere}
.info-item .ip{flex:0 0 auto;margin-left:auto}
@media(max-width:768px){.server-info-grid{grid-template-columns:1fr}}

/* Голосование: крупный рейтинг слева, кнопка справа */
.server-vote{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.server-vote-rating{display:flex;flex-direction:column;gap:2px;min-width:0}
.server-vote-rating-num{font-size:38px;line-height:1;font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums}
.server-vote-rating-label{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
.server-vote-rating-label span{text-transform:none;letter-spacing:0;font-weight:600;margin-left:6px}
.server-vote .server-vote-form{flex:0 1 auto;align-items:flex-end;gap:8px}
.server-vote .server-vote-row{flex-wrap:nowrap}
.server-vote .server-vote-form .btn{white-space:nowrap}
@media(max-width:640px){
  .server-vote{flex-direction:column;align-items:stretch;gap:14px}
  .server-vote .server-vote-form{align-items:stretch}
  .server-vote .server-vote-row{justify-content:flex-start}
}

.players-preview-empty{padding:14px 4px;font-size:13px;line-height:1.5}

/* Иконка и цвет рейтинга в блоке голосования */
.server-vote-rating-num{display:flex;align-items:center;gap:8px}
.server-vote-rating-num .fa{font-size:24px}
.server-vote-rating-num.rating-hi{color:#e11d48}
.server-vote-rating-num.rating-mid{color:#f59e0b}
.server-vote-rating-num.rating-low{color:#6366f1}
.server-vote-rating-num.rating-min{color:#94a3b8}

/* Услуги на странице сервера: ровно две карточки в ряд, одинаковая высота */
.server-main .services-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
.server-main .service-tile{height:100%;grid-template-rows:auto 1fr auto;align-content:stretch}
.server-main .service-tile-icon{grid-row:1 / 4;align-self:start}
.server-main .service-tile-body{grid-row:1;display:flex;flex-direction:column}
.server-main .service-tile-form,
.server-main .service-tile-lock,
.server-main .service-tile-btn{grid-row:3;align-self:end;justify-self:start;margin-top:10px}
@media(max-width:640px){.server-main .services-grid{grid-template-columns:1fr}}

/* Рейтинг в списках */
.rating-cell{white-space:nowrap}
.rating-cell .fa{margin-right:6px;font-size:13px;vertical-align:-1px}
.rating-cell b{font-variant-numeric:tabular-nums}
.rating-hi{color:#e11d48}
.rating-mid{color:#f59e0b}
.rating-low{color:#6366f1}
.rating-min{color:#94a3b8}

/* Страница сервера: равные колонки, услуги в один столбец */
.server-page{grid-template-columns:1fr 1fr}
.server-main .services-grid{grid-template-columns:1fr}
@media(max-width:820px){.server-page{grid-template-columns:1fr}}

/* Профиль: название слева, поле справа */
.profile-form label{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:16px;margin-bottom:10px}
.profile-form label>input,.profile-form label>select{width:100%;margin:0}
.profile-form .avatar-block{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:16px;margin-bottom:16px}
.profile-form .avatar-block label{display:flex;flex-direction:column;gap:6px;margin:0}
.profile-form>button,.profile-form>.btn{justify-self:end;margin-left:226px}
@media(max-width:700px){
  .profile-form label,.profile-form .avatar-block{grid-template-columns:1fr;gap:6px}
  .profile-form>button,.profile-form>.btn{margin-left:0;width:100%}
}

/* SEO-текст на главной */
.seo-text{margin:28px 0 8px;padding:22px 24px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}
.seo-text h2{margin:0 0 10px;font-size:17px}
.seo-text p{margin:0 0 9px;font-size:13.5px;line-height:1.65;color:var(--text-2)}
.seo-text p:last-child{margin-bottom:0}
.seo-text a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(79,110,247,.35)}
@media(max-width:640px){.seo-text{padding:16px}}

/* качество: пинг и аптайм — отдельной колонкой, строка в одну линию */
.servers-table .srv-quality { display: flex; gap: 4px; flex-wrap: nowrap; margin-top: 0; align-items: center; }
.servers-table td.cell-quality { white-space: nowrap; }
.servers-table .cell-name { white-space: nowrap; }
.servers-table .cell-name > a { display: inline-block; max-width: 460px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
@media (max-width: 1100px) { .servers-table .cell-name > a { max-width: 320px; } }
@media (max-width: 640px) {
  .servers-table .cell-name, .servers-table td.cell-quality { white-space: normal; }
  .servers-table .cell-name > a { max-width: 100%; }
  .servers-table .srv-quality { flex-wrap: wrap; }
}

/* онлайн — на всю ширину, услуги — ниже */
.server-online-full { margin-top: 18px; }
.server-online-full .online-history-card { margin: 0; }
.server-online-full .chart-box { height: 320px; }
.server-services { margin-top: 18px; }
.server-services > h2 { margin-top: 0; }
.server-services .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .server-services .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .server-services .services-grid { grid-template-columns: 1fr; }
  .server-online-full .chart-box { height: 220px; }
}

.chart-box canvas { max-width: 100% !important; }

/* компактное подтверждение владельца */
.claim-box.claim-compact { padding: 10px 12px; }
.claim-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.claim-ico { color: var(--accent); font-size: 14px; }
.claim-text { font-size: 13px; color: var(--muted); }
.claim-code { font-family: var(--font-mono, monospace); font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; white-space: nowrap; }
.claim-code:hover { border-color: var(--accent); }
.claim-form { margin: 0; }
.claim-btn { padding: 6px 12px; font-size: 13px; }
@media (max-width: 640px) { .claim-code { font-size: 12px; } }

/* компактные карточки услуг */
.server-services .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.server-services .service-tile { padding: 12px; gap: 6px 10px; border-radius: 12px; grid-template-rows: auto auto; }
.server-services .service-tile-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; grid-row: 1 / 3; align-self: start; }
.server-services .service-tile-title { font-size: 14px; margin: 0; }
.server-services .service-tile-desc { font-size: 12px; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.server-services .service-tile-meta { gap: 6px; }
.server-services .service-tile-price { font-size: 15px; }
.server-services .service-tile-days { font-size: 11.5px; }
.server-services .service-tile-form { margin-top: 4px; padding-bottom: 0; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.server-services .service-tile-select { margin-bottom: 0; height: 28px; font-size: 11.5px; padding: 4px 24px 4px 8px; min-width: 0; flex: 1 1 auto; max-width: 100%; }
.server-services .service-tile-form .btn { padding: 0 10px; font-size: 12px; height: 28px; white-space: nowrap; }
.server-services .service-tile-lock { font-size: 12px; }
@media (max-width: 1200px) { .server-services .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .server-services .services-grid { grid-template-columns: 1fr; } }

/* таблица серверов: компактно, без горизонтальной прокрутки */
.servers-table thead th { padding: 8px 10px; }
.servers-table tbody tr td { padding: 9px 10px; }
.servers-table .cell-name > a { max-width: 340px; }
.servers-table td[data-label="Карта"] { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.servers-table td[data-label="Режим"],
.servers-table td[data-label="Качество"] { white-space: nowrap; }

@media (max-width: 1240px) and (min-width: 641px) {
  .servers-table { font-size: 12.5px; }
  .servers-table thead { display: none; }
  .servers-table tbody tr { display: block; margin-bottom: 12px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-xs); }
  .servers-table tbody tr td { display: flex; justify-content: space-between; border: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: normal; max-width: none; }
  .servers-table tbody tr td:last-child { border-bottom: 0; }
  .servers-table tbody tr td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-right: 10px; }
  .servers-table .cell-name > a { max-width: 100%; }
}

/* === единый вертикальный ритм: максимум 16px === */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 24px;
}
.main-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.home-hero { padding: 16px 18px; margin: 0; }
.top-grid { gap: 16px; }
.filters { margin: 0; }
.servers-block { margin: 0; }

.stats-panel,
.widgets-card,
.server-info,
.listing-head-box,
.services-overview,
.docs-layout,
.static-page { padding: 16px; }

.top-card-body { padding: 10px 12px; }
@media (max-width: 640px) {
  .main-content { padding-left: 16px; padding-right: 16px; }
  .home-hero { padding: 14px 16px; }
}

.main-content .widgets-grid,.main-content .server-page,.main-content .docs-layout{gap:16px}
