.icon-wrapper {
      position: relative;
      display: inline-block;
      cursor: pointer;
      margin-left: 30px;
      margin-right: 15px;
    }


    .pulse-background {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 30px;
      height: 30px;
      background-color: rgba(255, 0, 0, 0.15); /* светло-красный */
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(1);
      animation: pulse-bg 1.2s infinite ease-in-out;
      z-index: 0;
    }

        @media (max-width: 376px) {
        .icon-wrapper{
            margin-left: 19px; margin-right: 10px;
        }
            .pulse-background{
                width: 20px;
            }
    }

    .animated-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 30px;
      height: 30px;
      transform: translate(-50%, -50%);
      animation: wiggle-scale 1.2s infinite ease-in-out;
      z-index: 1;
    }

    .animated-icon path {
      fill: #8B0000; /* тёмно-красный цвет */
    }

    .stopped .animated-icon,
    .stopped .pulse-background {
      animation-play-state: paused;
        background: none;
        animation: none;
    }

    .stopped path {
      fill: #505050; /* тёмно-красный цвет */
    }

    @keyframes wiggle-scale {
      0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
      10%  { transform: translate(-50%, -50%) scale(1.05) rotate(-5deg); }
      20%  { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); }
      30%  { transform: translate(-50%, -50%) scale(1.05) rotate(-3deg); }
      40%  { transform: translate(-50%, -50%) scale(1.03) rotate(3deg); }
      50%  { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
      100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    }

    @keyframes pulse-bg {
      0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
      50%  { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    }
    .news-icon-button {
      position: relative;
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
    }

    .news-modal {
      position: absolute;
      top: 54px;  /* ниже кнопки */
      right: 0;
      width: 350px;
      background: #ffffff;
      border: 1px solid #ccc;
      box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        z-index: 9999999999;

      border-radius: 8px;
    }

    .news-modal-content {
      padding: 8px 12px;
      max-height: 400px;
      overflow-y: auto;
      font-size: 14px;
    }

    .news-modal ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .news-modal li {
      margin-bottom: 8px;
    }

    .hidden {
      display: none;
    }

/* ── av-drop (профильное меню) ── */
.av-drop {
    position: absolute;
    right: 0;
    width: 250px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

.av-drop-inner {
    max-height: 70vh;
    overflow-y: auto;
}

/* шапка */
.av-drop-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f7f3f5;
    position: relative;
}

.av-drop-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.av-drop-login-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #be0017;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.av-drop-login-btn:hover {
    background: #9a0012;
    color: #fff;
    text-decoration: none;
}

.av-drop-login-btn i {
    margin-right: 6px;
}

.av-drop-user {
    flex: 1;
    min-width: 0;
}

.av-drop-username {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.av-drop-username:hover {
    color: #be0017;
    text-decoration: none;
}

.av-drop-stars {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.av-drop-stats {
    display: flex;
    gap: 10px;
    margin-top: 3px;
}

.av-drop-coins {
    font-size: 12px;
    font-weight: 600;
    color: #be0017;
}

.av-drop-rating {
    font-size: 12px;
    font-weight: 600;
    color: #d4a017;
    text-decoration: none;
}

.av-drop-rating:hover {
    color: #b8860b;
    text-decoration: underline;
}

.av-drop-close {
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 4px;
}

.av-drop-close:hover {
    color: #be0017;
}

/* секции */
.av-drop-section {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.av-drop-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 16px 4px;
}

.av-drop-link {
    display: block;
    padding: 5px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s;
}

.av-drop-link:hover {
    background-color: #faf7f8;
    color: #be0017;
    text-decoration: none;
}

.av-drop-link i {
    width: 22px;
    text-align: center;
    margin-right: 10px;
    color: #be0017;
    font-size: 18px;
}

.av-drop-dot {
    display: inline-block;
    width: 22px;
    text-align: center;
    margin-right: 10px;
    color: #be0017;
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
}

/* премиум блок */
.av-drop-premium {
    padding: 10px 18px;
}

.av-drop-premium a {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
}

.av-drop-premium .fa-star {
    color: #e8a838;
    margin-right: 6px;
}

.av-drop-premium .fa-check-circle {
    color: #50C581;
    margin-right: 6px;
}

/* без подписки — акцентная кнопка */
.av-drop-premium a:has(.fa-star) {
    background: #fef5e7;
    color: #b8860b;
}

.av-drop-premium a:has(.fa-star):hover {
    background: #fdecc8;
}

/* с подпиской — спокойный */
.av-drop-premium a:has(.fa-check-circle) {
    background: #f0faf4;
    color: #2d8a54;
}

.av-drop-premium a:has(.fa-check-circle):hover {
    background: #e0f5e9;
}

/* мобилки */
@media (max-width: 576px) {
    .av-drop {
        width: 100vw;
        right: 0;
        border-radius: 0 0 10px 10px;
    }
    .av-drop-header {
        padding: 8px 12px;
        gap: 8px;
    }
    .av-drop-avatar img {
        width: 32px;
        height: 32px;
    }
    .av-drop-link {
        font-size: 15px;
        padding: 4px 14px;
    }
    .av-drop-link i {
        font-size: 16px;
        margin-right: 8px;
    }
    .av-drop-dot {
        margin-right: 8px;
    }
    .av-drop-section {
        padding: 2px 0;
    }
    .av-drop-section-label {
        padding: 4px 14px 2px;
    }
    .av-drop-premium {
        padding: 4px 14px 6px;
    }

    /* затемнение фона */
    .av-drop-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }
}