#hd-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: hd-fade-in 0.45s ease forwards;
}

@keyframes hd-fade-in {
    to { opacity: 1; }
}

#hd-popup-backdrop.hd-closing {
    animation: hd-fade-out 0.35s ease forwards;
}

@keyframes hd-fade-out {
    to { opacity: 0; }
}

#hd-popup {
    position: relative;
    background: rgba(20, 14, 10, 0.92);
    border: 1px solid rgba(192, 152, 83, 0.45);
    border-radius: 8px;
    padding: 48px 52px 44px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    transform: translateY(18px);
    animation: hd-slide-up 0.45s 0.05s ease forwards;
    opacity: 0;
}

@keyframes hd-slide-up {
    to { opacity: 1; transform: translateY(0); }
}

#hd-popup::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #c09853, #e8c97a);
    margin: 0 auto 28px;
    border-radius: 2px;
}

#hd-popup-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8c97a;
    margin: 0 0 18px;
    line-height: 1.3;
}

#hd-popup-text {
    font-family: 'Raleway', 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 32px;
}

#hd-popup-text strong {
    color: #e8c97a;
    font-weight: 600;
}

#hd-popup-close {
    display: inline-block;
    padding: 11px 36px;
    background: transparent;
    border: 1px solid rgba(192, 152, 83, 0.7);
    border-radius: 3px;
    color: #e8c97a;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

#hd-popup-close:hover {
    background: rgba(192, 152, 83, 0.18);
    border-color: #e8c97a;
    color: #fff;
}

#hd-popup-x {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

#hd-popup-x:hover {
    color: #e8c97a;
}
