/* ============================================================
   RIDER PREMIUM MENU — улучшенная версия
   ============================================================ */

/* Убираем стандартные отступы Cassiopeia */
.container-header .mod-menu > li + li {
    margin-left: 0 !important;
}

/* Контейнер меню */
.container-header .mod-menu {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    position: relative;
}

/* Пункты меню */
.container-header .mod-menu > li {
    position: relative;
    list-style: none;
}

/* Ссылки меню */
.container-header .mod-menu > li > a {
    display: inline-block;
    padding: 0.35rem 0;
    text-decoration: none;
    color: #212121;
    font-weight: 500;
    transition: color .25s ease;
}

/* Hover / Active цвет текста */
.container-header .mod-menu > li:hover > a,
.container-header .mod-menu > li.active > a {
    color: #000;
}

/* Подчёркивание (линия под пунктом меню) */
.container-header .mod-menu > li:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: transparent;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease;
}

/* Активная и hover — ярко-жёлтая линия */
.container-header .mod-menu > li.active:after,
.container-header .mod-menu > li:hover:after {
    background: #fee500 !important;
    opacity: 1;
}

/* ============================================================
   Стрелка подменю — Rider Style (жирная + анимация)
   ============================================================ */

/* Кнопка подменю */
.mod-menu__toggle-sub {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 0.35rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Стрелка — жирная и жёлтая */
.mod-menu__toggle-sub > * {
    color: #fee500 !important;
    font-size: 1.1rem;
    font-weight: 900;
    transition: transform .25s ease;
}

/* Вращение по наведению (десктопный сценарий) */
.mod-menu__toggle-sub:hover > * {
    transform: rotate(180deg);
}

/* ============================================================
   Подменю (выпадающий список)
   ============================================================ */

.container-header .mod-menu li ul {
    display: none;
    position: absolute;
    background: #fff;
    padding: 0.5rem 0;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 20;
}

.container-header .mod-menu li:hover > ul {
    display: block;
}

/* Пункты подменю */
.container-header .mod-menu li ul li {
    padding: 0.45rem 1rem;
    white-space: nowrap;
}

.container-header .mod-menu li ul li a {
    color: #212121;
    font-weight: 400;
}

.container-header .mod-menu li ul li:hover a {
    color: #000;
}

/* ============================================================
   WebAuthn Login Button — Rider Yellow
   ============================================================ */

.plg_system_webauthn_login_button svg path,
.plg_system_webauthn_login_button svg circle {
    fill: #fee500 !important;
    stroke: #fee500 !important;
}

/* ============================================================
   RIDER OFFCANVAS MENU
   ============================================================ */

/* Панель offcanvas */
.offcanvas.offcanvas-end {
    width: 280px;
    background: #ffffff;
    border-left: 2px solid #fee500;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

/* Заголовок */
.offcanvas-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

/* Кнопка закрытия */
.offcanvas-header .btn-close {
    filter: invert(1) brightness(0.2);
}

/* Список меню */
.mod-menu--offcanvas {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Пункты меню */
.mod-menu--offcanvas > li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Ссылки */
.mod-menu--offcanvas > li > a {
    color: #212121;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hover */
.mod-menu--offcanvas > li:hover > a {
    color: #000;
}

/* ============================================================
   Стрелка подменю (offcanvas)
   ============================================================ */

.mod-menu--offcanvas .mod-menu__toggle-sub {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 0.5rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .25s ease;
}

/* Стрелка — жирная и жёлтая */
.mod-menu--offcanvas .mod-menu__toggle-sub > * {
    color: #fee500 !important;
    font-size: 1.2rem;
    font-weight: 900;
    stroke-width: 2px;
    transition: transform .25s ease;
}

/* Вращение стрелки при открытии */
.mod-menu--offcanvas .mod-menu__toggle-sub[aria-expanded="true"] {
    transform: rotate(180deg);
}

/* ============================================================
   Подменю (внутри offcanvas)
   ============================================================ */

.mod-menu--offcanvas li ul {
    padding-left: 1rem;
    margin-top: 0.4rem;
    display: none;
}

.mod-menu--offcanvas li[aria-expanded="true"] > ul {
    display: block;
}

.mod-menu--offcanvas li ul li {
    padding: 0.4rem 0;
}

.mod-menu--offcanvas li ul li a {
    font-size: 0.95rem;
    color: #333;
}

.mod-menu--offcanvas li ul li:hover a {
    color: #000;
}
