.ahrefs-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.ahrefs-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ahrefs-popup {
    background: linear-gradient(135deg, #2e3c56 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 126, 95, 0.2);
}

.ahrefs-popup-overlay.active .ahrefs-popup {
    transform: scale(1) translateY(0);
}

.ahrefs-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ahrefs-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.ahrefs-popup-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.ahrefs-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff8800, #feb47b);
    color: #2e3c56;   
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.ahrefs-popup-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.ahrefs-popup-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.ahrefs-popup-code-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 126, 95, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.ahrefs-popup-code-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.ahrefs-popup-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #feb47b;
    letter-spacing: 0.1em;
    user-select: all;
    cursor: pointer;
}

.ahrefs-popup-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.ahrefs-popup-footer svg {
    width: 16px;
    height: 16px;
}