/* Homepage-only promotional labels. Existing tool cards and controls are untouched. */
#nh-featured-grid .nh-tool-badge {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 24px;
    display: inline-block;
    max-width: calc(100% - 84px);
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: .2px;
    overflow-wrap: anywhere;
    text-align: left;
    pointer-events: none;
    box-shadow: 0 3px 9px #30295013;
    transform-origin: 24% 70%;
}
#nh-featured-grid .nh-badge-purple { background: #5656df; color: #fff; border-color: #4b4bce; }
#nh-featured-grid .nh-badge-lime { background: #d9f98b; color: #34421f; border-color: #c7e77c; }
#nh-featured-grid .nh-badge-peach { background: #f9dfc3; color: #704720; border-color: #ecc8a1; }
#nh-featured-grid .nh-badge-dark { background: #252635; color: #fff; border-color: #343547; }
#nh-featured-grid [data-nh-badge-motion="wiggle"].nh-badge-attention { animation: nh-home-badge-wiggle 950ms ease-in-out 1; }
#nh-featured-grid [data-nh-badge-motion="pulse"].nh-badge-attention { animation: nh-home-badge-pulse 1050ms ease-in-out 1; }
@keyframes nh-home-badge-wiggle {
    0%, 100% { transform: rotate(0); }
    18% { transform: rotate(-7deg); }
    35% { transform: rotate(6deg); }
    52% { transform: rotate(-4deg); }
    70% { transform: rotate(3deg); }
    86% { transform: rotate(-1deg); }
}
@keyframes nh-home-badge-pulse {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.07); }
    65% { transform: scale(.98); }
    82% { transform: scale(1.03); }
}
@media (max-width: 590px) {
    #nh-featured-grid .nh-tool-badge { top: 16px; left: 16px; max-width: calc(100% - 62px); padding: 5px 7px; font-size: 9px; border-radius: 6px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
    #nh-featured-grid .nh-tool-badge { animation: none !important; transform: none !important; }
}
