/* ----------------------------
   FLOATING GLOBE BUTTON
--------------------------------*/
.lang-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99999;
  font-size: 22px;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* ----------------------------
   DARK MODAL OVERLAY
--------------------------------*/
#langModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99998;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----------------------------
   FROSTED GLASS MODAL WINDOW
--------------------------------*/
.lang-window {
  background: rgba(30,30,30,0.6);
  backdrop-filter: blur(14px);
  padding: 35px 40px;
  border-radius: 18px;
  box-shadow: 0 0 28px rgba(0,0,0,0.55);
  max-width: 720px;
  width: 90%;
  color: white;
}

.lang-window h2 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 28px;
  font-weight: 300;
  font-size: 26px;
}

/* ----------------------------
   APPLE-STYLE GRID
--------------------------------*/
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 18px;
}

/* ----------------------------
   FROSTED LANGUAGE CARD
--------------------------------*/
.lang-item {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid rgba(255,255,255,0.15);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: 110px; /* Uniform card height */
}

.lang-item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

/* Uniform flag style */
.lang-item img.flag {
  width: 42px;
  height: 28px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* ----------------------------
   HIDE GOOGLE TRANSLATE BANNER
--------------------------------*/
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.skiptranslate.goog-te-gadget-icon {
  display: none !important;
}
body {
  top: 0 !important;
}
body > .skiptranslate {
  display: none !important;
}