.dash-nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--accent-bright);
  border-radius: 4px;
  vertical-align: middle;
}

.cfx-window-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cfx-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cfx-lead {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cfx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cfx-search {
  border: 1px solid var(--border-inner);
  background: rgba(10, 10, 10, 0.75);
  padding: 12px;
}

.cfx-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cfx-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cfx-input {
  min-height: 40px;
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text);
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
}

.cfx-input:focus {
  outline: none;
  border-color: rgba(139, 195, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.12);
}

.cfx-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.cfx-status--error {
  color: #ef4444;
}

.cfx-results {
  display: grid;
  gap: 12px;
}

.cfx-empty {
  border: 1px dashed rgba(139, 195, 74, 0.35);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.cfx-offline-note {
  border: 1px solid rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.06);
  padding: 10px 12px;
  font-size: 13px;
}

.cfx-offline-note strong {
  color: #ffe082;
}

.cfx-offline-codes {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cfx-card {
  border: 1px solid var(--border-inner);
  background: rgba(10, 10, 10, 0.8);
  padding: 12px;
}

.cfx-media {
  position: relative;
  height: 140px;
  border: 1px solid var(--border-inner);
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(160deg, #111, #0b0b0b);
}

.cfx-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfx-icon {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cfx-media .is-hidden {
  display: none;
}

.cfx-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.cfx-name {
  font-size: 16px;
  margin-bottom: 2px;
}

.cfx-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.cfx-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.cfx-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cfx-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(139, 195, 74, 0.3);
  background: rgba(139, 195, 74, 0.08);
  color: var(--accent-bright);
}

.cfx-tag--muted {
  color: var(--text-muted);
  border-color: var(--border-inner);
  background: transparent;
}

.cfx-tag--bahu {
  color: #ffe082;
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.12);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
}

.cfx-pill {
  border: 1px solid rgba(139, 195, 74, 0.35);
  color: var(--accent-bright);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  white-space: nowrap;
}

.cfx-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cfx-info {
  border: 1px solid var(--border-inner);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
}

.cfx-info-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.cfx-info-v {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cfx-info--endpoint {
  grid-column: span 2;
}

.cfx-browserv2 {
  margin-top: 10px;
}

.cfx-browserv2-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(139, 195, 74, 0.35);
  background: rgba(139, 195, 74, 0.08);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.cfx-browserv2-btn:hover,
.cfx-browserv2-btn.copied {
  border-color: rgba(139, 195, 74, 0.55);
  background: rgba(139, 195, 74, 0.14);
}

.cfx-browserv2-cmd {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--accent-bright);
}

.cfx-browserv2-copy {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.cfx-browserv2-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.cfx-join,
.cfx-owner {
  color: var(--accent-bright);
  text-decoration: none;
}

.cfx-players-wrap {
  margin-top: 10px;
  border: 1px solid var(--border-inner);
}

.cfx-players-wrap > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  font-weight: 600;
  font-size: 13px;
}

.cfx-players-wrap > summary::-webkit-details-marker {
  display: none;
}

.cfx-players-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border-inner);
  border-bottom: 1px solid var(--border-inner);
}

.cfx-players-search {
  min-width: 180px;
  flex: 1;
  max-width: 320px;
  min-height: 34px;
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}

.cfx-players-info {
  font-size: 12px;
  color: var(--text-muted);
}

.cfx-table-wrap {
  max-height: 280px;
  overflow: auto;
}

.cfx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cfx-table th,
.cfx-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-inner);
  text-align: left;
}

.cfx-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  background: #101010;
}

.cfx-combined {
  border: 1px solid var(--border-inner);
  padding: 10px;
}

.cfx-server-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cfx-server-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.cfx-ping-wrap {
  margin-top: 10px;
  border: 1px solid var(--border-inner);
}

.cfx-ping-wrap > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.25);
}

.cfx-ping-wrap > summary::-webkit-details-marker {
  display: none;
}

.cfx-ping-wrap .cfx-live {
  margin: 10px;
}

.cfx-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border-inner);
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
}

.cfx-live-left,
.cfx-live-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfx-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.cfx-live-dot--up {
  background: #38d89f;
  box-shadow: 0 0 0 3px rgba(56, 216, 159, 0.15);
}

.cfx-live-dot--down {
  background: #ff7b7b;
  box-shadow: 0 0 0 3px rgba(255, 123, 123, 0.15);
}

.cfx-live-dot--unknown {
  background: #d2b26a;
  box-shadow: 0 0 0 3px rgba(210, 178, 106, 0.15);
}

.cfx-live-status,
.cfx-live-ms {
  font-size: 12px;
  font-weight: 700;
}

.cfx-live-loss {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .cfx-search-row {
    grid-template-columns: 1fr;
  }

  .cfx-grid {
    grid-template-columns: 1fr;
  }

  .cfx-top {
    flex-direction: column;
  }

  .cfx-live {
    flex-direction: column;
    align-items: flex-start;
  }
}
