/* Основное меню */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 50px;
  width: 280px;
  right: 0;
  background-color: #333132;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 100;
  text-align: left;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

.dropdown-menu span {
  display: flex;
  color: var(--white);
  flex-direction: column;
  align-items: center;
  
  justify-content: center;
}

/* Блок с реферальным кодом */
.referral-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    color: var(--white);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease-in-out;
}

.referral-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Поле ввода реферального кода */
.referral-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    align-items: center;
}

.referral-code {
  user-select: none;
}

/* Инпут для ввода реферального кода */
.search-input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Кнопка "Применить" */
.apply-button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: var(--bbb);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.apply-button:hover {
  background-color: var(--ddark);
}

/* --- 🔹 Верхний блок с профилем --- */
.dropdown-header {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.dropdown-header-overlay {
  position: absolute;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.dropdown-xmark {
  width: 40px;
  height: 40px;
  font-size: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all .2s ease-in-out;
}

.dropdown-xmark:hover {
  background: #474747;
}

.dropdown-xmark:active {
  background: #525151;
}

.dropdown-logo {
  width: 80px;
}

/* --- 🟠 Аватар + никнейм --- */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.profile-section .profile-icon {
  width: 60px;
  height: 60px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--white);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 📌 Информация о пользователе --- */
.username {
  font-size: 16px;
  font-weight: bold;
  color: var(--white);
}

.user-meta {
  font-size: 12px;
  color: var(--gray-text);
  opacity: 0.8;
}

/* --- 📌 Основной список меню --- */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- 📌 Элементы меню (почта, подписка и т.д.) --- */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease-in-out;
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- 📌 Иконки в меню --- */
.menu-item .icon {
  font-size: 18px;
  color: var(--primary);
}

/* --- 🔹 Подписка (Плюс) --- */
.subscription-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--white);
}

.subscription-badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff4d4d, #ff66cc);
  color: white;
  font-weight: bold;
}

/* --- 🔻 Разделитель --- */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

/* --- 🔥 Кнопка выхода --- */
.logout-button {
  background: var(--ddark);
  color: var(--white);
  font-size: 14px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- 📌 Если не залогинен --- */
.login-section {
  padding: 15px;
  text-align: center;
}

.login-section .login-button {
  width: 100%;
}
