/* ==========================================================================
   Иконки шапки (Промокод / Уведомления / Клан) — современный tooltip
   вместо подписи под иконкой + мигание зелёным при новом событии.
   ========================================================================== */

.pbtop-icon-label {
    display: none !important;
}

.pbtop-tip {
    position: relative;
}

.pbtop-tip::before,
.pbtop-tip::after {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 1000;
}

.pbtop-tip::before {
    content: attr(data-tip);
    padding: 6px 11px;
    border-radius: 8px;
    background: #16161e;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0,0,0,.4);
}

.pbtop-tip::after {
    content: "";
    top: calc(100% + 4px);
    width: 8px;
    height: 8px;
    background: #16161e;
    border-left: 1px solid rgba(255,255,255,.1);
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateX(-50%) translateY(-2px) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
    .pbtop-tip:hover::before,
    .pbtop-tip:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .pbtop-tip:hover::after {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
}

/* ---- Мигание иконки зелёным, пока есть что-то новое ---- */
.pbtop-icon-li--has-new .pbtop-tip {
    animation: pbtopTipPulse 1.8s ease-in-out infinite;
}

@keyframes pbtopTipPulse {
    0%, 100% {
        background: rgba(255,255,255,.07);
        border-color: rgba(255,255,255,.1);
        color: #9090a8;
        box-shadow: 0 0 0 0 rgba(61,217,138,.35);
    }
    50% {
        background: rgba(61,217,138,.16);
        border-color: rgba(61,217,138,.45);
        color: #3dd98a;
        box-shadow: 0 0 0 6px rgba(61,217,138,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pbtop-icon-li--has-new .pbtop-tip {
        animation: none;
        background: rgba(61,217,138,.16);
        border-color: rgba(61,217,138,.45);
        color: #3dd98a;
    }
}

/* ==========================================================================
   Личный кабинет — блок "мой клан" (тот же паттерн что и
   .profile-drawer-premium-status, но акцентный зелёный + логотип клана)
   ========================================================================== */
.profile-drawer-team-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-top: 10px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(74,206,142,.16), rgba(47,175,115,.08));
    border: 1px solid rgba(74,206,142,.4);
    transition: transform .15s ease, border-color .15s ease;
}

.profile-drawer-team-status:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
    border-color: rgba(74,206,142,.65);
}

.profile-drawer-team-status__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
}

.profile-drawer-team-status__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-drawer-team-status__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-drawer-team-status__title {
    font-size: 13px;
    font-weight: 800;
    color: #4ace8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-drawer-team-status__hint {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-drawer-team-status__arrow {
    flex: 0 0 auto;
    font-size: 16px;
    color: rgba(255,255,255,.3);
}
