.brand {
  gap: 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 14px rgba(185, 255, 103, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  white-space: nowrap;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: #82879d;
  letter-spacing: 0.5px;
  margin-top: 3px;
  white-space: nowrap;
}

.language-control {
  margin-left: auto;
  position: relative;
}

.language-control select#language-select {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
  clip: rect(0, 0, 0, 0);
}

.lang-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  padding: 7px 12px;
  background: #14151e;
  border: 1px solid #2e3046;
  border-radius: 8px;
  color: #f0f2f8;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
  border-color: #b9ff67;
  box-shadow: 0 0 0 3px rgba(185, 255, 103, 0.15);
  background: #191b26;
  outline: none;
}

.lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.lang-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.lang-arrow {
  font-size: 10px;
  color: #8b8f9f;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #14151e;
  border: 1px solid #2e3046;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.lang-dropdown.open .lang-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #c9ccd6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(185, 255, 103, 0.1);
  color: #ffffff;
}

.lang-option.active {
  background: rgba(185, 255, 103, 0.15);
  color: #b9ff67;
  font-weight: 700;
}

@media (max-width: 850px) {
  .language-control {
    margin-left: 0;
  }
  .lang-trigger {
    min-width: 118px;
  }
}
