

:root {
  --ink: #14161d;
  --ink-2: #1b1e28;
  --ink-3: #232734;
  --paper: #ffffff;
  --cream: #f5f6f3;
  --cream-2: #eef0ea;
  --line: #e4e6e0;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #1a1d26;
  --muted: #5c616e;
  --muted-2: #8a8f9c;
  --accent: #0e8a52;
  --accent-2: #0a6c40;
  --accent-soft: #e7f3ec;
  --accent-tint: #f1f8f4;
  --green-light: #5fd29a;
  --warn: #b4441f;
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 29, .04), 0 8px 30px rgba(20, 22, 29, .06);
  --shadow-lg: 0 30px 70px -25px rgba(20, 22, 29, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ff: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ========================================
   БОКОВАЯ ПАНЕЛЬ
   ======================================== */

.gc-account-leftbar {
  --menu-inset: 7px;
  --menu-button-radius: 10px;
  --menu-hover: var(--ink-3, #232734);
  --submenu-hover: #254435;

  box-sizing: border-box;
  width: 70px;
  background-color: var(--ink, #14161d);
}

/* Отступы вокруг кнопок */
.gc-account-leftbar .gc-account-user-menu {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: var(--menu-inset);
}

.gc-account-leftbar .gc-account-user-menu > li.menu-item {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: var(--menu-button-radius);
  background: transparent !important;
}

.gc-account-leftbar .gc-account-user-menu > li.menu-item:last-child {
  margin-bottom: 0;
}

/* Подложку задаём ссылке внутри пункта */
.gc-account-leftbar .gc-account-user-menu > li.menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 10px;

  border: 0;
  border-radius: var(--menu-button-radius);
  background: transparent !important;
  text-decoration: none;

  transition:
    background-color .2s ease,
    box-shadow .2s ease;
}

.gc-account-leftbar .gc-account-user-menu > li.menu-item > a:hover {
  background: var(--menu-hover) !important;
}

.gc-account-leftbar .gc-account-user-menu > li.menu-item.active > a {
  background: var(--accent, #0e8a52) !important;
}

.gc-account-leftbar .gc-account-user-menu > li.menu-item.active > a:hover {
  background: var(--accent-2, #0a6c40) !important;
}

/* Иконки */
.gc-account-leftbar .gc-account-user-menu .menu-item-icon {
  width: 32px;
  height: 32px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
}

/* Подмена аватара в боковом меню */
/*.gc-account-leftbar .gc-account-user-menu
.menu-item-profile .menu-item-icon {
  content: url("https://fs.getcourse.ru/fileservice/file/download/a/946909/sc/308/h/d6c6de4f656d6424adde74587d0cee65.png");
  width: 32px;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
}*/

/* Подмена аватара только при отсутствии фото в профиле */
.gc-account-leftbar .gc-account-user-menu
.menu-item-profile .menu-item-icon[src*="default_profile_50.png"] {
  content: url("https://fs.getcourse.ru/fileservice/file/download/a/946909/sc/308/h/d6c6de4f656d6424adde74587d0cee65.png");
  width: 32px;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
}



/* Аватар пользователя с загруженным фото */
.gc-account-leftbar .gc-account-user-menu
.menu-item-profile .menu-item-icon:not([src*="default_profile_50.png"]) {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 2px solid #0e8a52;
  box-shadow: 0 0 0 3px rgba(14, 138, 82, 0.15);
  box-sizing: border-box;
}



.gc-account-leftbar .gc-account-user-menu .menu-item-label {
  display: none;
}

/* Счётчики — у верхнего правого края кнопки */
.gc-account-leftbar .gc-account-user-menu .notify-count {
  position: absolute;
  top: 3px;
  right: 1px;
  bottom: auto;
  left: auto;
  float: none;

  box-sizing: border-box;
  min-width: 18px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 2px 5px;
  border-radius: 20px;

  color: var(--paper, #fff);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* Показываем загруженный колокольчик:
   система скрыла его inline-стилем */
.gc-account-leftbar .gc-account-user-menu
.menu-item-notifications_button_small .menu-item-icon {
  display: block !important;
}

.gc-account-leftbar .gc-account-user-menu li.menu-item-notifications_button_small .notify-count {
    bottom: 34px;
    right: 20px;
}

/* ========================================
   СУБМЕНЮ
   ======================================== */

.gc-account-leftbar .gc-account-user-submenu-bar {
  isolation: isolate;
  box-sizing: border-box;
  padding: 24px 12px;

  background-color: var(--ink-2, #1b1e28);
  color: var(--cream, #f5f6f3);
  font-family: var(--ff, sans-serif);
}

/* Контент поверх декоративного фона */
.gc-account-leftbar .gc-account-user-submenu-bar > div,
.gc-account-leftbar .gc-account-user-submenu-bar > ul {
  position: relative;
  z-index: 1;
}

.gc-account-leftbar .gc-account-user-submenu-bar h3 {
  margin: 0 0 20px;
  padding: 0 10px;

  color: var(--green-light, #5fd29a);
  font-family: var(--ff, sans-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.gc-account-leftbar .gc-account-user-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-account-leftbar .gc-account-user-submenu > li {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: var(--menu-button-radius);
  background: transparent !important;
}

.gc-account-leftbar .gc-account-user-submenu > li > a.subitem-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  box-sizing: border-box;
  margin: 0;
  padding: 11px 10px;
  border: 0;
  border-radius: var(--menu-button-radius);
  background: transparent !important;

  color: var(--cream, #f5f6f3);
  font-family: var(--ff, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;

  transition:
    background-color .2s ease,
    color .2s ease;
}

.gc-account-leftbar .gc-account-user-submenu > li > a.subitem-link:hover,
.gc-account-leftbar .gc-account-user-submenu > li.active > a.subitem-link,
.gc-account-leftbar .gc-account-user-submenu > li > a.subitem-link.active {
  background: var(--submenu-hover) !important;
  color: var(--green-light, #5fd29a);
}

.gc-account-leftbar .gc-account-user-submenu .notify-count {
  position: static;
  float: none;
  flex: 0 0 auto;

  min-width: 20px;
  margin: 0;
  padding: 2px 6px;
  border-radius: 20px;

  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

/* Служебная ссылка внизу списка */
.gc-account-leftbar .gc-account-user-submenu > li.menu-item-delimiter {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark, rgba(255, 255, 255, .12));
  border-radius: 0;
}

.gc-account-leftbar .gc-account-user-submenu
> li.menu-item-delimiter > a.subitem-link {
  color: var(--muted-2, #8a8f9c);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
}


/* ========================================
   КЛЕТКА И ЗЕЛЁНОЕ СИЯНИЕ ВНИЗУ СУБМЕНЮ
   ======================================== */

/* Позиционирование самого субменю остаётся системным */
.gc-account-leftbar .gc-account-user-submenu-bar::before,
.gc-account-leftbar .gc-account-user-submenu-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* Клетка плавно проявляется к нижнему краю */
.gc-account-leftbar .gc-account-user-submenu-bar::before {
  height: 45%;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, .055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .055) 1px,
      transparent 1px
    );
  background-size: 40px 40px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 65%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 65%
  );
}

/* Мягкое зелёное свечение */
.gc-account-leftbar .gc-account-user-submenu-bar::after {
  height: 50%;

  background: radial-gradient(
    ellipse at 70% 100%,
    rgba(14, 138, 82, .32) 0%,
    rgba(14, 138, 82, .12) 40%,
    transparent 72%
  );
}

/* Фокус с клавиатуры */
.gc-account-leftbar .gc-account-user-menu > li.menu-item > a:focus-visible,
.gc-account-leftbar .gc-account-user-submenu .subitem-link:focus-visible {
  outline: 2px solid var(--green-light, #5fd29a);
  outline-offset: -2px;
}
