/* Client settings panel — cyberpunk sci-fi */

body.hv-cset-open {
  overflow: hidden;
}

.hv-cset-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hv-cset-overlay[hidden] {
  display: none !important;
}

.hv-cset-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(620px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.05) 0%, transparent 28%),
    linear-gradient(135deg, rgba(8, 14, 28, 0.97) 0%, rgba(4, 8, 18, 0.98) 100%);
  border: 1px solid rgba(0, 255, 255, 0.24);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow:
    0 0 0 1px rgba(255, 0, 128, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 255, 255, 0.12);
}

.hv-cset-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hv-cset-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 255, 255, 0.75);
  border-style: solid;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.45));
}

.hv-cset-corner-tl { top: 5px; left: 5px; border-width: 2px 0 0 2px; }
.hv-cset-corner-tr { top: 5px; right: 5px; border-width: 2px 2px 0 0; }
.hv-cset-corner-bl { bottom: 5px; left: 5px; border-width: 0 0 2px 2px; }
.hv-cset-corner-br { bottom: 5px; right: 5px; border-width: 0 2px 2px 0; }

.hv-cset-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.022) 2px,
    rgba(0, 255, 255, 0.022) 4px
  );
  opacity: 0.45;
  animation: hvCsetScan 7s linear infinite;
}

@keyframes hvCsetScan {
  from { transform: translateY(0); }
  to { transform: translateY(10px); }
}

.hv-cset-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.14);
}

.hv-cset-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid rgba(255, 0, 128, 0.45);
  background: rgba(255, 0, 128, 0.1);
  color: #ff6eb4;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hv-cset-header h2 {
  margin: 0;
  flex: 1;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dffcff;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.22);
}

.hv-cset-status {
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(125, 211, 252, 0.75);
  letter-spacing: 0.04em;
}

.hv-cset-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #e8f4ff;
  cursor: pointer;
  padding: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.hv-cset-close .hv-icon {
  width: 16px;
  height: 16px;
}

.hv-cset-close:hover {
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.hv-cset-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex: 1;
}

.hv-cset-nav {
  flex-shrink: 0;
  width: 148px;
  padding: 12px 8px;
  border-right: 1px solid rgba(0, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 6, 14, 0.45);
}

.hv-cset-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(200, 230, 255, 0.78);
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hv-cset-nav-btn:hover {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(0, 255, 255, 0.18);
  color: #e8f4ff;
}

.hv-cset-nav-btn.is-active {
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.12), transparent);
  border-color: rgba(0, 255, 255, 0.35);
  color: #00ffff;
  box-shadow: inset 3px 0 0 #00ffff;
}

.hv-cset-nav-icon {
  width: 20px;
  height: 20px;
  color: #ff6eb4;
  flex-shrink: 0;
}

.hv-cset-pages {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.55) rgba(0, 255, 255, 0.06);
}

.hv-cset-page {
  display: none;
}

.hv-cset-page.is-active {
  display: block;
}

.hv-cset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hv-cset-row:last-child {
  border-bottom: none;
}

.hv-cset-row-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.hv-cset-row-meta {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 58%;
}

.hv-cset-row-label {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dffcff;
}

.hv-cset-row-hint {
  display: block;
  margin-top: 3px;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(160, 190, 210, 0.75);
  line-height: 1.3;
}

.hv-cset-input {
  width: 96px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 2px;
  background: rgba(4, 10, 18, 0.96);
  color: #e8f4ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.hv-cset-input:focus {
  outline: none;
  border-color: rgba(0, 255, 255, 0.55);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

.hv-cset-range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.hv-cset-range {
  flex: 1;
  accent-color: #00ffff;
}

.hv-cset-range-val {
  min-width: 44px;
  text-align: right;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #67e8f9;
}

.hv-cset-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.hv-cset-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hv-cset-toggle-ui {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(4, 10, 18, 0.95);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hv-cset-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: rgba(160, 190, 210, 0.85);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 3px 100%, 0 calc(100% - 3px));
  transition: transform 0.15s, background 0.15s;
}

.hv-cset-toggle input:checked + .hv-cset-toggle-ui {
  border-color: rgba(0, 255, 255, 0.55);
  background: rgba(0, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.hv-cset-toggle input:checked + .hv-cset-toggle-ui::after {
  transform: translateX(20px);
  background: #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.65);
}

.hv-cset-fps-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-cset-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(4, 10, 18, 0.85);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #c8e6ff;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.hv-cset-radio:has(input:checked) {
  border-color: rgba(0, 255, 255, 0.55);
  color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

.hv-cset-radio input {
  accent-color: #00ffff;
}

.hv-cset-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(0, 6, 14, 0.55);
}

.hv-cset-btn {
  padding: 8px 18px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 36, 52, 0.96), rgba(28, 0, 44, 0.96));
  color: #e0ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.hv-cset-btn-primary {
  border-color: rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}

.hv-cset-btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.85);
  color: rgba(200, 220, 240, 0.85);
}

.hv-cset-btn:hover {
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.22);
}

@media (max-width: 640px) {
  .hv-cset-body {
    flex-direction: column;
  }

  .hv-cset-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  }

  .hv-cset-nav-btn {
    flex: 1 1 calc(50% - 6px);
  }
}

.hv-cset-row-control {
  flex: 0 0 auto;
  min-width: 0;
}

.hv-cset-page-account {
  max-width: 360px;
}

.hv-cset-account-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0 4px;
}

.hv-cset-account-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-cset-account-title {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dffcff;
}

.hv-cset-account-desc {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(160, 190, 210, 0.78);
}

.hv-cset-flag-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.hv-cset-flag-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(4, 10, 18, 0.75);
  min-height: 34px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hv-cset-flag-selected:hover {
  border-color: rgba(0, 255, 255, 0.38);
  background: rgba(6, 16, 26, 0.88);
}

.hv-cset-flag-selected-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hv-cset-flag-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(160, 220, 240, 0.72);
  transition: transform 0.18s ease;
}

.hv-cset-flag-picker.is-open .hv-cset-flag-chevron {
  transform: rotate(180deg);
}

.hv-cset-flag-dropdown {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.hv-cset-flag-picker.is-open .hv-cset-flag-dropdown {
  display: flex;
}

.hv-cset-flag-selected .flagico {
  flex-shrink: 0;
}

.hv-cset-flag-name {
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
  color: #d8f4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-cset-flag-placeholder {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: rgba(160, 200, 220, 0.55);
}

.hv-cset-flag-search {
  width: 100%;
}

.hv-cset-flag-list {
  max-height: 168px;
  overflow-y: auto;
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(2, 8, 14, 0.92);
}

.hv-cset-flag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #c8e8f8;
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.hv-cset-flag-option:hover,
.hv-cset-flag-option.is-selected {
  background: rgba(0, 255, 255, 0.12);
}

.hv-cset-flag-empty {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  color: rgba(180, 210, 230, 0.6);
}

.hv-cset-info-block {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.hv-cset-info-block:last-of-type {
  border-bottom: none;
}

.hv-cset-info-title {
  margin: 0 0 10px;
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(0, 255, 255, 0.75);
  text-transform: uppercase;
}

.hv-cset-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
}

.hv-cset-info-label {
  color: rgba(160, 190, 210, 0.75);
}

.hv-cset-info-value {
  color: #e8f8ff;
  text-align: right;
}

.hv-cset-info-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hv-cset-info-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(160, 190, 210, 0.65);
  font-family: Rajdhani, sans-serif;
}

.hv-cset-page-info {
  padding-top: 4px;
}
