.tg-public-header {
  width: min(1500px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 18px 0 22px !important;
  position: relative;
  z-index: 50;
}
.tg-topbar,
.tg-productbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(38,50,68,.92);
  border-radius: 26px;
  background: linear-gradient(180deg,rgba(11,19,30,.96),rgba(7,13,22,.94));
  box-shadow: 0 18px 54px rgba(0,0,0,.34);
}
.tg-topbar { justify-content: space-between; }
.tg-productbar { justify-content: space-between; margin-top: 12px; }
.tg-brand,
.tg-productbrand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  text-decoration: none;
}
.tg-brand:hover,
.tg-productbrand:hover { text-decoration: none; }
.tg-brand img { width: 58px; height: 58px; object-fit: contain; }
.tg-productbrand img { width: 38px; height: 38px; object-fit: contain; }
.tg-brandcopy { display: grid; gap: 3px; }
.tg-brandtitle { color: #28aef3; font-size: 23px; font-weight: 950; line-height: 1; }
.tg-brandsubtitle { color: #ec971c; font-size: 12px; font-weight: 850; }
.tg-productbrand span { font-weight: 950; }
.tg-nav,
.tg-productlinks { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tg-nav a,
.tg-productlinks a,
.tg-lang {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #b8c5d6;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.tg-nav a { border-color: rgba(38,50,68,.92); background: rgba(255,255,255,.035); }
.tg-nav a.active,
.tg-productlinks a.active { color: #fff; border-color: rgba(21,158,238,.44); background: rgba(21,158,238,.12); }
.tg-lang { color: #fff; border-color: rgba(236,151,28,.44); background: rgba(236,151,28,.07); }
.tg-nav a:hover,
.tg-productlinks a:hover { color: #fff; border-color: rgba(21,158,238,.58); background: rgba(21,158,238,.1); text-decoration: none; }
@media (max-width: 900px) {
  .tg-topbar,
  .tg-productbar { align-items: flex-start; flex-direction: column; }
  .tg-nav,
  .tg-productlinks { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .tg-public-header { width: min(100% - 20px, 1500px) !important; padding-top: 10px !important; }
  .tg-topbar,
  .tg-productbar { padding: 12px; border-radius: 22px; }
  .tg-brand img { width: 48px; height: 48px; }
  .tg-brandtitle { font-size: 20px; }
  .tg-nav a,
  .tg-productlinks a,
  .tg-lang { padding: 8px 10px; font-size: 12px; }
}

.tg-language-picker { position: relative; }
.tg-language-picker summary { display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid rgba(236,151,28,.44);border-radius:999px;color:#fff;background:rgba(236,151,28,.07);font-size:13px;font-weight:900;cursor:pointer;list-style:none; }
.tg-language-picker summary::-webkit-details-marker { display:none; }
.tg-language-picker .language-options { position:absolute;right:0;z-index:80;display:grid;grid-template-columns:repeat(5,auto);gap:6px;margin-top:8px;padding:8px;border:1px solid rgba(38,50,68,.92);border-radius:15px;background:#0b111a;box-shadow:0 18px 54px rgba(0,0,0,.34); }
.tg-language-picker .language-options a { min-width:42px;padding:8px 10px;border-radius:10px;color:#b8c5d6;text-align:center;font-size:12px;font-weight:900;text-decoration:none; }
.tg-language-picker .language-options a:hover,.tg-language-picker .language-options a.active { color:#fff;background:rgba(21,158,238,.14); }
@media (max-width:900px) { .tg-language-picker .language-options { left:0;right:auto; } }
