.lang-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lang-overlay.hidden { display: none; }

.lang-card {
  background: linear-gradient(160deg, #0f1a45 0%, #0a1030 100%);
  border: 1px solid #2a3a7a;
  border-radius: 22px;
  padding: 36px 30px 30px;
  width: 100%;
  max-width: 390px;
  box-shadow:
    0 0 0 1px rgba(79,142,247,0.1),
    0 30px 70px rgba(0,0,0,0.6),
    0 0 120px rgba(79,142,247,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.lang-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f8ef7 0%, #a855f7 50%, #2dd4bf 100%);
}

.lang-card::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lang-logo {
  text-align: center;
  margin-bottom: 22px;
}
.lang-logo-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 4px;
}
.lang-logo-name {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4f8ef7, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lang-title-block {
  text-align: center;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(79,142,247,0.1);
}
.lang-title-en {
  font-size: 17px;
  font-weight: 800;
  color: #eef0f8;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.lang-title-zh {
  font-size: 13px;
  color: #4e5a80;
  line-height: 1.8;
}

.lang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color .08s, background .08s, transform .08s, box-shadow .08s;
  margin-bottom: 10px;
  text-align: left;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.lang-btn:last-child { margin-bottom: 0; }
.lang-btn:hover { transform: translateY(-1px); }
.lang-btn:active { transform: translateY(0); }

.lang-btn.en {
  border-color: rgba(79,142,247,0.25);
  background: rgba(79,142,247,0.06);
}
.lang-btn.en:hover {
  border-color: #4f8ef7;
  box-shadow: 0 0 20px rgba(79,142,247,0.15);
}
.lang-btn.en .lang-arrow { color: #4f8ef7; }

.lang-btn.sc {
  border-color: rgba(168,85,247,0.2);
  background: rgba(168,85,247,0.05);
}
.lang-btn.sc:hover {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168,85,247,0.15);
}
.lang-btn.sc .lang-arrow { color: #a855f7; }

.lang-btn.tc {
  border-color: rgba(45,212,191,0.2);
  background: rgba(45,212,191,0.04);
}
.lang-btn.tc:hover {
  border-color: #2dd4bf;
  box-shadow: 0 0 20px rgba(45,212,191,0.12);
}
.lang-btn.tc .lang-arrow { color: #2dd4bf; }

.lang-flag { font-size: 26px; line-height: 1; flex-shrink: 0; }
.lang-text { flex: 1; }
.lang-main {
  font-size: 15px;
  font-weight: 800;
  color: #d8e0f5;
  display: block;
  letter-spacing: -0.01em;
}
.lang-sub {
  font-size: 12px;
  color: #3d4a6a;
  display: block;
  margin-top: 2px;
  font-weight: 500;
}
.lang-arrow {
  font-size: 20px;
  transition: transform .08s;
  opacity: .7;
}
.lang-btn:hover .lang-arrow { transform: translateX(3px); opacity: 1; }
