
@keyframes eh-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes eh-pop-in {
    0%   { transform: translateY(30px) scale(0.92); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes eh-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes eh-check-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}
@keyframes eh-shine {
    0%   { left: -75%; }
    100% { left: 125%; }
}
@keyframes eh-dot-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.eh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 12, 0.75);
    backdrop-filter: blur(3px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: eh-fade-in 0.3s ease;
}
.eh-overlay.eh-show { display: flex; }

.eh-popup {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    background: #ffffff;
    animation: eh-pop-in 0.45s cubic-bezier(0.2, 1.1, 0.35, 1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    overflow: visible;
}
.eh-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 6;
    width: 34px;
    height: 34px;
    background: #1C1F26;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.eh-close:hover { transform: scale(1.12) rotate(90deg); }

.eh-card { border-radius: 24px; overflow: hidden; }

/* ---- Dark top panel ---- */
.eh-top {
    background: #14171F;
    padding: 30px 24px 26px;
    text-align: center;
    position: relative;
}
.eh-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #F5A623 !important;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.eh-tag .eh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F5A623;
    animation: eh-dot-blink 1.4s infinite;
}

.eh-avatars {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.eh-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2A2E38, #1C1F26);
    border: 2px solid #3A3F4B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 -10px;
    animation: eh-float 2.6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.eh-avatar.eh-a2 { z-index: 2; animation-delay: 0.3s; border-color: #F5A623; }
.eh-avatar.eh-a3 { z-index: 1; animation-delay: 0.6s; }
.eh-check {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #22C55E;
    border: 3px solid #14171F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
    top: 2px;
    right: calc(50% - 40px);
    z-index: 3;
    animation: eh-check-pulse 1.8s ease-in-out infinite;
}

/* ---- Dual stats (Workers / Jobs) ---- */
.eh-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.eh-stat {
    min-width: 92px;
    text-align: center;
}
.eh-stat-line {
    width: 1px;
    height: 46px;
    flex: none;
    background: linear-gradient(180deg,
        rgba(245, 166, 35, 0) 0%,
        rgba(245, 166, 35, 0.55) 50%,
        rgba(245, 166, 35, 0) 100%);
}
.eh-num {
    color: #ffffff !important;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}
.eh-num .eh-plus { color: #F5A623 !important; }
.eh-num-label {
    color: #8B90A0 !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 6px 0 0;
}

/* ---- White bottom panel ---- */
.eh-bottom {
    padding: 24px 26px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.eh-headline {
    color: #14171F !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}
.eh-headline .eh-accent { color: #F5A623 !important; }

.eh-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #14171F;
    color: #ffffff !important;
    font-size: 15.5px;
    font-weight: 800;
    padding: 15px 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(20, 23, 31, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}
.eh-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg,
        rgba(245,166,35,0) 0%,
        rgba(245,166,35,0.5) 50%,
        rgba(245,166,35,0) 100%);
    transform: skewX(-22deg);
    animation: eh-shine 2.6s ease-in-out infinite;
}
.eh-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 23, 31, 0.4); }
.eh-btn .eh-arrow { font-weight: 900; color: #F5A623 !important; }

@media (max-width: 480px) {
    .eh-popup { max-width: 320px; }
    .eh-headline { font-size: 18px; }
    .eh-avatar { width: 50px; height: 50px; font-size: 21px; }
    .eh-stats { gap: 18px; }
    .eh-stat { min-width: 80px; }
    .eh-num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .eh-avatar, .eh-check, .eh-tag .eh-dot, .eh-btn::before { animation: none; }
}
