/* ==========================================================================
   Программы: проводник, браузер, мастер, диалоги, консоль, блокнот, сапёр…
   ========================================================================== */

/* --- окна сообщений и свойства --- */

.msgbox { padding: 14px 14px 12px; min-width: 260px; max-width: 440px; }
.msgbox-main { display: flex; gap: 14px; align-items: flex-start; }
.msgbox-main > img { flex: none; }
.msgbox-text { padding-top: 2px; line-height: 1.5; white-space: pre-line; }
.msgbox-buttons { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }

.props { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 8px 8px 10px; }
.props-buttons { flex: none; }
.prop-general, .prop-dns, .prop-owner { display: flex; flex-direction: column; gap: 8px; }
.prop-head { display: flex; align-items: center; gap: 14px; }
.prop-head input { flex: 1; }
.prop-sep { height: 1px; margin: 4px 0; background: #d0d0bf; box-shadow: 0 1px #fff; }
.prop-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; }
.prop-row { display: contents; }
.prop-rows > .prop-sep { grid-column: 1 / -1; }
.prop-label { color: #333; white-space: nowrap; }
.prop-value { overflow-wrap: anywhere; }
.prop-note { margin: 4px 0 0; color: #555; line-height: 1.4; }
.prop-meter { height: 9px; border: 1px solid #7f9db9; background: #fff; }
.prop-meter > div { height: 100%; background: linear-gradient(180deg, #8fe791, #2ed330); }

.listbox { border: 1px solid var(--input-border); background: #fff; overflow: auto; }
.listbox-item { display: flex; align-items: center; gap: 6px; padding: 3px 6px; cursor: default; }
.listbox-item.selected { background: var(--select); color: var(--select-text); }
.listbox-item.muted { color: var(--gray-text); }
.listbox-item:focus-visible { outline: 1px dotted #000; outline-offset: -1px; }

.about { display: flex; flex-direction: column; background: #fff; }
.about-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(135deg, #0b2c8c, #2f6fe0 60%, #7aa7f2); color: #fff; }
.about-word { font: italic bold 30px var(--font-start); }
.about-word i { color: #ffa040; }
.about-sub { color: #ffd19c; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.about-body { padding: 12px 16px 14px; background: var(--face); line-height: 1.5; }
.about-body p { margin: 0 0 8px; }
.about-note { color: #555; }

/* --- общие части окон проводника и браузера --- */

.explorer-root, .browser-root { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: none;
  min-height: 38px;
  padding: 1px 4px;
  overflow: hidden;
  border-bottom: 1px solid #d4d0c8;
  background: linear-gradient(180deg, #fbfbf8 0%, #f0eee4 60%, #e9e6d8 100%);
}
.tb-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 34px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  cursor: default;
  white-space: nowrap;
}
.tb-btn.with-label { padding-right: 8px; }
.tb-btn:hover:not(:disabled) { border-color: #cecdc3; background: linear-gradient(180deg, #fff, #f3f2ec); box-shadow: inset 0 -1px rgba(0, 0, 0, .04); }
.tb-btn:active:not(:disabled), .tb-btn.pressed { border-color: #b9b8ae; background: #e3e2da; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .12); }
.tb-btn:disabled { color: var(--gray-text); }
.tb-btn:disabled img { filter: grayscale(1) opacity(.45); }
.tb-drop { width: 0; height: 0; margin-left: 2px; border: 3px solid transparent; border-top: 4px solid #000; border-bottom: 0; }
.tb-sep { flex: none; width: 1px; height: 28px; margin: 0 4px; background: #c5c2b2; box-shadow: 1px 0 #fff; }

.addressbar { display: flex; align-items: center; gap: 4px; flex: none; padding: 2px 4px 3px; border-bottom: 1px solid #d4d0c8; background: var(--face); }
.addr-label { padding: 0 4px; color: #6f6f6f; }
.addr { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; height: 22px; padding: 0 3px; border: 1px solid var(--input-border); background: #fff; }
.addr img { flex: none; }
.addr-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.addr input { flex: 1; min-width: 0; height: 20px !important; border: 0 !important; padding: 0 2px !important; }
.go-btn { display: flex; align-items: center; gap: 4px; padding: 0 6px; height: 22px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: default; }
.go-btn:hover { border-color: #cecdc3; background: #fff; }

.statusbar {
  display: flex;
  gap: 2px;
  flex: none;
  height: 22px;
  padding: 2px 2px 2px 3px;
  border-top: 1px solid #fff;
  box-shadow: 0 -1px #d4d0c8;
  background: var(--face);
}
.statusbar > div { display: flex; align-items: center; gap: 4px; padding: 0 5px; border: 1px solid; border-color: #c5c2b2 #fff #fff #c5c2b2; overflow: hidden; white-space: nowrap; }
.statusbar .sb-main { flex: 1; min-width: 0; }
.statusbar .sb-zone { flex: none; width: 150px; }
.sb-progress-wrap { flex: none; width: 120px; border: 0 !important; padding: 0 2px !important; }
.sb-progress { width: 100%; height: 13px; padding: 1px; }

/* --- проводник --- */

.ex-main, .browser-main { display: flex; flex: 1; min-height: 0; }

.taskpane, .folder-tree {
  flex: none;
  width: 205px;
  overflow-y: auto;
  border-right: 1px solid #a7b3d8;
}
.taskpane { padding: 12px 11px; background: var(--taskpane); }
.tp-panel { margin-bottom: 13px; }
.tp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 25px;
  padding: 0 3px 0 12px;
  border: 0;
  border-radius: 5px 5px 0 0;
  background: var(--tp-head);
  color: var(--tp-head-text);
  font: bold 11px var(--font);
  text-align: left;
  cursor: pointer;
}
.tp-head:hover { color: var(--tp-head-hover); }
.tp-head.static { cursor: default; }
.tp-panel.special .tp-head { background: var(--tp-special); color: #fff; }
.tp-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #c3d0f2;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #dbe4f9);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}
.tp-toggle::before, .tp-toggle::after {
  content: "";
  position: absolute;
  left: 5px;
  width: 5px;
  height: 5px;
  border-left: 2px solid var(--tp-head-text);
  border-top: 2px solid var(--tp-head-text);
  transform: rotate(45deg);
}
.tp-toggle::before { top: 4px; }
.tp-toggle::after { top: 8px; }
.tp-panel.collapsed .tp-toggle::before, .tp-panel.collapsed .tp-toggle::after { transform: rotate(225deg); }
.tp-panel.collapsed .tp-toggle::before { top: 2px; }
.tp-panel.collapsed .tp-toggle::after { top: 6px; }
.tp-panel.collapsed .tp-body { display: none; }
.tp-body { padding: 9px 11px 10px; border: 1px solid #fff; border-top: 0; background: var(--tp-body); }
.tp-link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--tp-link);
  text-align: left;
  cursor: pointer;
}
.tp-link img { flex: none; margin-top: -1px; }
.tp-link:hover span { color: var(--tp-head-hover); text-decoration: underline; }
.tp-details { display: flex; flex-direction: column; gap: 4px; line-height: 1.35; overflow-wrap: anywhere; }
.tp-details .prop-rows { margin-top: 4px; gap: 3px 8px; }

.folder-tree { display: flex; flex-direction: column; background: #fff; }
.tree-head { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 4px 0 8px; border-bottom: 1px solid #d4d0c8; background: var(--face); }
.tree-close { position: relative; width: 16px; height: 16px; padding: 0; border: 1px solid transparent; background: none; cursor: default; }
.tree-close:hover { border-color: #aca899; background: #fff; }
.tree-close::before, .tree-close::after { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 1.5px; background: #333; transform: rotate(45deg); }
.tree-close::after { transform: rotate(-45deg); }
.tree-item { display: flex; align-items: center; gap: 5px; width: 100%; padding: 3px 8px; border: 0; background: none; text-align: left; cursor: default; white-space: nowrap; }
.tree-item.root { padding-left: 8px; }
button.tree-item:hover span { text-decoration: underline; color: #0033cc; }
.tree-item.current span { background: var(--select); color: var(--select-text); padding: 0 2px; }

.ex-content { flex: 1; min-width: 0; overflow: auto; padding: 10px 12px; background: #fff; outline: none; }
.ex-loading, .ex-empty { padding: 20px 8px; color: #666; }
.ex-error { display: flex; gap: 12px; padding: 14px 6px; line-height: 1.5; }
.ex-error p { margin: 4px 0 6px; white-space: pre-line; }
.ex-group { margin-bottom: 14px; }
.ex-group-title {
  margin: 0 0 8px;
  padding: 0 0 3px;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, #6f8fd8 0%, rgba(111, 143, 216, 0) 80%) 1;
  color: #2a4a9e;
  font: bold 11px var(--font);
}
.ex-grid { display: flex; flex-wrap: wrap; gap: 4px 8px; align-content: flex-start; }
.ex-item { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid transparent; cursor: default; }
.view-tiles .ex-item { width: 236px; }
.view-icons .ex-item { flex-direction: column; gap: 4px; width: 82px; text-align: center; }
.ex-item-icon { position: relative; flex: none; display: grid; }
.ex-item-text { min-width: 0; line-height: 1.35; }
.ex-item-name { overflow-wrap: anywhere; }
.ex-item-sub { color: #6d6d6d; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-item.dim .ex-item-icon { opacity: .6; filter: grayscale(.5); }
.ex-item.selected .ex-item-name { background: var(--select); color: var(--select-text); }
.ex-item.selected .ex-item-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 86, 196, .45);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ex-content:focus .ex-item.selected .ex-item-name { outline: 1px dotted #fff; outline-offset: -1px; }

.ex-table { border-collapse: collapse; min-width: 100%; table-layout: fixed; }
.ex-table th {
  position: sticky;
  top: -10px;
  height: 21px;
  padding: 0 6px;
  border-right: 1px solid #d0cfc5;
  background: linear-gradient(180deg, #fff 0%, #f1efe2 85%, #e2dfcf 100%);
  box-shadow: inset 0 -2px #d6d2c2;
  font-weight: normal;
  text-align: left;
  white-space: nowrap;
  cursor: default;
}
.ex-table th:hover { background: linear-gradient(180deg, #fff 0%, #f6f5ee 100%); box-shadow: inset 0 -2px #f9a73b; }
.ex-table th.sorted { background: #e8e6d9; }
.ex-table th.sorted::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; vertical-align: middle; }
.ex-table th.asc::after { border-bottom: 5px solid #8a8a8a; border-top: 0; }
.ex-table th.desc::after { border-top: 5px solid #8a8a8a; border-bottom: 0; }
.ex-table td { padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-table tr.selected td { background: var(--select); color: var(--select-text); }
.ex-table tr.dim td { color: #888; }
.cell-first { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.view-details { padding-top: 10px; }

/* --- браузер --- */

.throbber { display: grid; place-items: center; width: 36px; height: 100%; }
.throbber.spinning img { animation: throb 1s linear infinite; }
@keyframes throb { to { transform: rotate(360deg); } }

.browser-side { flex: none; display: flex; flex-direction: column; width: 200px; border-right: 1px solid #a7b3d8; background: #fff; }
.side-head { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 4px 0 8px; border-bottom: 1px solid #d4d0c8; background: var(--face); font-weight: bold; }
.side-list { flex: 1; overflow: auto; padding: 4px 0; }
.side-item { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 8px; border: 0; background: none; text-align: left; cursor: pointer; }
.side-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-item:hover { background: var(--select); color: var(--select-text); }
.side-empty { padding: 8px; color: #777; }

.browser-page { flex: 1; min-width: 0; overflow: auto; background: #fff; }

/* витрина внутри браузера */
.site { min-height: 100%; display: flex; flex-direction: column; font: 13px Verdana, Tahoma, sans-serif; color: #222; }
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 22px;
  background: linear-gradient(180deg, #2c62d9 0%, #1747b8 100%);
  border-bottom: 3px solid #ff9a2e;
}
.site-logo { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; font: italic bold 24px var(--font-start); cursor: pointer; }
.site-logo i { color: #ffa040; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav button { padding: 5px 11px; border: 0; border-radius: 12px; background: none; color: #dbe6ff; font: bold 12px Verdana, Tahoma, sans-serif; cursor: pointer; }
.site-nav button:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.site-nav button.current { background: #fff; color: #1747b8; }
.site-nav sup { margin-left: 3px; color: #ffb766; font-size: 9px; }
.site-hero { padding: 34px 24px 30px; text-align: center; background: linear-gradient(180deg, #e9f1ff 0%, #fff 100%); }
.site-hero h1 { margin: 0 0 8px; color: #173f9e; font: bold 26px Verdana, Tahoma, sans-serif; letter-spacing: -.5px; }
.site-hero p { margin: 0 0 18px; color: #555; }
.site-search { display: flex; max-width: 520px; margin: 0 auto; }
.site-search input {
  flex: 1;
  min-width: 0;
  height: 38px !important;
  padding: 0 12px !important;
  border: 2px solid #2c62d9 !important;
  border-right: 0 !important;
  border-radius: 6px 0 0 6px !important;
  font: 15px Verdana, Tahoma, sans-serif !important;
}
.site-btn {
  padding: 0 20px;
  border: 1px solid #c26000;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #ffb24d 0%, #ff8a1c 55%, #f07400 100%);
  color: #fff;
  font: bold 14px Verdana, Tahoma, sans-serif;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  cursor: pointer;
}
.site-btn:hover { filter: brightness(1.07); }
.site-btn:active { filter: brightness(.93); }
.site-btn.small { height: 28px; padding: 0 12px; border-radius: 5px; font-size: 12px; }
.site-zones, .site-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; margin-top: 14px; color: #555; font-size: 12px; }
.site-more { justify-content: flex-start; margin-top: 16px; }
.zone-chip { padding: 3px 9px; border: 1px solid #b9c8ea; border-radius: 11px; background: #fff; color: #2c4f9e; font: 12px Verdana, Tahoma, sans-serif; cursor: pointer; }
.zone-chip:hover { border-color: #2c62d9; }
.zone-chip.on { border-color: #2c62d9; background: #2c62d9; color: #fff; }
.site-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; padding: 8px 24px 26px; }
.feature { padding: 14px; border: 1px solid #dfe6f5; border-radius: 8px; background: #fafcff; text-align: center; }
.feature b { display: block; margin: 8px 0 4px; color: #173f9e; }
.feature p { margin: 0; color: #666; font-size: 12px; line-height: 1.45; }
.site-results { flex: 1; padding: 18px 24px 24px; }
.site-results .site-search { margin: 0 0 16px; max-width: 460px; }
.site-results h2 { margin: 0 0 12px; color: #173f9e; font: normal 18px Verdana, Tahoma, sans-serif; }
.site-note { margin: 0 0 10px; color: #8a5a00; }
.results-table { border: 1px solid #d5ddef; border-radius: 6px; overflow: hidden; }
.result-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(90px, .8fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid #e6ebf5; }
.result-row:last-child { border-bottom: 0; }
.result-row:nth-child(even) { background: #f8faff; }
.result-row.available { background: #f3fbf1; }
.r-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: bold; font-size: 14px; }
.r-name span { overflow-wrap: anywhere; }
.r-status { display: flex; gap: 5px; flex-wrap: wrap; }
.r-price { white-space: nowrap; }
.r-price b { color: #1a7f1a; font-size: 14px; }
.r-action { justify-self: end; }
.muted { color: #888; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font: bold 11px Verdana, Tahoma, sans-serif; white-space: nowrap; }
.pill.ok { background: #dff3dc; color: #1a7f1a; }
.pill.bad { background: #fde3df; color: #b42318; }
.pill.wait { background: #fff1cc; color: #8a5a00; }
.pill.premium { background: #fff1cc; color: #8a5a00; }
.result-row.loading .pill { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.site-foot { margin-top: auto; padding: 12px 24px; border-top: 1px solid #e3e8f3; background: #f5f7fc; color: #7a8399; font-size: 11px; }

.ie-page { display: flex; gap: 14px; max-width: 560px; padding: 28px 30px; font: 12px Verdana, Tahoma, sans-serif; line-height: 1.5; }
.ie-page h2 { margin: 2px 0 10px; color: #333; font: bold 17px Verdana, Tahoma, sans-serif; }
.ie-page p { margin: 0 0 10px; white-space: pre-line; }
.ie-page ul { margin: 0; padding-left: 18px; }

.zones-dialog { padding: 12px; }
.zones-dialog p { margin: 0 0 10px; line-height: 1.45; }
.zones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }

@media (max-width: 700px) {
  .taskpane, .folder-tree, .browser-side { display: none; }
  .tb-btn.with-label span { display: none; }
  .statusbar .sb-zone { width: auto; }
  .sb-progress-wrap { width: 60px; }
  .result-row { grid-template-columns: 1fr auto; }
  .r-price { grid-column: 1; }
  .r-action { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .site-head { padding: 8px 12px; }
  .site-hero { padding: 22px 14px; }
  .site-results { padding: 14px 12px; }
}

/* --- мастер регистрации --- */

.wizard { display: flex; flex-direction: column; height: 100%; }
.wz-host { flex: 1; min-height: 0; display: flex; }
.wz-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wz-page.banner { flex-direction: row; background: #fff; }
.wz-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  width: 164px;
  background: linear-gradient(160deg, #0b2c8c 0%, #2f6fe0 55%, #7aa7f2 100%);
  color: #fff;
}
.wz-banner-word { font: italic bold 24px var(--font-start); }
.wz-banner-word i { color: #ffa040; }
.wz-main { flex: 1; min-width: 0; padding: 18px 22px; overflow: auto; line-height: 1.5; }
.wz-main h1 { margin: 0 0 14px; font: bold 17px var(--font-title); }
.wz-main p { margin: 0 0 10px; }
.wz-domain { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 8px 12px; border: 1px solid #c6d6f5; border-radius: 4px; background: #f3f7ff; font: bold 15px var(--font-title); overflow-wrap: anywhere; }
.wz-continue { margin-top: 18px !important; }
.wz-result { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wz-result h1 { margin: 0 !important; }
.wz-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }

.wz-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 10px 14px 10px 20px; background: #fff; border-bottom: 1px solid #aca899; box-shadow: 0 1px #fff; }
.wz-header b { display: block; margin-bottom: 3px; }
.wz-header p { margin: 0; color: #333; }
.wz-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 20px; }
.wz-alert { display: flex; gap: 8px; align-items: flex-start; margin: 10px 20px 0; padding: 7px 10px; border: 1px solid #e3a59a; background: #fff1ee; color: #8a1f10; line-height: 1.4; }
.wz-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.wz-inline { display: flex; align-items: center; gap: 8px; }
.wz-inline select { width: 90px; }
.wz-total { font-size: 12px; }
.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.wz-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wz-field.wide { grid-column: 1 / -1; }
.wz-field input, .wz-field select { width: 100%; }
.wz-phone { display: grid; grid-template-columns: 52px 1fr; gap: 4px; }
.wz-err { color: #c0161a; }
.wz-err:empty { display: none; }
.wz-hint { margin: 8px 0 0; color: #555; line-height: 1.45; }
.wz-modes { display: flex; gap: 18px; margin-bottom: 12px; }
.wz-remember { margin-top: 8px; }
.wz-summary { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #d0d0bf; background: #fff; }
.wz-short { color: #c0161a; font-weight: bold; }
.wz-mode { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; padding: 7px 10px; border: 1px solid; line-height: 1.4; }
.wz-mode img { flex: none; }
.wz-mode.live { border-color: #e3a59a; background: #fff1ee; color: #8a1f10; }
.wz-mode.sandbox { border-color: #b7c9ee; background: #eef4ff; color: #1d3f8f; }
.wz-confirm { font-weight: bold; }
.wz-buttons { display: flex; align-items: center; gap: 6px; flex: none; padding: 10px 12px; border-top: 1px solid #aca899; box-shadow: inset 0 1px #fff; }
.wz-buttons .btn:first-child { margin-left: auto; }
.wz-gap { width: 6px; }

@media (max-width: 700px) {
  .wz-banner { display: none; }
  .wz-grid { grid-template-columns: 1fr; }
}

/* --- командная строка --- */

.cmd .window-body { background: #000; }
.cmd-screen {
  --cmd-bg: #000;
  --cmd-fg: #c0c0c0;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 6px;
  background: var(--cmd-bg);
  color: var(--cmd-fg);
  font: 14px/1.25 var(--font-mono);
  cursor: text;
}
.cmd-out { white-space: pre-wrap; word-break: break-all; }
.cmd-line { white-space: pre-wrap; word-break: break-all; }
.cmd-cursor { background: var(--cmd-fg); color: var(--cmd-bg); animation: blink 1s steps(1) infinite; }
.window.inactive .cmd-cursor { animation: none; background: transparent; color: inherit; border-bottom: 2px solid var(--cmd-fg); }
@keyframes blink { 50% { background: transparent; color: inherit; } }
.cmd-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }

/* --- блокнот --- */

.notepad { display: flex; flex-direction: column; height: 100%; }
.notepad-text {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 2px 4px !important;
  border: 0 !important;
  border-top: 1px solid #aca899 !important;
  font: 13px/1.35 var(--font-mono) !important;
  resize: none;
  white-space: pre-wrap;
}
.notepad-text.nowrap { white-space: pre; overflow-x: auto; }

/* --- свойства экрана --- */

.display-props .tab-panel { padding: 12px 14px; }
.display-tab { display: flex; flex-direction: column; gap: 10px; }
.display-label { margin-top: 2px; }
.display-tab .listbox { height: 112px; }
.display-tab .listbox.sounds { height: 150px; }
.display-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.display-row input[type="number"] { width: 54px; }
.display-row input[type="range"] { flex: 1; }
.display-note { margin: 0; color: #555; line-height: 1.4; }
.play-btn { width: 20px; height: 18px; padding: 0; border: 1px solid #aca899; border-radius: 3px; background: linear-gradient(180deg, #fff, #e6e4da); font-size: 9px; color: #1a7f1a; cursor: default; }
.play-btn:hover { border-color: #e5a01a; }

.monitor-preview { display: flex; flex-direction: column; align-items: center; margin: 0 auto 4px; }
.monitor-frame {
  width: 190px;
  height: 142px;
  padding: 11px 11px 22px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(180deg, #f2f0e6 0%, #d5d0bd 100%);
  box-shadow: inset 0 0 0 1px #8f8a77, inset 1px 1px #fff, 2px 2px 4px rgba(0, 0, 0, .2);
}
.monitor-screen { width: 100%; height: 100%; overflow: hidden; border: 1px solid #555; background: #000; }
.monitor-wall { width: 100%; height: 100%; background-size: cover; background-position: center; }
.monitor-stand { width: 70px; height: 12px; margin-top: -2px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #d5d0bd, #b9b39e); box-shadow: inset 0 0 0 1px #8f8a77; }
.monitor-saver { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; color: #ff8a1c; font: italic bold 15px var(--font-start); background: #000; }
.monitor-saver[data-mode="none"] { visibility: hidden; }
.monitor-saver[data-mode="logo"] { position: relative; display: block; }
.monitor-saver[data-mode="logo"] > * { position: absolute; }
.monitor-saver[data-mode="logo"] img { animation: saver-x 3.1s linear infinite alternate, saver-y 2.3s linear infinite alternate, saver-color 5.4s steps(1) infinite; }
.monitor-saver[data-mode="logo"] span { margin-left: 30px; animation: saver-x 3.1s linear infinite alternate, saver-y 2.3s linear infinite alternate, saver-color 5.4s steps(1) infinite; }
@keyframes saver-x { from { left: 0; } to { left: calc(100% - 128px); } }
@keyframes saver-y { from { top: 0; } to { top: calc(100% - 26px); } }
@keyframes saver-color { 0% { color: #ff8a1c; filter: none; } 25% { color: #3fb34a; filter: hue-rotate(110deg); } 50% { color: #3a9be8; filter: hue-rotate(200deg); } 75% { color: #e8467a; filter: hue-rotate(300deg); } }
@media (prefers-reduced-motion: reduce) { .monitor-saver[data-mode="logo"] img, .monitor-saver[data-mode="logo"] span { animation: none; } }

.scheme-preview { position: relative; height: 150px; padding: 10px; border: 1px solid #7f9db9; background: #3a6ea5 url("/img/wallpapers/hill.svg") center / cover; }
.scheme-preview .window.mini { position: absolute; left: 12px; top: 12px; width: 220px; min-width: 0; height: 80px; transform: none; box-shadow: var(--frame-shadow-inactive); pointer-events: none; }
.scheme-preview .window.mini.front { left: 60px; top: 44px; height: 92px; box-shadow: var(--frame-shadow-active), 2px 2px 6px rgba(0, 0, 0, .3); }
.scheme-preview .title-bar { height: 22px; }
.scheme-preview .title-text { font-size: 11px; }
.scheme-preview .title-controls button { width: 16px; height: 16px; }
.scheme-preview .tc-close::before, .scheme-preview .tc-close::after { left: 2px; top: 6px; width: 10px; height: 2px; }
.mini-body { display: flex; align-items: center; justify-content: space-between; padding: 8px; }

/* --- выполнить --- */

.run-dialog { padding: 12px 12px 12px; }
.run-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.run-top p { margin: 2px 0 0; line-height: 1.45; }
.run-field { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.run-field input { flex: 1; }

/* --- VPS --- */

.vps { display: flex; height: 100%; min-height: 0; }
.vps-main { flex: 1; min-width: 0; overflow: auto; padding: 14px 16px; background: #fff; }
.vps-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #c6d6f5; border-radius: 6px; background: linear-gradient(135deg, #f3f7ff, #e3ecff); }
.vps-banner h2 { margin: 0 0 4px; color: #173f9e; font: bold 16px var(--font-title); }
.vps-banner p { margin: 0; color: #444; line-height: 1.45; }
.vps-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vps-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #d5ddef; border-radius: 6px; background: #fafcff; }
.vps-plan.featured { border-color: #ff9a2e; box-shadow: 0 0 0 1px #ff9a2e inset; }
.vps-plan h3 { margin: 0; color: #173f9e; font: bold 14px var(--font-title); }
.vps-plan ul { margin: 0; padding-left: 16px; line-height: 1.6; }
.vps-note { margin: 0; color: #777; }
.vps-plan .btn { margin-top: auto; }
.vps-ribbon { position: absolute; right: 8px; top: -9px; padding: 1px 8px; border-radius: 8px; background: #ff8a1c; color: #fff; font-weight: bold; }
.vps-foot { margin: 12px 0 0; color: #777; }

/* --- сапёр --- */

.minesweeper { outline: none; background: #c0c0c0; }
.ms-board { padding: 6px; border-top: 3px solid #fff; border-left: 3px solid #fff; background: #c0c0c0; }
.ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 4px 5px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}
.ms-led { width: 43px; height: 25px; padding: 0 2px; background: #000; color: #f00; font: bold 22px/25px "Courier New", monospace; letter-spacing: 1px; text-align: center; text-shadow: 0 0 4px rgba(255, 0, 0, .6); }
.ms-face {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  background: #c0c0c0;
  cursor: default;
}
.ms-face:active { border-color: #808080 #fff #fff #808080; }
.ms-field { border: 3px solid; border-color: #808080 #fff #fff #808080; }
.ms-grid { display: grid; }
.ms-cell {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  background: #c0c0c0;
  font: bold 12px/1 Tahoma, Verdana, sans-serif;
  cursor: default;
  touch-action: manipulation;
}
.ms-cell.pressed, .ms-cell.open { border: 0; border-left: 1px solid #808080; border-top: 1px solid #808080; }
.ms-cell.flag { background: #c0c0c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v7' stroke='%23000'/%3E%3Cpath d='M6 1.5L2 3.8 6 6z' fill='%23e00'/%3E%3Cpath d='M3 9.5h6v1.5H3z' fill='%23000'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ms-cell.mine { background: #c0c0c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg stroke='%23000'%3E%3Cpath d='M6 0.5v11M0.5 6h11M2.2 2.2l7.6 7.6M9.8 2.2l-7.6 7.6'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='3.6'/%3E%3Crect x='4' y='4' width='1.6' height='1.6' fill='%23fff'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ms-cell.boom { background-color: #f00; }
.ms-cell.wrong { background: #c0c0c0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='3.6'/%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='%23e00' stroke-width='1.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ms-cell.n1 { color: #0000ff; }
.ms-cell.n2 { color: #008000; }
.ms-cell.n3 { color: #ff0000; }
.ms-cell.n4 { color: #000080; }
.ms-cell.n5 { color: #800000; }
.ms-cell.n6 { color: #008080; }
.ms-cell.n7 { color: #000; }
.ms-cell.n8 { color: #808080; }
.ms-window .window-body { overflow: auto; }

/* --- пинбол --- */

.pinball-window .window-body { overflow: auto; }
.pinball { display: flex; flex-direction: column; background: #ece9d8; outline: none; }
.pb-body { display: flex; gap: 10px; padding: 8px; align-items: flex-start; }
.pb-table { padding: 2px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #0a1539; line-height: 0; }
.pb-canvas { display: block; height: min(600px, calc(100vh - 140px)); width: auto; touch-action: none; cursor: pointer; }
.pb-panel { display: flex; flex-direction: column; gap: 8px; width: 176px; font-size: 11px; }
.pb-title { display: flex; align-items: center; gap: 8px; }
.pb-title b { display: block; font: bold 15px var(--font-title); color: #173f9e; }
.pb-title span { color: #555; }
.pb-lcd { padding: 6px 8px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #101c10; color: #7dff6a; text-align: right; }
.pb-lcd small { display: block; text-align: left; color: #4fa845; font-size: 9px; letter-spacing: 1px; }
.pb-score { font: bold 22px/1.1 var(--font-mono); letter-spacing: 1px; text-shadow: 0 0 6px rgba(125, 255, 106, 0.6); }
.pb-stats { display: grid; gap: 3px; padding: 6px 8px; border: 1px solid #b8b4a2; background: #fff; }
.pb-row { display: flex; justify-content: space-between; gap: 6px; }
.pb-msg { min-height: 44px; padding: 5px 7px; border: 1px solid #e3c766; background: #fffbe2; color: #5a3d00; line-height: 1.35; }
.pb-msg:empty { visibility: hidden; }
.pb-buttons { display: flex; gap: 6px; }
.pb-buttons .btn { flex: 1; min-width: 0; padding-left: 4px; padding-right: 4px; }
.pb-help { display: grid; gap: 4px; color: #444; line-height: 1.5; }
.pb-help kbd { display: inline-block; min-width: 14px; padding: 0 4px; border: 1px solid #a5a29a; border-bottom-width: 2px; border-radius: 3px; background: #fff; font: 10px/14px var(--font-mono); text-align: center; }

/* --- блокнот: файл только для чтения (ссылки кликабельные) --- */

.notepad-view { overflow: auto; background: #fff; color: #000; user-select: text; cursor: text; outline: none; }
.notepad-view a { color: #0000ee; text-decoration: underline; cursor: pointer; }
.notepad-view a:visited { color: #551a8b; }

/* ==========================================================================
   Кабинет SpasiboHost: прайс-лист, корзина, кошелёк, справка, профиль
   ========================================================================== */

/* --- кнопки витрины --- */
.site-btn.alt { border-color: #1d4fc0; background: linear-gradient(180deg, #6aa1ff 0%, #2f6fe0 55%, #1d55c8 100%); }
.site-btn.ghost { border-color: #9fb3dc; background: #fff; color: #2c4f9e; text-shadow: none; }
.site-btn:disabled { opacity: .5; cursor: default; filter: none; }
.r-action { display: flex; gap: 6px; }
.result-row { grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(90px, .8fr) auto; }

.site-cart { display: inline-flex !important; align-items: center; gap: 5px; margin-left: 6px; border: 1px solid rgba(255, 255, 255, .45) !important; }
.cart-count:not(:empty) { min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ff8a1c; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.site-hero.compact { padding: 24px 24px 20px; }
.site-hero.compact h1 { font-size: 22px; }
.site-popular { padding: 4px 24px 26px; }
.site-popular h3 { margin: 0 0 10px; color: #173f9e; font: bold 14px Verdana, Tahoma, sans-serif; }
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.popular-zone { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid #d5ddef; border-radius: 6px; background: #fafcff; font: 12px Verdana, Tahoma, sans-serif; color: #1a7f1a; cursor: pointer; }
.popular-zone b { color: #173f9e; font-size: 16px; }
.popular-zone:hover { border-color: #2c62d9; background: #f0f5ff; }

/* --- прайс-лист --- */
.pricelist { flex: 1; padding: 6px 24px 24px; }
.pl-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pl-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-tab { padding: 5px 11px; border: 1px solid #b9c8ea; border-radius: 14px; background: #fff; color: #2c4f9e; font: 12px Verdana, Tahoma, sans-serif; cursor: pointer; }
.pl-tab:hover { border-color: #2c62d9; }
.pl-tab.on { border-color: #2c62d9; background: #2c62d9; color: #fff; }
.pl-tools { display: flex; gap: 6px; }
.pl-tools input { width: 190px; height: 26px !important; font-size: 12px !important; }
.pl-tools select { height: 26px !important; font-size: 12px !important; }
.pl-box { border: 1px solid #d5ddef; border-radius: 6px; overflow: auto; }
.pl-box > .pl-loading { padding: 16px; }
.pl-table { width: 100%; border-collapse: collapse; font: 13px Verdana, Tahoma, sans-serif; }
.pl-table th { position: sticky; top: 0; padding: 8px 12px; background: #eef3fd; color: #4a5b80; font-weight: normal; font-size: 12px; text-align: left; white-space: nowrap; }
.pl-table td { padding: 8px 12px; border-top: 1px solid #edf1f8; white-space: nowrap; }
.pl-table tr:hover td { background: #f7faff; }
.pl-zone b { color: #173f9e; font-size: 14px; }
.pl-cat { color: #777; font-size: 12px; }
.pl-price { color: #1a7f1a; font-weight: bold; }
.pl-action { text-align: right; }
.pl-empty { padding: 18px; color: #666; font: 13px Verdana, Tahoma, sans-serif; }
.pl-note { margin: 10px 0 0; color: #777; font: 11px Verdana, Tahoma, sans-serif; }

/* --- мои домены --- */
.md-list { display: grid; gap: 10px; }
.md-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #d5ddef; border-radius: 8px; background: #fafcff; }
.md-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font: 12px Verdana, Tahoma, sans-serif; }
.md-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.md-name b { color: #173f9e; font-size: 15px; overflow-wrap: anywhere; }
.md-meta { color: #555; }
.md-meta.soon { color: #b42318; font-weight: bold; }
.md-ns { color: #888; overflow-wrap: anywhere; }
.md-actions { display: flex; flex-direction: column; gap: 6px; }
.md-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px; color: #555; font: 13px Verdana, Tahoma, sans-serif; }
.transfer-box { display: flex; gap: 16px; padding: 16px; border: 1px solid #d5ddef; border-radius: 8px; background: #fafcff; font: 13px/1.6 Verdana, Tahoma, sans-serif; }
.transfer-box p { margin: 0 0 8px; }

/* --- тарифы (лендинг и «Серверы») --- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.plans > .lp-note { grid-column: 1 / -1; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #d5ddef; border-radius: 8px; background: #fafcff; font: 12px Tahoma, sans-serif; color: #222; }
.plan.featured { border-color: #ff9a2e; box-shadow: 0 0 0 1px #ff9a2e inset; }
.plan h3 { margin: 0; color: #173f9e; font: bold 15px var(--font-title); }
.plan ul { margin: 0; padding-left: 16px; line-height: 1.7; }
.plan-note { margin: 0; color: #777; }
.plan-soon, .soon-tag { align-self: flex-start; padding: 1px 8px; border-radius: 8px; background: #fff1cc; color: #8a5a00; font: bold 10px Tahoma, sans-serif; text-transform: uppercase; }
.ok-tag { flex: none; padding: 1px 8px; border-radius: 8px; background: #e3f5df; color: #1a7f1a; font: bold 10px Tahoma, sans-serif; text-transform: uppercase; }
.wallet-method .soon-tag, .topup-method .soon-tag { align-self: center; flex: none; }
/* промокод в окне пополнения */
.topup-promo { display: flex; align-items: center; gap: 6px; }
.topup-promo input { width: 170px; height: 23px; text-transform: uppercase; }
.topup-promo input::placeholder { text-transform: none; }
.topup-promo-note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 2px; padding: 6px 8px; border-radius: 5px; line-height: 1.4; }
.topup-promo-note.ok { background: #eef8ec; color: #1a5f1a; }
.invoice-bonus { color: #1a7f1a !important; }
.plan .btn { margin-top: auto; }
.plan-ribbon { position: absolute; right: 8px; top: -9px; padding: 1px 8px; border-radius: 8px; background: #ff8a1c; color: #fff; font-weight: bold; }
.vps-main .tabs { display: block; }
.vps-main .tab-panel { padding: 12px; }

/* --- корзина --- */
.cart { display: flex; flex-direction: column; height: 100%; background: #fff; }
.cart-head { display: flex; align-items: center; gap: 10px; flex: none; padding: 10px 14px; background: linear-gradient(90deg, #eef3fd, #fff); border-bottom: 1px solid #d5ddef; }
.cart-head b { display: block; font: bold 14px var(--font-title); color: #173f9e; }
.cart-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px; }
.cart-table td { vertical-align: middle; height: 30px; }
.cart-table select { height: 21px; }
.cart-remove { position: relative; width: 20px; height: 20px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; }
.cart-remove::before, .cart-remove::after { content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 2px; background: #c0392b; transform: rotate(45deg); }
.cart-remove::after { transform: rotate(-45deg); }
.cart-remove:hover { border-color: #e3a59a; background: #fff1ee; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 10px; color: #666; }
.cart-empty p { margin: 0; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; flex: none; padding: 10px 12px; background: var(--face); border-top: 1px solid #c5c2b2; }
.cart-sum { display: flex; align-items: baseline; gap: 8px; }
.cart-total { font-size: 16px; }

/* --- оформление заказа --- */
.wz-order { margin: 6px 0; border: 1px solid #d5ddef; border-radius: 4px; overflow: hidden; }
.wz-order-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #edf1f8; }
.wz-order-row:last-child { border-bottom: 0; }
.wz-order-row b { flex: 1; overflow-wrap: anywhere; }
.wz-order-row.total { background: #f3f7ff; font-weight: bold; }
.wz-order-row.total span { flex: 1; }
.wz-order-price { min-width: 70px; text-align: right; }
.wz-topup { margin-top: 8px; }
.wz-mode > div { display: flex; flex-direction: column; align-items: flex-start; }

/* --- кошелёк --- */
.wallet { display: flex; flex-direction: column; height: 100%; overflow: auto; }
.wallet-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: linear-gradient(135deg, #0b2c8c, #2f6fe0 60%, #7aa7f2); color: #fff; }
.wallet-sum { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.wallet-sum span { opacity: .85; }
.wallet-balance { font: bold 30px var(--font-title); text-shadow: 1px 2px 3px rgba(0, 0, 0, .3); }
.wallet-actions { display: flex; gap: 6px; }
.wallet-body { padding: 12px 14px; }
.wallet-method, .topup-method { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid #e5e2d3; }
.wallet-method:last-child, .topup-method:last-child { border-bottom: 0; }
.wallet-method > span:nth-child(2), .topup-method > span:nth-of-type(1) { flex: 1; display: flex; flex-direction: column; }
.wallet-method small, .topup-method small { color: #666; }
.wallet-recent table { margin-bottom: 6px; }
.wallet-note { margin: 4px 0 0; color: #555; }
.amount.plus { color: #1a7f1a; font-weight: bold; }
.amount.minus { color: #b42318; font-weight: bold; }
.topup { padding: 12px; }
.topup-amount { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.topup-amount input { width: 120px; height: 26px !important; font-size: 14px !important; }
.topup-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.tx-content { padding-top: 10px; }

/* --- справка и поддержка --- */
.helpcenter { display: flex; flex-direction: column; height: 100%; background: #fff; }
.hs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; flex: none; padding: 10px 14px; background: linear-gradient(180deg, #2b62d3 0%, #0b3fb0 100%); color: #fff; border-bottom: 3px solid #ff9a2e; }
.hs-title { display: flex; align-items: center; gap: 10px; }
.hs-title b { display: block; font: bold 16px var(--font-title); }
.hs-title span { opacity: .85; }
.hs-search input { width: 230px; height: 24px !important; border-radius: 3px !important; }
.hs-body { display: flex; flex: 1; min-height: 0; }
.hs-nav { flex: none; width: 210px; overflow: auto; padding: 8px 0; background: #eef3fd; border-right: 1px solid #c6d3f2; }
.hs-section { margin: 10px 12px 4px; color: #2a4a9e; font-weight: bold; border-bottom: 1px solid #c6d3f2; padding-bottom: 3px; }
.hs-link { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 14px; border: 0; background: none; color: #1d3f8f; text-align: left; cursor: pointer; }
.hs-link:hover span { text-decoration: underline; }
.hs-link.current { background: #d6e2fb; font-weight: bold; }
.hs-main { flex: 1; min-width: 0; overflow: auto; padding: 14px 20px; font: 12px/1.6 Tahoma, sans-serif; }
.hs-main h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #173f9e; font: bold 16px var(--font-title); }
.hs-article { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf1f8; }
.hs-article h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; color: #222; }
.hs-article p { margin: 0 0 0 22px; color: #444; }
/* вопрос со своим значком (раздел рабочего стола, тип серверов) */
.hs-article.with-icon h4 { gap: 8px; font-size: 13px; }
.hs-article.with-icon p { margin-left: 30px; }
/* пошаговая инструкция: номер, значок, текст */
.hs-steps { display: grid; gap: 6px; margin: 6px 0 0 22px; padding: 0; list-style: none; counter-reset: hs-step; }
.hs-steps li { display: flex; align-items: center; gap: 8px; color: #444; counter-increment: hs-step; }
.hs-steps li::before { content: counter(hs-step); flex: none; width: 18px; height: 18px; border-radius: 50%; background: #2c62d9; color: #fff; font: bold 11px/18px Tahoma, sans-serif; text-align: center; }
.hs-steps .icon { flex: none; }
.hs-note { color: #666; }
.hs-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.hs-field input, .hs-field textarea { width: 100%; }

/* --- профиль --- */
.profile-tab { display: flex; flex-direction: column; gap: 10px; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #d5ddef; border-radius: 4px; background: linear-gradient(90deg, #eef3fd, #fff); }
.profile-card img { border: 2px solid #fff; border-radius: 4px; box-shadow: 1px 1px 3px rgba(0, 0, 0, .3); }
.profile-card b { font: bold 14px var(--font-title); }
.profile-card small { color: #666; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar-pick { display: grid; place-items: center; padding: 3px; border: 2px solid transparent; border-radius: 5px; background: none; cursor: pointer; }
.avatar-pick:hover { border-color: #c6d3f2; }
.avatar-pick.selected { border-color: #ffc94a; background: #fff8e1; }

/* --- управление доменом: DNS --- */
.ns-list { display: grid; gap: 6px; margin: 4px 0 10px; }
.ns-row { display: flex; align-items: center; gap: 8px; }
.ns-row span { width: 40px; color: #555; }
.ns-row input { flex: 1; }
.ns-tools { justify-content: flex-start; }

@media (max-width: 700px) {
  .pricelist, .site-popular { padding-left: 12px; padding-right: 12px; }
  .pl-tools { width: 100%; }
  .pl-tools input { flex: 1; width: auto; }
  .pl-table th:nth-child(2), .pl-table td:nth-child(2), .pl-table th:nth-child(5), .pl-table td:nth-child(5) { display: none; }
  .md-card { flex-wrap: wrap; }
  .md-actions { flex-direction: row; width: 100%; }
  .hs-nav { display: none; }
  .r-action { flex-direction: column; }
}

/* --- уточнения --- */
.pl-row { cursor: pointer; }
.statusbar .sb-zone { width: auto; min-width: 150px; }
@media (max-width: 700px) {
  .pl-action { display: none; }
}

/* --- прайс-лист: подсказка, страницы, пустой результат --- */
.pl-hint { min-height: 14px; margin: -2px 0 8px; color: #777; font: 11px Verdana, Tahoma, sans-serif; }
.pl-pending { padding: 8px 10px; border: 1px solid #f0d58a; border-radius: 6px; background: #fffbea; font: 12px Verdana, Tahoma, sans-serif; }
.pl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid #d5ddef; background: #f7f9fd; font: 12px Verdana, Tahoma, sans-serif; }
.pl-count { color: #555; }
.pl-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pl-page { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid #c6d2ec; border-radius: 5px; background: #fff; color: #2c4f9e; font: bold 12px Verdana, Tahoma, sans-serif; cursor: pointer; }
.pl-page:hover:not(:disabled) { border-color: #2c62d9; }
.pl-page.on { border-color: #ff7a00; background: linear-gradient(180deg, #ffb24a, #f07400); color: #fff; }
.pl-page:disabled { opacity: .4; cursor: default; }
.pl-gap { padding: 0 2px; color: #999; }
.pl-empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 18px; color: #555; font: 13px Verdana, Tahoma, sans-serif; text-align: center; }
.pl-empty-state h3 { margin: 4px 0 0; color: #173f9e; font-size: 16px; }
.pl-empty-state p { margin: 0; color: #777; font-size: 12px; }
.pl-similar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.pl-similar span { color: #555; font-size: 12px; }
.pl-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.pl-empty-actions .site-btn, .md-empty > .site-btn { height: 36px; border-radius: 6px; font-size: 13px; }

/* --- подсказки к поисковому запросу --- */
.query-notes { display: grid; gap: 10px; margin: 0 0 14px; }
.qn-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #f0d58a; border-radius: 8px; background: #fffbea; font: 13px/1.5 Verdana, Tahoma, sans-serif; }
.qn-row > img { flex: none; margin-top: 1px; }
.qn-body { flex: 1; min-width: 0; }
.qn-body p { margin: 0; overflow-wrap: anywhere; }
.qn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.qn-chips { display: flex; flex-wrap: wrap; gap: 5px; width: 100%; }
.qn-tip { margin: 0; color: #777; font: 12px Verdana, Tahoma, sans-serif; }
.zone-chip.add { border-style: dashed; color: #555; }
.zones-add { display: flex; gap: 6px; margin: 10px 0 4px; }
.zones-add input { flex: 1; }
.md-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.md-admin-hint { max-width: 460px; margin: 6px 0 0; padding: 8px 10px; border: 1px solid #b7c9ee; border-radius: 6px; background: #eef4ff; color: #1d3f8f; font-size: 12px; text-align: center; }

/* --- продление --- */
.renew { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.renew-head { display: flex; align-items: center; gap: 10px; }
.renew-head b { display: block; margin-bottom: 2px; }
.renew-head div div { color: #555; }
.renew-years { display: flex; align-items: center; gap: 8px; }
.renew-summary { padding: 6px 8px; border: 1px solid #d4d0c8; background: #fff; }
.renew-note:empty { display: none; }
.renew-note .wz-mode { margin: 0; }
.prop-renew { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border: 1px solid #d4d0c8; background: #f7f6f0; }
.prop-renew span { flex: 1; color: #444; line-height: 1.35; }

/* --- оформление заказа: регистрация и итог --- */
.wz-progress { display: grid; gap: 8px; margin: 10px 0; padding: 10px; border: 1px solid #b7c9ee; background: #eef4ff; color: #1d3f8f; line-height: 1.4; }
.wz-results { max-height: 220px; overflow: auto; }
.wz-results .wz-order-row { align-items: flex-start; }
.wz-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wz-result-text span { color: #555; font-size: 11px; line-height: 1.35; white-space: pre-line; }
.wz-results .result-completed .wz-result-text span { color: #1a7f1a; }
.wz-result-actions { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 10px; }

/* --- кошелёк: пополнение через поддержку --- */
.topup-manual { display: flex; align-items: center; gap: 10px; padding: 6px 2px 8px; border-bottom: 1px solid #e5e2d3; }
.topup-manual > span { flex: 1; display: flex; flex-direction: column; }
.topup-manual small { color: #555; line-height: 1.35; }
.topup-method.disabled { opacity: .55; }

/* --- администрирование --- */
.adm-main { display: flex; flex: 1; min-height: 0; }
.adm-tree { flex: none; width: 190px; padding: 6px 0; border-right: 1px solid #d4d0c8; background: #fff; overflow: auto; }
.adm-tree .tree-item { position: relative; padding: 5px 10px 5px 18px; }
.adm-tree .tree-item.root { padding-left: 8px; font-weight: bold; }
.adm-tree .tree-item:hover:not(.root) span:first-of-type { text-decoration: underline; }
.adm-badge { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e3261d; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.adm-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.adm-title { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #d4d0c8; background: linear-gradient(90deg, #fff 0%, #eef2fb 100%); }
.adm-title b { display: block; color: #173f9e; font-size: 14px; }
.adm-title span { color: #666; font-size: 11px; }
.adm-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; }
.adm-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adm-tools input[type="search"] { width: 240px; }
.adm-filters { margin-bottom: 2px; }
.adm-hint { margin: 0; color: #666; font-size: 11px; line-height: 1.4; }
.adm-grid { border: 1px solid #d4d0c8; overflow: auto; }
.adm-table td.num, .adm-table th.num { text-align: right; }
.adm-table tr { cursor: default; }
.adm-table tr.adm-unassigned td { background: #fffbea; }
.adm-table tr.selected.adm-unassigned td { background: var(--select); }
.adm-row-actions { display: inline-flex; gap: 4px; }
.adm-table .btn.small { height: 19px; font-size: 11px; }
.adm-h { margin: 14px 0 6px; color: #173f9e; font-size: 12px; font-weight: bold; }
.adm-h:first-child { margin-top: 0; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.adm-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #d5ddef; border-radius: 6px; background: #fafcff; font: inherit; text-align: left; color: inherit; }
.adm-card.clickable { cursor: pointer; }
.adm-card.clickable:hover { border-color: #2c62d9; background: #f0f5ff; }
.adm-card > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adm-card span { color: #666; font-size: 11px; }
.adm-card b { color: #173f9e; font-size: 16px; }
.adm-card small { color: #777; font-size: 10px; line-height: 1.3; }
.adm-alerts { display: grid; gap: 6px; margin-bottom: 4px; }
.adm-alert { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid; line-height: 1.35; }
.adm-alert span { flex: 1; }
.adm-alert.error { border-color: #e3a59a; background: #fff1ee; color: #8a1f10; }
.adm-alert.warning { border-color: #f0d58a; background: #fffbea; color: #6b4a00; }
.adm-alert.info { border-color: #b7c9ee; background: #eef4ff; color: #1d3f8f; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-form { display: grid; gap: 6px; margin: 4px 0 8px; }
.adm-form label:not(.check) { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 8px; }
.adm-form label > span:first-child { color: #444; }
.adm-unit { display: inline-flex; align-items: center; gap: 6px; }
.adm-unit input { width: 90px; }
.adm-pricing fieldset { margin: 0; }
.adm-promos fieldset { margin: 0; }
.adm-promos .adm-unit input.adm-promo-code { width: 200px; text-transform: uppercase; }
.adm-promos .adm-unit input.adm-promo-code::placeholder { text-transform: none; }
.adm-pricing [hidden] { display: none !important; }
.adm-flex { flex: 1; }
/* своя наценка на зоны и тарифы: поля прямо в строках таблицы */
.adm-own { table-layout: auto; margin-bottom: 6px; }
.adm-own td { overflow: visible; vertical-align: middle; }
.adm-own td.center { text-align: center; }
.adm-own .adm-unit { gap: 4px; }
.adm-own .adm-unit input[type="number"] { width: 56px; }
.adm-own-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.adm-table tr.adm-group td { padding-top: 6px; background: #eef2fb; color: #173f9e; }
.adm-table tr.adm-loss td { background: #fff1ee; } /* продаём дешевле, чем покупаем */
.adm-pricing .adm-tools input[list] { width: 140px; }
.adm-user .tab-panel { overflow: auto; }
.adm-wallet { display: flex; flex-direction: column; gap: 8px; }
.adm-wallet-head { display: flex; align-items: center; gap: 10px; }
.adm-wallet-head span { display: block; color: #666; }
.adm-wallet-head b { font-size: 18px; color: #173f9e; }
.adm-wallet fieldset { margin: 0; }
.adm-userpick { width: 100%; margin: 6px 0 10px; }
@media (max-width: 700px) {
  .adm-tree { width: 46px; }
  .adm-tree .tree-item span, .adm-tree .tree-item.root { display: none; }
  .adm-tree .tree-item { padding: 6px 0; justify-content: center; }
  .adm-tree .adm-badge { position: absolute; top: 1px; right: 2px; display: block !important; }
  .adm-tree .adm-badge[hidden] { display: none !important; }
  .adm-form label:not(.check) { grid-template-columns: 1fr; gap: 2px; }
  .adm-tools input[type="search"] { width: 100%; }
}
/* --- прайс-лист: поиск слева, страницы справа (над таблицей) --- */
.pl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -2px 0 10px; }
.pl-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; font: 12px Verdana, Tahoma, sans-serif; }
.pl-topbar:empty { display: none; }
@media (max-width: 700px) {
  .pl-topbar { width: 100%; justify-content: space-between; }
}

/* --- перенос домена --- */
.tr-result:empty { display: none; }
.tr-result { margin-bottom: 16px; }
.tr-card { display: flex; gap: 16px; padding: 16px 18px; border: 1px solid #c7d6f2; border-radius: 8px; background: #fafcff; font: 13px/1.5 Verdana, Tahoma, sans-serif; }
.tr-card.done { border-color: #a8d8a0; background: #f3fbf1; }
.tr-card > img { flex: none; }
.tr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-body h3 { margin: 0; color: #173f9e; font-size: 16px; }
.tr-body p { margin: 0; }
.tr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-head b { color: #173f9e; font-size: 16px; overflow-wrap: anywhere; }
.tr-price b { color: #1a7f1a; font-size: 16px; }
.tr-field { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 4px 12px; }
.tr-field > span:first-child { color: #555; }
.tr-field input { height: 30px; padding: 3px 8px; border: 1px solid #9fb3dc; border-radius: 4px; font: 13px Verdana, Tahoma, sans-serif; }
.tr-field input.invalid { border-color: #d0382b; background: #fff3f1; }
.tr-field .wz-err { grid-column: 2; color: #b42318; }
.tr-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: #333; }
.tr-owner.missing { padding: 6px 8px; border: 1px solid #f0d58a; border-radius: 6px; background: #fffbea; color: #6b4a00; }
.tr-ns { color: #555; font-size: 12px; }
.tr-check { color: #333; }
.tr-short { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8a1f10; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-actions .site-btn:not(.small) { height: 38px; border-radius: 6px; }
@media (max-width: 700px) {
  .tr-card { flex-direction: column; padding: 12px; }
  .tr-field { grid-template-columns: 1fr; }
  .tr-field .wz-err { grid-column: 1; }
}

/* --- серверы: витрина тарифов --- */
.sv-hero { padding-bottom: 14px; }
.sv-section { flex: 1; padding: 6px 24px 24px; font: 13px Verdana, Tahoma, sans-serif; }
.sv-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sv-tier-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid #d5ddef; border-radius: 10px; background: #fff; font: inherit; text-align: left; color: #333; cursor: pointer; }
.sv-tier-card:hover { border-color: #9fb3dc; background: #f7faff; }
.sv-tier-card > img { flex: none; }
.sv-tier-card div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sv-tier-card b { color: #173f9e; font-size: 16px; }
.sv-tier-card span { color: #666; font-size: 11px; line-height: 1.35; }
.sv-tier-card small { color: #1a7f1a; font-weight: bold; }
.sv-tier-card.on { border-color: #2c62d9; background: linear-gradient(180deg, #f0f5ff, #e2ecff); box-shadow: 0 2px 8px rgba(44, 98, 217, .18); }
.sv-tier-card.tier-offshore.on { border-color: #0d8a7a; background: linear-gradient(180deg, #effbf9, #ddf4f0); box-shadow: 0 2px 8px rgba(13, 138, 122, .18); }
.sv-tier-card.tier-bulletproof.on { border-color: #4a4f5c; background: linear-gradient(180deg, #f4f5f7, #e3e5ea); box-shadow: 0 2px 8px rgba(30, 30, 40, .2); }
.sv-tier-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px 10px 0 0; background: linear-gradient(135deg, #0b2c8c 0%, #2f6fe0 100%); color: #fff; }
.sv-tier-head.tier-offshore { background: linear-gradient(135deg, #075a50 0%, #11a08c 100%); }
.sv-tier-head.tier-bulletproof { background: linear-gradient(135deg, #1b1e26 0%, #4a4f5c 100%); }
.sv-tier-head > div { flex: 1; min-width: 0; }
.sv-tier-head h2 { margin: 0 0 4px; font: bold 22px var(--font-title); letter-spacing: .3px; }
.sv-tier-head p { margin: 0; opacity: .92; line-height: 1.45; }
.sv-soon { flex: none; padding: 3px 10px; border-radius: 10px; background: #ffd24a; color: #5a3d00; font: bold 11px Verdana, Tahoma, sans-serif; text-transform: uppercase; }
.sv-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; padding: 14px 16px; border: 1px solid #d5ddef; border-top: 0; border-radius: 0 0 10px 10px; background: #fafcff; }
.sv-feature { display: flex; align-items: flex-start; gap: 8px; }
.sv-feature > img { flex: none; margin-top: 1px; }
.sv-feature div { display: flex; flex-direction: column; }
.sv-feature b { color: #1d2b4a; }
.sv-feature span { color: #666; font-size: 11px; }
.sv-rules { margin-top: 12px; padding: 12px 14px; border: 2px solid #d0382b; border-radius: 8px; background: #fff1ee; color: #8a1f10; }
.sv-rules-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #b42318; font-size: 14px; text-transform: uppercase; }
.sv-rules ul { margin: 0; padding-left: 20px; line-height: 1.55; font-weight: bold; }
.sv-rules-original { margin: 8px 0 0; color: #b42318; font: italic 11px Verdana, Tahoma, sans-serif; }
.sv-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 12px; }
.sv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sv-row-label { color: #555; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #b9c8ea; border-radius: 16px; background: #fff; color: #2c4f9e; font: 12px Verdana, Tahoma, sans-serif; cursor: pointer; }
.sv-chip small { color: #888; }
.sv-chip:hover { border-color: #2c62d9; }
.sv-chip.on { border-color: #2c62d9; background: #2c62d9; color: #fff; }
.sv-chip.on small { color: #d6e2ff; }
.sv-chip.static { cursor: default; }
.sv-seg { display: inline-flex; border: 1px solid #9fb3dc; border-radius: 6px; overflow: hidden; }
.sv-seg button { position: relative; padding: 6px 14px; border: 0; border-left: 1px solid #c6d2ec; background: #fff; color: #2c4f9e; font: 12px Verdana, Tahoma, sans-serif; cursor: pointer; }
.sv-seg button:first-child { border-left: 0; }
.sv-seg button.on { background: linear-gradient(180deg, #ffb24a, #f07400); color: #fff; font-weight: bold; }
.sv-seg em { margin-left: 5px; padding: 0 4px; border-radius: 6px; background: #dff3dc; color: #1a7f1a; font: bold 10px Verdana, Tahoma, sans-serif; font-style: normal; }
.sv-seg button.on em { background: rgba(255, 255, 255, .25); color: #fff; }
.sv-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sv-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #d5ddef; border-radius: 10px; background: #fff; }
.sv-plan:hover { border-color: #9fb3dc; box-shadow: 0 3px 10px rgba(23, 63, 158, .1); }
.sv-plan.featured { border-color: #ff9a2e; box-shadow: 0 0 0 1px #ff9a2e inset; }
.sv-plan h3 { margin: 0; color: #173f9e; font: bold 17px var(--font-title); }
.sv-plan ul { margin: 0; padding: 0; list-style: none; line-height: 1.75; color: #333; }
.sv-plan li::before { content: "✓ "; color: #1a7f1a; font-weight: bold; }
/* характеристики тарифа: значок вместо галочки */
.sv-plan .sv-specs li { display: flex; align-items: center; gap: 7px; }
.sv-plan .sv-specs li::before { content: none; }
.sv-plan .sv-specs .icon { flex: none; }
.sv-price b { color: #1a7f1a; font-size: 24px; }
.sv-price span { color: #666; }
.sv-total { min-height: 15px; color: #777; font-size: 11px; }
.sv-order { height: 36px; margin-top: auto; border-radius: 6px; }
.sv-order:disabled { background: #d8dde6; border-color: #b8c0cc; color: #6a7280; text-shadow: none; }

/* --- серверы: мои серверы --- */
.sv-card .md-name { gap: 6px 8px; }
.sv-badge { padding: 1px 8px; border-radius: 9px; background: #e2ecff; color: #1d4fc0; font: bold 10px Verdana, Tahoma, sans-serif; text-transform: uppercase; }
.sv-badge.tier-offshore { background: #ddf4f0; color: #075a50; }
.sv-badge.tier-bulletproof { background: #e3e5ea; color: #1b1e26; }
.sv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #555; }
.sv-ip { padding: 1px 6px; border: 1px dashed #9fb3dc; border-radius: 4px; background: #f3f7ff; color: #173f9e; font: bold 12px Consolas, monospace; cursor: pointer; }
.sv-ip:hover { border-style: solid; }
.sv-loc { display: inline-flex; align-items: center; gap: 4px; }

/* --- мастер заказа сервера --- */
.so-banner.tier-offshore { background: linear-gradient(160deg, #053d36 0%, #0f8f7d 55%, #64cbbd 100%); }
.so-banner.tier-bulletproof { background: linear-gradient(160deg, #111318 0%, #3a3f4b 55%, #7d8494 100%); }
.so-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.so-specs span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: #eef3fd; color: #2c4f9e; }
.so-periods { display: grid; gap: 4px; margin-bottom: 12px; }
.so-period { display: grid; grid-template-columns: auto 80px auto 1fr; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #d5ddef; border-radius: 6px; cursor: pointer; }
.so-period:has(input:checked) { border-color: #2c62d9; background: #f0f5ff; }
.so-period b { color: #1a7f1a; }
.so-period small { color: #777; }
.so-name input { max-width: 260px; }
.so-name input.invalid { border-color: #d0382b; background: #fff3f1; }
.so-os fieldset { margin: 0 0 8px; }
.so-os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
.so-os-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.so-os-item:hover { background: #f0f5ff; }
.so-os-item:has(input:checked) { border-color: #2c62d9; background: #e2ecff; }
.so-cred { display: grid; gap: 6px; margin: 6px 0 10px; padding: 10px 12px; border: 1px solid #f0d58a; border-radius: 6px; background: #fffbea; }
.so-cred-title { display: flex; align-items: center; gap: 6px; }
.so-cred small { color: #6b4a00; }
.so-pass { font: bold 13px Consolas, monospace; }
.so-note { color: #555; }

/* --- управление сервером --- */
.sp-props .tab-panel { overflow: auto; }
.sp-tab { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; line-height: 1.45; }
.sp-tab p { margin: 0; }
.sp-tab code { padding: 1px 5px; border: 1px solid #d4d0c8; background: #fff; font: 12px Consolas, monospace; }
.sp-power { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sp-power .btn, .sp-left .btn { display: inline-flex; align-items: center; gap: 5px; }
.sp-left { justify-content: flex-start; }
.sp-warn { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #8a1f10; }
.sp-danger { color: #b42318; font-weight: bold; }
.sp-rdns { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 6px; }
.sp-rdns small { grid-column: 2 / -1; color: #777; }

/* --- правила использования --- */
.sv-aup-dialog { display: flex; flex-direction: column; gap: 10px; padding: 12px; line-height: 1.45; }
.sv-aup-head { display: flex; align-items: center; gap: 10px; }
.sv-aup-head span { display: block; color: #666; }
.sv-aup-dialog ul { margin: 0; padding-left: 18px; }
.link.light { color: inherit; text-decoration: underline; }

@media (max-width: 700px) {
  .sv-section { padding-left: 12px; padding-right: 12px; }
  .sv-tiers { grid-template-columns: 1fr; }
  .sv-tier-head { flex-wrap: wrap; }
  .sv-controls { flex-direction: column; align-items: flex-start; }
  .sp-rdns { grid-template-columns: 1fr auto; }
  .sp-rdns b { grid-column: 1 / -1; }
}

/* --- сервер: данные для входа --- */
.sp-cred fieldset { margin: 0; }
.sp-cred-pass { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sp-cred-pass code { padding: 1px 6px; border: 1px solid #d4d0c8; background: #fff; font: bold 12px Consolas, monospace; letter-spacing: .3px; }

/* --- оформление заказа: режим DNS --- */
.dns-modes { display: grid; gap: 6px; }
.dns-mode { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid #d4d0c8; border-radius: 4px; background: #fff; cursor: pointer; }
.dns-mode:has(input:checked) { border-color: #2c62d9; background: #f0f5ff; }
.dns-mode input { margin-top: 2px; }
.dns-mode > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.dns-mode small { color: #555; }
.dns-mode em { margin-left: 8px; font-style: normal; }
.dns-mode.disabled { cursor: default; opacity: .65; }
.dns-custom { margin: -2px 0 2px 26px; }
.dns-custom .wz-grid { margin-bottom: 4px; }

/* --- Cloudflare: вкладка управления доменом --- */
.cf-tab { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; line-height: 1.45; }
.cf-tab p { margin: 0; }
.cf-intro { display: flex; align-items: flex-start; gap: 10px; }
.cf-intro b { display: block; margin-bottom: 2px; color: #173f9e; }
.cf-intro p { color: #444; }
.cf-benefits { margin: 0; padding-left: 18px; line-height: 1.6; color: #333; }
.cf-benefits li::marker { color: #f6821f; }
.cf-left { justify-content: flex-start; }
.cf-login fieldset { margin: 0; }
.cf-status { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; }
.cf-status.ok { background: #eef8ec; color: #1a7f1a; }
.cf-status.wait { background: #fff8e6; color: #8a5a00; }
.cf-records-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.cf-records-head b { color: #173f9e; }
.cf-records { border: 1px solid #d4d0c8; max-height: 210px; overflow: auto; }
.cf-table { width: 100%; table-layout: auto; }
.cf-table th:last-child, .cf-table td:last-child { width: 1%; white-space: nowrap; }
.cf-table th { position: sticky; top: 0; }
.cf-table td { vertical-align: top; }
.cf-table .cf-name { font-weight: bold; color: #173f9e; }
.cf-table .cf-val { overflow-wrap: anywhere; white-space: normal; }
.cf-proxy .pill { font-size: 10px; }
.cf-proxy .pill:not(.ok) { background: #e6e6e6; color: #777; }
.cf-table .cf-row-actions { width: 1%; white-space: nowrap; overflow: visible; text-overflow: clip; }
.cf-acts { display: inline-flex; gap: 10px; }
.cf-table th:first-child, .cf-table td:first-child { width: 48px; }
.cf-table .cf-proxy { width: 52px; }
.cf-empty { padding: 12px; color: #777; text-align: center; }
.cf-hint { color: #777; font-size: 11px; line-height: 1.4; }
.cf-record-form { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.cf-record-form .hs-field { margin: 0; }
.cf-proxy-row { margin-top: 2px; }

/* --- заказ: Cloudflare в результате --- */
.wz-cf-ok { color: #1a7f1a; }
.wz-cf-err { color: #b42318; }
.wz-cf-hint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 10px 0; padding: 8px 10px; border: 1px solid #b7c9ee; border-radius: 6px; background: #eef4ff; color: #1d3f8f; font-size: 12px; line-height: 1.4; }

/* --- админка: Cloudflare --- */
.cf-import { width: 100%; min-height: 120px; font: 12px Consolas, monospace; }

/* --- поиск: «Показать ещё свободные» --- */
.show-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 6px; }
/* обычная кнопка XP (как «OK» в окнах), чуть крупнее */
.show-more .show-more-btn { min-width: 200px; height: 26px; padding: 0 16px; font: 12px Tahoma, sans-serif; }
.show-more-note { margin: 0; color: #555; font: 12px Verdana, Tahoma, sans-serif; text-align: center; }
.show-more-count { color: #888; font: 11px Tahoma, sans-serif; }

/* --- управление доменом: «Владелец» — данные защищены --- */
.prop-owner.privacy { display: flex; flex-direction: column; gap: 12px; padding: 6px 4px; line-height: 1.45; }
.privacy-head { display: flex; align-items: flex-start; gap: 12px; }
.privacy-head b { display: block; margin-bottom: 4px; color: #173f9e; font-size: 13px; }
.privacy-head p { margin: 0; color: #333; }
.privacy-list { margin: 0; padding: 10px 12px 10px 28px; border: 1px solid #c5d6f2; border-radius: 6px; background: #f2f7ff; color: #1d3f8f; }
.privacy-list li { margin: 2px 0; }

/* --- ICQ: список обращений --- */
.icq-window .window-body, .icq-chat-window .window-body { background: #fff; }
.icq { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, #f4fbef 0%, #fff 120px); }
.icq-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #cfe5c4; background: linear-gradient(180deg, #e3f6d6, #c8eab3); }
.icq-head b { display: block; color: #1f5f17; font: bold 14px Tahoma, sans-serif; }
.icq-online { display: flex; align-items: center; gap: 5px; color: #2e7d22; font-size: 11px; }
.icq-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3cc32c; box-shadow: 0 0 0 2px #d4f5c9; }
.icq-tools { display: flex; align-items: center; padding: 6px 8px; border-bottom: 1px solid #e3eadf; }
.icq-new { display: inline-flex; align-items: center; gap: 6px; width: 100%; justify-content: center; }
.icq-tools-note { color: #777; font-size: 11px; }
.icq-list { flex: 1; overflow: auto; padding: 4px 0; }
.icq-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 24px 14px; color: #666; text-align: center; line-height: 1.4; }
.icq-empty p { margin: 0; }
.icq-group-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 8px; border: 0; background: none; color: #1f5f17; font: bold 11px Tahoma, sans-serif; text-align: left; cursor: pointer; }
.icq-group-head:hover { background: #eef8e8; }
.icq-arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #3a7d2e; }
.icq-group.collapsed .icq-arrow { border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #3a7d2e; border-right: 0; }
.icq-contact { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 20px; cursor: default; outline: none; }
.icq-contact:hover { background: #f0f7ff; }
.icq-contact.selected, .icq-contact:focus-visible { background: var(--select, #316ac5); color: #fff; }
.icq-contact.selected small, .icq-contact:focus-visible small { color: #e2ebff; }
.icq-contact-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.icq-contact-text b, .icq-contact-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.icq-contact-text b { font-weight: normal; }
.icq-contact.unread .icq-contact-text b { font-weight: bold; }
.icq-contact-text small { color: #777; }
.icq-contact.closed { opacity: .7; }
.icq-badge { min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #e8463b; color: #fff; font: bold 10px Tahoma, sans-serif; text-align: center; }
.icq-time { color: #999; font-size: 10px; }
.icq-blink { animation: icq-blink 1.2s steps(1) infinite; }
@keyframes icq-blink { 50% { opacity: .25; } }
.icq-foot { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; border-top: 1px solid #e3eadf; background: #f8faf6; font-size: 11px; }
.icq-notify-on { color: #2e7d22; }
.icq-tg { display: inline-flex; align-items: center; gap: 5px; color: #1c79c4; text-decoration: none; }
.icq-tg:hover { text-decoration: underline; }
.icq-hint { flex: 1; color: #888; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .icq-blink { animation: none; } }

/* --- ICQ: новое обращение --- */
.icq-new-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.icq-new-form .hs-field { margin: 0; }
.icq-new-form textarea { resize: vertical; min-height: 110px; }
.icq-new-to { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #e5e2d3; }
.icq-new-form .btn-row { align-items: center; }

/* --- ICQ: переписка --- */
.icq-chat { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px; box-sizing: border-box; background: #ece9d8; }
.icq-chat-info { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border: 1px solid #c9c4ad; border-radius: 4px; background: #fffef6; }
.icq-chat-info small { color: #666; }
.icq-chat-subject { display: flex; align-items: center; gap: 8px; }
.icq-chat-subject b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.icq-status { padding: 1px 8px; border-radius: 8px; font: bold 10px Tahoma, sans-serif; }
.icq-status.open { background: #fff1cc; color: #8a5a00; }
.icq-status.answered { background: #e3f6d6; color: #1f6e17; }
.icq-status.closed { background: #e6e6e6; color: #666; }
.icq-log { flex: 1; min-height: 120px; overflow: auto; padding: 8px 10px; border: 1px solid #7f9db9; background: #fff; }
.icq-msg { margin-bottom: 10px; }
.icq-msg-head { display: flex; gap: 8px; align-items: baseline; font-size: 11px; }
.icq-msg-head span { color: #888; }
.icq-msg.mine .icq-msg-head b { color: #1d4fc0; }
.icq-msg.theirs .icq-msg-head b { color: #c0281e; }
.icq-msg-body { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.icq-closed-note { margin: 6px 0 0; padding: 6px 8px; border-radius: 4px; background: #f3f3f3; color: #666; font-size: 11px; }
.icq-input { width: 100%; box-sizing: border-box; resize: vertical; min-height: 60px; }
.icq-chat-buttons { display: flex; align-items: center; gap: 8px; }

/* --- кошелёк: онлайн-оплата --- */
.wallet-method .btn.small { flex: none; }
.wallet-invoice { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid #e5e2d3; }
.wallet-invoice:last-child { border-bottom: 0; }
.wallet-invoice > span { flex: 1; display: flex; flex-direction: column; }
.wallet-invoice small { color: #666; }
.topup-methods { display: flex; flex-direction: column; }
label.topup-method { cursor: pointer; }
label.topup-method.disabled { cursor: default; }
.topup-method input[type="radio"] { margin: 0 2px 0 0; }
.invoice { display: flex; flex-direction: column; gap: 8px; padding: 12px; line-height: 1.4; }
.invoice p { margin: 0; }
.invoice-head { display: flex; align-items: center; gap: 10px; }
.invoice-head b { display: block; font-size: 14px; }
.invoice-head small { color: #666; }
.invoice-status { padding: 8px 10px; border-radius: 5px; background: #fff8e6; color: #8a5a00; }
.invoice-status.paid { background: #eef8ec; color: #1a7f1a; font-weight: bold; }
.invoice-status.expired, .invoice-status.failed { background: #f3f3f3; color: #666; }

/* --- управление доменом: подсказка про время применения DNS --- */
.ns-wait { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; padding: 8px 10px; border: 1px solid #e3c766; border-radius: 3px; background: #fffbe2; color: #5a3d00; line-height: 1.45; }
.ns-wait .icon { flex: none; margin-top: 1px; }

/* --- окно «API» --- */
.api-info { display: grid; gap: 10px; padding: 14px 16px 12px; }
.api-head { display: flex; align-items: center; gap: 12px; }
.api-head b { display: block; font: bold 15px var(--font-title); color: #173f9e; }
.api-head span { color: #555; }
.api-info p { margin: 0; line-height: 1.5; }
.api-note { display: flex; align-items: flex-start; gap: 7px; padding: 8px 10px; border: 1px solid #e3c766; border-radius: 3px; background: #fffbe2; color: #5a3d00; line-height: 1.45; }
.api-note .icon { flex: none; margin-top: 1px; }
.api-buttons { margin-top: 4px; }

/* --- кошелёк: тестовый режим платежей --- */
.test-tag { display: inline-block; padding: 0 6px; border-radius: 8px; background: #ffe2a6; color: #8a4b00; font-size: 10px; font-weight: bold; line-height: 16px; }
