/**
 * CoreV2 server card head — tek kaynak (server.css thrash YOK)
 * font-weight: 700 (tema aylar bölümü ile uyumlu, 800 değil)
 *
 * SOL:  Ülke (700) + Lokasyonu (400)
 *       Başlık (600)
 * SAĞ:  pin + LED (aynı genişlik, iç içe, sol metinle dikey orta)
 */
/* Eski .srv-head-block paneli — soft bg + border + sol yarı çizgi + üst rozet */
.cv2-srvhead {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* Hosting pack-head-row: rozet yarı dış — üstte nefes (stack padding ile) */
  margin: 0 0 6px;
  padding: 12px 10px 8px;
  border-radius: 10px;
  background: rgba(var(--srv-primary-rgb, var(--CoreV2-primary-rgb, var(--cv2-primary-rgb, 99, 91, 255))), 0.06);
  border: 1px solid rgba(var(--srv-primary-rgb, var(--CoreV2-primary-rgb, var(--cv2-primary-rgb, 99, 91, 255))), 0.10);
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

/* Sol yarı çizgi (pack-head-row::before gibi — 1.5px iç / 1.5px dış) */
.cv2-srvhead::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  border-radius: 0 5px 5px 0;
  background: var(--srv-primary, var(--cv2-primary, var(--CoreV2-primary, #6366f1)));
  z-index: 3;
  pointer-events: none;
  box-shadow: none;
}

/*
 * Popüler / Özel Fiyat — hosting pack-head-badge-slot ile AYNI:
 * top:0 + translate(-50%,-50%) = üst kenarda tam yarı iç / yarı dış
 * (sabit top:-14px badge yüksekliğine bağımlı kalırdı)
 */
.cv2-srvhead > .srv-head-badge-slot,
.coreservercart-server-item .cv2-srvhead > .srv-head-badge-slot,
.coreservercart-server-item .srv-head-badge-slot,
.coreservercart-server-item .pack-head-badge-slot {
  display: flex;
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 20px);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

/* Stack: hosting pack padding-top gibi — dış yarı kart içinde kalsın (container clip yok) */
.srv-head-stack,
.coreservercart-card-front .srv-head-stack {
  position: relative;
  overflow: visible;
  padding-top: 16px;
  margin-top: 0;
  box-sizing: border-box;
}

.coreservercart-server-item.popular-highlight .cv2-srvhead {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}
.coreservercart-server-item.popular-highlight .cv2-srvhead::before {
  background: rgba(255, 255, 255, 0.92);
}
/* Parent clip thrash engeli — rozet disari tassin */
.coreservercart-server-item,
.coreservercart-card-inner,
.coreservercart-card-front,
.srv-head-stack,
.coreservercart-server-left {
  overflow: visible;
}

.cv2-srvhead__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cv2-srvhead__left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Lokasyon biraz daha küçük */
.cv2-srvhead__loc {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.28em;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.cv2-srvhead__loc-name {
  display: inline;
  font-size: 12.5px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--srv-primary, var(--cv2-primary, #6366f1));
  line-height: 1.2;
}

.cv2-srvhead__loc-tag {
  display: inline;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary, #64748b);
  line-height: 1.2;
}

/* Başlık: biraz daha büyük + kalın */
.cv2-srvhead__title,
h3.cv2-srvhead__title.coreservercart-h3,
.cv2-srvhead h3.cv2-srvhead__title.coreservercart-h3,
.coreservercart-server-item .cv2-srvhead h3.coreservercart-h3 {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(1.12rem, 4cqi, 1.32rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1e266d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  text-transform: none;
}

/* Sağ: tek kolon, pin + LED eşit eksen, sol metinle orta */
.cv2-srvhead__right {
  --cv2-srv-sig-w: 34px;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: var(--cv2-srv-sig-w);
  min-width: var(--cv2-srv-sig-w);
  margin: 0;
  padding: 0;
  justify-self: end;
  align-self: center;
  line-height: 0;
  position: relative;
}

.cv2-srvhead__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cv2-srv-sig-w);
  height: var(--cv2-srv-sig-w);
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(var(--cv2-primary-rgb, 99, 91, 255), 0.1);
  border: 1px solid rgba(var(--cv2-primary-rgb, 99, 91, 255), 0.2);
  color: var(--cv2-primary, #6366f1);
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  /* birazcık daha yukarı */
  transform: translateY(-6px);
}

.cv2-srvhead__pin svg {
  display: block;
  width: 15px;
  height: 15px;
}

.cv2-srvhead__signal {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: var(--cv2-srv-sig-w);
  min-width: var(--cv2-srv-sig-w);
  max-width: var(--cv2-srv-sig-w);
  height: 18px;
  margin: -8px 0 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(var(--cv2-primary-rgb, 99, 91, 255), 0.1);
  border: 1px solid rgba(var(--cv2-primary-rgb, 99, 91, 255), 0.16);
  box-sizing: border-box;
  line-height: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cv2-srvhead__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-style: normal;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  flex: 0 0 auto;
}

.cv2-srvhead__dot--g { background: #22c55e; }
.cv2-srvhead__dot--a { background: #f59e0b; }
.cv2-srvhead__dot--b { background: #38bdf8; }

.coreservercart-server-item.popular-highlight .cv2-srvhead__loc-name {
  color: #fff;
}
.coreservercart-server-item.popular-highlight .cv2-srvhead__loc-tag {
  color: rgba(255, 255, 255, 0.8);
}
.coreservercart-server-item.popular-highlight .cv2-srvhead__title,
.coreservercart-server-item.popular-highlight h3.cv2-srvhead__title,
.coreservercart-server-item.popular-highlight h3.cv2-srvhead__title.coreservercart-h3,
.coreservercart-server-item.popular-highlight .cv2-srvhead h3.coreservercart-h3 {
  color: #fff;
}
.coreservercart-server-item.popular-highlight .cv2-srvhead__pin {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.coreservercart-server-item.popular-highlight .cv2-srvhead__signal {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .cv2-srvhead__title,
[data-theme="dark"] h3.cv2-srvhead__title {
  color: #f1f5f9;
}
[data-theme="dark"] .cv2-srvhead__loc-tag {
  color: #94a3b8;
}
